Hi,
After a week or so of using it correctly, and after I made some changes to a table, I just got an error when importing the serialized file.
I don't see any weird sintax errors in the file, so I don't know if it's something in the serialize file itself or I'm doing something wrong in my code.
It exported fine, and here's what happened when I tried to import:
Function/Sub: eqlf called by alias
Reason: processing alias ""
C:\My Dropbox\public\mush\worlds\plugins\sets.mzs:96: '}' expected (to close '{'
at line 95) near '='
stack traceback:
[C]: in function 'dofile'
[string "Plugin"]:445: in function <[string "Plugin"]:354>
my import/export code looks like this:
I'd appreciate any help I could get here as I really need my sets table back..
Thanks.
After a week or so of using it correctly, and after I made some changes to a table, I just got an error when importing the serialized file.
I don't see any weird sintax errors in the file, so I don't know if it's something in the serialize file itself or I'm doing something wrong in my code.
It exported fine, and here's what happened when I tried to import:
Function/Sub: eqlf called by alias
Reason: processing alias ""
C:\My Dropbox\public\mush\worlds\plugins\sets.mzs:96: '}' expected (to close '{'
at line 95) near '='
stack traceback:
[C]: in function 'dofile'
[string "Plugin"]:445: in function <[string "Plugin"]:354>
my import/export code looks like this:
elseif act[1]=="export" then
if eql==nil then
Note("The sets table is empty...")
return
end
require "serialize"
exf = utils.filepicker ("Choose where to save the eq database", "sets", "mzs", {mzs="MUSH-Z sets files"}, true)
if not exf then Note("cancelled.") return end
local exfw=assert(io.open(exf, "w"))
exfc=serialize.save_simple(eql)
exfw:write('eql='..exfc)
exfw:close()
Note("set saved.")
elseif act[1]=="import" then
require "serialize"
exf = utils.filepicker ("Choose where your eq database is saved", "sets", "mzs", {mzs="MUSH-Z sets files"}, false)
if not exf then Note("cancelled.") return end
eql = {} -- in case first time, make empty table
dofile(exf)
Note("sets recovered.")
SaveState()
I'd appreciate any help I could get here as I really need my sets table back..
Thanks.