[0.12.13] [kovarex] Lua data de-serialization doesn't work
Posted: Sat Oct 24, 2015 6:14 am
Deserilization doesn't work for LuaObject references saved in the global table in 0.12.13 if they use un-named indexes (table.insert(global.table, {game.player.selected})
See the attached screenshot command history: http://i.imgur.com/0X3wubX.jpg
I'm 100% sure it's related to this fix: https://forums.factorio.com/forum/vie ... 11&t=17204
The commands where run from top down then before the 2nd "game.player.print(serpent.dump(global.table))" I saved, exited, and loaded. As you can see the 2nd time I ran the command after I loaded the game it didn't run deserialization on the data.
Attached save that should load and have 2 references (1 for each of the two pipes on the screen):
See the attached screenshot command history: http://i.imgur.com/0X3wubX.jpg
I'm 100% sure it's related to this fix: https://forums.factorio.com/forum/vie ... 11&t=17204
The commands where run from top down then before the 2nd "game.player.print(serpent.dump(global.table))" I saved, exited, and loaded. As you can see the 2nd time I ran the command after I loaded the game it didn't run deserialization on the data.
Attached save that should load and have 2 references (1 for each of the two pipes on the screen):