Search found 2 matches

by NatEye
Fri May 27, 2016 10:50 pm
Forum: Support and Development
Topic: Reading Error Messages
Replies: 4
Views: 1695

Re: Reading Error Messages

I can't help you with the code itself right now, but an error message basically tells you the file (main.lua) and the line (43) in which the error occurs. The traceback shows you the "stack", the sequence of functions before the error. As I said, in this case the error is in the 43rd line...
by NatEye
Fri May 27, 2016 10:31 pm
Forum: Support and Development
Topic: Reading Error Messages
Replies: 4
Views: 1695

Reading Error Messages

So I tried to open up my game in Love but I keep getting this message: Error main.lua:43: attempt to compare nil with number Traceback main.lua:43: in function 'update' [C]: in function 'xpcall' Here is my code: local player local p_x local p_y local p_speed local stillhere function love.draw() love...