Open saved game, (game removes entities correctly).
Save game, exit.
Enable mod, (game reloads).
Load saved game again (game initiates migration);
Migration fails, Error produced.
alien-module/migrations/alien-module_0.2.2.lua:2: attempt to index field "electric-energy-accumluators-1" {a nil value}
stack traceback:
alien-module/migrations/alien-module_0.2.2.lua:2: in main chunk
Results:
Returns to main screen, mod still enabled, but unable to load existing map from a save without the mod.
After fix:
Steps to reproduce no longer produce error. Game loads, mod works, and game can be saved with new mod data.
Was also able to start new game with mod enabled without error.
Fix for migration error from entity naming issue.
related to: https://github.com/renoth/factorio-alien-module/issues/27 https://github.com/renoth/factorio-alien-module/issues/25
To reproduce Issue:
Migration fails, Error produced.
alien-module/migrations/alien-module_0.2.2.lua:2: attempt to index field "electric-energy-accumluators-1" {a nil value} stack traceback: alien-module/migrations/alien-module_0.2.2.lua:2: in main chunk
Results: Returns to main screen, mod still enabled, but unable to load existing map from a save without the mod.
After fix: Steps to reproduce no longer produce error. Game loads, mod works, and game can be saved with new mod data. Was also able to start new game with mod enabled without error.