[Rseding91] [16.16] Mod `global` serialization bug
Posted: Mon Jan 15, 2018 2:10 am
Entity references stored in a mod's global table are sometimes (but deterministically) invalidated after save/load. I've attached an isolated test-case to demonstrate this:
Steps to reproduce:
PS, thank you Chrisgbk for double-checking that my test-case is reproducible, and confirming that this looks like unexpected behavior.
Steps to reproduce:
- Start a new game using the mod.
- Move your cursor over an entity and run the command /save-selected
- Run the command /print-saved. Both save-method 1 and save-method 2 will properly display the saved entity.
- Save and load the game.
- Re-run the /print-saved command. I expect the same output as before, but instead save-method 1 has its entity invalidated.
PS, thank you Chrisgbk for double-checking that my test-case is reproducible, and confirming that this looks like unexpected behavior.