I have a problem I can't figure out on my own (including using google).
After a certain point in my dungeon, I get this error when I try to save:
Cannot serialize table 'champ' with metatable stack traceback [...lots of text...]
The error appears after I have activated this code:
Code: Select all
function Get400exp()
champ=party:getChampion(1)
champ:gainExp(400)
champ=party:getChampion(2)
champ:gainExp(400)
champ=party:getChampion(3)
champ:gainExp(400)
champ=party:getChampion(4)
champ:gainExp(400)
end
I tried using champ=party:getChampion(4):gainExp(400) instead, but that didn't work at all.
Google tells me that others have had the same error, but I can't find any solution to it. Anyone got any idea what is wrong? Obviously it is something to do with the variable "champ", but beyond that...?