call remote APIs when loading the mod - #24
Conversation
When reloading the game mods (with /c game.reload_mods()), some other mods reset their state (e.g. remove all excluded locomotives). Calling CallRemoteInterface() at on_load time ensures that the state of these mods get updated again.
|
From the API docs:
If the mod is save-load stable, it should not be affected by reload_mods(). If there is a mod that is affected the way you suggest, it is because they are not storing the data given by the remote interface in The devs are very consistent in saying that |
When reloading the game mods (with /c game.reload_mods()), some other mods reset their state (e.g. remove all excluded locomotives).
Calling CallRemoteInterface() at on_load time ensures that the state of these mods get updated again.