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

Place to get help with not working mods / modding interface.
Post Reply
theradman221
Inserter
Inserter
Posts: 40
Joined: Sun Feb 22, 2015 7:54 pm
Contact:

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

Post 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 943 times
compressor_0.2.5.zip
copy of mod
(447.96 KiB) Downloaded 53 times

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

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

Post 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

theradman221
Inserter
Inserter
Posts: 40
Joined: Sun Feb 22, 2015 7:54 pm
Contact:

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

Post 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 917 times

Post Reply

Return to “Modding help”