cannot serialize table 'text' with metatable
Posted: Thu Sep 17, 2015 6:58 pm
Hello guys, I wanted to look on my map but apparently there's something wrong in the map. I'd say I saved the map executable last time. When I tried to launch the map several errors appears with same text: "cannot serialize table 'text' with metatable". I have absolutely no idea what's wrong or how to solve this problem. for the information I've reinstall windows (to W10) and did backup of whole folder with map (nothing external in other folders).
it appears on these functions
or
I barely recognize purpose of these functions cause I forgot a big part of LUA ^^'
can someone help me, pleease
it appears on these functions
Code: Select all
function saturation()
c = findEntity("forest_day_sky_5")
d = findEntity("cemetery_sky_1")
if GameMode.getTimeOfDay() > 1.01 and GameMode.getTimeOfDay() < 1.94 and c.sky:getTonemapSaturation() > 0.5 then
c.sky:setTonemapSaturation(c.sky:getTonemapSaturation()-0.001)
d.fogparticles:setOpacity(d.fogparticles:getOpacity()+0.002)
else
if (GameMode.getTimeOfDay() < 1.01 or GameMode.getTimeOfDay() > 1.94) and c.sky:getTonemapSaturation() < 0.75 then
c.sky:setTonemapSaturation(c.sky:getTonemapSaturation()+0.001)
d.fogparticles:setOpacity(d.fogparticles:getOpacity()-0.002)
end
end
end
Code: Select all
function setMineTextForest(c)
text = c:getWorldPosition()
c:setWorldPosition(text[1],text[2],text[3]-0.1,text[4])
end
Code: Select all
function setItemPosition(sender,a,b,c,d)
local lever = sender:getWorldPosition()
sender:setWorldPosition(lever[1]+a,lever[2]+b,lever[3]+c,lever[4]+d)
end
can someone help me, pleease
