From 8ffdd8c293b84ffcf91c457a8accbd3e979eb38e Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sat, 2 Jan 2021 20:57:45 +0100 Subject: Some more serializer fixes (backported from new_lzb): - Move DUMP_DEBUG_SAVE block before the actual saving so it can be used to trace serializer errors - Don't crash on functions in data, ignore them silently - Increase the save interval --- serialize.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serialize.lua b/serialize.lua index 436bf18..a525e9e 100644 --- a/serialize.lua +++ b/serialize.lua @@ -88,8 +88,8 @@ function value_to_string(t) elseif type(t)=="string" then return "S"..escape_chars(t) else - file:close() - error("Can not serialize '"..type(t).."' type!") + --error("Can not serialize '"..type(t).."' type!") + return "S" end return str end -- cgit v1.2.3