When I use SetVariable (stuff) in an OnWorldSave event, I expected the variable to be added to my world variable list because I thought that was where the variable was stored with this function.
I'm using simple serialization so I have a loadstring counterpart.
What I'm finding is the variables are being stored in the Plugin's list of variables, not the world's list as I had expected. I can see them there when I do:
/for k,v in pairs(GetPluginVariableList (GetPluginList ()[2])) do print(k) end
from the command line.
Am I doing something wrong?
I'm using simple serialization so I have a loadstring counterpart.
What I'm finding is the variables are being stored in the Plugin's list of variables, not the world's list as I had expected. I can see them there when I do:
/for k,v in pairs(GetPluginVariableList (GetPluginList ()[2])) do print(k) end
from the command line.
Am I doing something wrong?