attempt to index field 'tileData'

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
User avatar
TheKingofJello
Prole
Posts: 4
Joined: Mon Aug 17, 2015 11:28 pm

attempt to index field 'tileData'

Post 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)
Last edited by TheKingofJello on Sat Aug 22, 2015 7:14 pm, edited 2 times in total.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post 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.
User avatar
TheKingofJello
Prole
Posts: 4
Joined: Mon Aug 17, 2015 11:28 pm

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

Post 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?)
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

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

Post 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.
Help us help you: attach a .love.
Post Reply

Who is online

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