Syntax error, I have no idea where it is

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Sonic
Prole
Posts: 11
Joined: Tue Jan 02, 2018 6:25 pm
Contact:

Syntax error, I have no idea where it is

Post 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
User avatar
MadByte
Party member
Posts: 533
Joined: Fri May 03, 2013 6:42 pm
Location: Braunschweig, Germany

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

Post 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
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests