Page 1 of 1

Table expected got nil error when trying to update mod to .17

Posted: Mon Apr 08, 2019 4:04 am
by theradman221
So I've been trying to update my compressed materials mod to .17 and I'm having a problem where when the game starts it gives a table expected, got nil error. I'll upload a screenshot of the error as well as a copy of the mod as is. Any help would be appreciated thanks!
error message
error message
error file.PNG (9.65 KiB) Viewed 1233 times
compressor_0.2.5.zip
copy of mod
(447.96 KiB) Downloaded 71 times

Re: Table expected got nil error when trying to update mod to .17

Posted: Mon Apr 08, 2019 6:23 am
by darkfrei
No flags means no flag "hidden" too.

Code: Select all

if table then
  for i, value in pairs (table) do
    if value == str then
      -- your code here
    end
  end
end

Re: Table expected got nil error when trying to update mod to .17

Posted: Mon Apr 08, 2019 3:47 pm
by theradman221
Thanks that seems to have fixed the first error. Now it has a new error.
second error
second error
error 2.PNG (14.61 KiB) Viewed 1207 times