This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Nothy's profile picture

textutils:191: attempt to call table

Started by Nothy, 31 August 2017 - 10:37 AM
Nothy #1
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.



-- 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
KingofGamesYami #2
Posted 31 August 2017 - 01:04 PM
What build of ComputerCraft are you using? I'm not sure what is on line 191 in textutils without knowing which version. If it's 1.80, do you have the latest build or something older?
Nothy #3
Posted 31 August 2017 - 01:14 PM
What build of ComputerCraft are you using? I'm not sure what is on line 191 in textutils without knowing which version. If it's 1.80, do you have the latest build or something older?
I'm running 1.7, since that's what CCEmuRedux runs.