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)
attempt to index field 'tileData'
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- TheKingofJello
- Prole
- Posts: 4
- Joined: Mon Aug 17, 2015 11:28 pm
attempt to index field 'tileData'
Last edited by TheKingofJello on Sat Aug 22, 2015 7:14 pm, edited 2 times in total.
- 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?
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.
- TheKingofJello
- Prole
- Posts: 4
- Joined: Mon Aug 17, 2015 11:28 pm
Re: "No code to run" (boot.lua:378) error?
Ok, thanks! That was really confusing...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.
(Is there a way to close this thread now or no?)
- 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?
Not really. Some people edit the first post of the thread so the title has [SOLVED] in it.TheKingofJello wrote:(Is there a way to close this thread now or no?)
Help us help you: attach a .love.
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests