Migration file order
Posted: Mon Apr 22, 2019 10:37 am
As far as I can tell re: migration scripts, ALL json files are run before ANY lua files, regardless of their filenames or version numbers. Can someone verify this?
Thanks, Bob.bobingabout wrote: Thu Apr 25, 2019 9:54 am This is correct.
This is because a JSON file typically replaces entities that no longer exist with a new version, or replacement, which needs to be done before the game is fully initialised.
LUA is run after initialisation.
it can migrate those too, not just entities, but yeah, there's no way to avoid the migration message.badtouchatr wrote: Thu Apr 25, 2019 9:59 amThanks, Bob.bobingabout wrote: Thu Apr 25, 2019 9:54 am This is correct.
This is because a JSON file typically replaces entities that no longer exist with a new version, or replacement, which needs to be done before the game is fully initialised.
LUA is run after initialisation.
So, if we delete a recipe/item/technology, then there's no way to avoid the migration message for that, because the .json file only does "renames", right?
Thanks for your help and insight on this.bobingabout wrote: Thu Apr 25, 2019 11:01 am it can migrate those too, not just entities, but yeah, there's no way to avoid the migration message.