Page 1 of 1

attempt to index field 'tileData'

Posted: Fri Aug 21, 2015 9:15 pm
by TheKingofJello
I have repurposed this thread from one dumb question that got answered to another problem of mine just to save space.
Ok, so attached is my basic platformer WIP (you can always click this to see a github page for the main.lua, where the problem is), which I am creating with this tutorial (which isn't very helpful. One more problem out of this I'll probably just scrap it and find a new tutorial).

When I try to run the .love, I get this:

Error

main.lua:86: attempt to index field 'tileData' (a nil value)


Traceback

main.lua:86: in function 'findSolidTiles'
main.lua:14: in function 'load'
[C]: in function 'xpcall'


however, my script is basically identical to the source code of the tutorial.
What do I do? Where did I go wrong?
(or you can even link me to a superior tutorial if this problem is just a fault of the tutorial)

Re: "No code to run" (boot.lua:378) error?

Posted: Fri Aug 21, 2015 9:57 pm
by bartbes
As the message suggests, it is indeed not at the top level of the zip, but rather in a directory called 'cap'. From the zip contents it seems you're using OSX, so instead of zipping the folders, select the contents and zip those instead.

Re: "No code to run" (boot.lua:378) error?

Posted: Sat Aug 22, 2015 12:48 am
by TheKingofJello
bartbes wrote:As the message suggests, it is indeed not at the top level of the zip, but rather in a directory called 'cap'. From the zip contents it seems you're using OSX, so instead of zipping the folders, select the contents and zip those instead.
Ok, thanks! That was really confusing...
(Is there a way to close this thread now or no?)

Re: "No code to run" (boot.lua:378) error?

Posted: Sat Aug 22, 2015 3:24 pm
by Robin
TheKingofJello wrote:(Is there a way to close this thread now or no?)
Not really. Some people edit the first post of the thread so the title has [SOLVED] in it.