[Rseding91] [for 0.17] [0.16.39] Serpent bug, fix inside
Posted: Tue May 01, 2018 8:00 pm
TL;DR: Update serpent from version 0.30 to verison 0.302 to apply the following patch:
https://github.com/pkulchenko/serpent/c ... a5afe08b91
---------
Oh man this bug was hard to track down. In my mod a random table object deep within `global` was deserialized to nil after saving/loading. And I've written the mod to handle not persisting metatables/threads/functions/upvalues so this was very strange.
I included a copy of my mod which has been modified to easily test the latest 3 versions of serpent as well as the version shipped with Factorio. To use it, start a new game and press the `TAS` button, then press any of the `test v0.xxx` buttons to see if serpent.dump/serpent.load has the correct output.
I love Factorio BTW!!!
https://github.com/pkulchenko/serpent/c ... a5afe08b91
---------
Oh man this bug was hard to track down. In my mod a random table object deep within `global` was deserialized to nil after saving/loading. And I've written the mod to handle not persisting metatables/threads/functions/upvalues so this was very strange.
I included a copy of my mod which has been modified to easily test the latest 3 versions of serpent as well as the version shipped with Factorio. To use it, start a new game and press the `TAS` button, then press any of the `test v0.xxx` buttons to see if serpent.dump/serpent.load has the correct output.
I love Factorio BTW!!!