Posted 31 August 2017 - 12:37 PM
I'm sure I'm not just being stupid, nowhere in my code is a table called through textutils.
I've no idea why this occurs, since all I'm doing is trying to serialize a table.
I've no idea why this occurs, since all I'm doing is trying to serialize a table.
-- Settings 2.0 by nothy
-- (C) Linus Ramneborg 2017
variable = {
table = {
}
}
--snipped away some code
function writesettings(variables,dir)
local serial = textutils.serialize(variables) --//textutils:191: attempt to call table
local fh = fs.open(dir,"w")
fh.write(serial)
fh.close()
return true
end
writesettings(variable,"anywhere")
Edited on 31 August 2017 - 10:44 AM