Page 1 of 1
[0.14.21] Error on running deserialization.
Posted: Mon Jan 23, 2017 4:19 pm
by Adil
I'm getting the following error when trying to load savegame with my mod:
It is not printed in log file or stdout, just this popup.
Whatever is that supposed to tell me and why is this happenning?
Re: [0.14.21] Error on running deserialization.
Posted: Mon Jan 23, 2017 4:33 pm
by Rseding91
You're storing function closures in the global table which isn't supported as they don't save/load properly.
Re: [0.14.21] Error on running deserialization.
Posted: Mon Jan 23, 2017 5:05 pm
by Adil
Yes, but it usually just strips them of upvalues and then runtime error happens which explicitly points to where upvalue was used. This message is outright useless as it is not even dumped completely.
Re: [0.14.21] Error on running deserialization.
Posted: Mon Jan 23, 2017 5:23 pm
by Rseding91
Adil wrote:Yes, but it usually just strips them of upvalues and then runtime error happens which explicitly points to where upvalue was used. This message is outright useless as it is not even dumped completely.
You can contact the people that maintain Lua and ask for a better error because that's where it's coming from

Re: [0.14.21] Error on running deserialization.
Posted: Tue Jan 24, 2017 10:28 am
by Adil
For the reference:
This was not caused by closures, it was caused by using complicated tables as keys for other table.
Tables as a key do not always cause this error, but when they do...