Page 1 of 1

Syntax error, I have no idea where it is

Posted: Fri Jan 05, 2018 6:48 pm
by Sonic
I have a syntax error in my STI init.lua file, i dont know where its is and how to fix it (error at line 44)

Full code: https://gist.github.com/BansheeSonic/9b ... 4c79ac2082

Re: Syntax error, I have no idea where it is

Posted: Fri Jan 05, 2018 7:23 pm
by MadByte
Seriously?
I explained what your problem is in your first thread... multiply times. And now you open another
thread and ask the same question again? Maybe you haven't seen it.. so here is the answer..again.
MadByte wrote: Wed Jan 03, 2018 6:17 pm Your line

Code: Select all

local map = setmetatable(love.filesystem.load('st_i/sti/map.lua')(), Map)
seems to don't match up with the original line of the file [...] (newest [STI version] on github), which is

Code: Select all

map = setmetatable(love.filesystem.load(map)(), Map)
I would say that this is the reason. maybe its a different version or you altered the path of the library (or the line above).
Make sure that there is the right file in your project folder, which should be ../st_i/sti/map.lua if the above line is correct.
But I guess what you really want is that someone fixes everything up for you because you don't want to learn and figure out stuff on your own... I tried to keep it as simple as possible.. hope that's enough... :3 :shock:
yourThing.love