PDA

View Full Version : Bug in onSave reporting incorrect line number



onelivesleft
07-28-2017, 05:24 PM
I just ran into the JSON.encode bug detailed in this thread:
http://www.berserk-games.com/forums/showthread.php?3042-Is-there-a-way-to-save-an-unserialized-table

An incidental issue that was problematic was the error message in TTS was listing an incorrect line number:

Error in Script (Global) function <onSave>:
chunk_0:(790,6-34): attempt to index a nil value

The bug was actually occuring on line 320. onSave existed on lines 318-336