The documentations states that:
At which point startup settings can not be affected anymore.The API Documentation wrote: JSON migrations are applied as a map is loaded.
So can anybody confirm or deny that this is indeed impossible?
At which point startup settings can not be affected anymore.The API Documentation wrote: JSON migrations are applied as a map is loaded.
Ah. That's a tough one, and it's a complicated matter for the game engine because the migration would also have to be applied when deciding whether to synchronize startup settings before loading a save or joining a game. Unless you are refactoring what the settings do at the same time, I would be strongly inclined to keep the old terrible names and simply change the locale strings.eradicator wrote: ↑Fri Aug 28, 2020 6:41 pmI want to change the setting prototype name but keep the current values because the user might have changed them.
I can't follow that logic. Startup settings are evaluate exactly once at the end of the settings phase during startup. So the migration would only have to be done once too.
I take back the part about joining multiplayer games: the server will already have the new version of the mod and the new setting names.eradicator wrote: ↑Fri Aug 28, 2020 8:58 pmI can't follow that logic. Startup settings are evaluate exactly once at the end of the settings phase during startup. So the migration would only have to be done once too.
Json migrations indeed do not work for startup mod settings.eradicator wrote: ↑Fri Aug 28, 2020 4:56 pmDuring cleanup of an old mod i'm changing the names of most things to include proper prefixes. Migrating entites/recipes etc works, but the migrations for startup settings in the exact same .json file have no effect.
The documentations states that:At which point startup settings can not be affected anymore.The API Documentation wrote: JSON migrations are applied as a map is loaded.
So can anybody confirm or deny that this is indeed impossible?
But it does actually work for runtime-global settings. It shows up in the migration results dialog after loading a game and preserves the value in the save file.
Thank you, that's what i feared. I'm guessing it's also not realistic to put an interface request for that?