I did the extra file thing:
Code: Select all
require("sstrict")
require("Source.main")
And it is really as simple as that. Very sweet.
Now, to decipher what it is doing. I get this message:
and here is the code (see line 118 and line 120):
I really can't see what I'm doing wrong here. I commented out line 118 and then SSTRICT simply moved on to 120 and threw the same error.
Here is my function:
Code: Select all
local function Initialise2DArrrays()
garrGameMessageLog[1] = {}
table.remove(garrGameMessageLog,1)
possibleactions = {}
for i = 1,50 do --! arbitrary number
possibleactions[i] = {}
end
local intNumOfObjects = 15 --! arbitrary number
-- initialise 2D array
for i = 1,intNumOfObjects do
objects[i] = {}
objectsingredients[i] = {}
objectactions[i] = {}
end
objectcanmake = {}
for i = 1, #objects do
objectcanmake[i] = {}
end
end
It's thinking my function call is a variable I guess. How do I stop that?