Page 1 of 1

Having Problem when running lua files

Posted: Sat Feb 23, 2013 11:34 pm
by SirFotherington
What is wrong with this code??

Code: Select all

function love.draw()
	love.graphics.print("hello world", 200, 200)
end


Whenever I try to run this code i get an error in love 2d saying :
80nT938.png
80nT938.png (47.77 KiB) Viewed 277 times

here is a copy of the code so someone can try it out and help . PLEASE!

http://www.gamefront.com/files/22990925/Game.zip

Re: Having Problem when running lua files

Posted: Sun Feb 24, 2013 12:09 am
by SirFotherington
Just to confirm. I made the .lua file into the .love file. I did not package the whole file

Re: Having Problem when running lua files

Posted: Sun Feb 24, 2013 12:41 am
by master both
Hi, Welcome to the forums, is always good to see new people.
For some reason, i couldnt download your code, but are you sure you had a main.lua in the zip file? or maybe you put the code in a folder inside the zip, make sure its zip right as you can read Here.

Re: Having Problem when running lua files

Posted: Sun Feb 24, 2013 12:46 am
by SirFotherington
Yes. I am sure. Here are some extra print screens showing you what you were unable to download.


http://imgur.com/Bk9wX4O,li7EBUC#0


Hope you can help me out and thanks for the fast reply!

Re: Having Problem when running lua files

Posted: Sun Feb 24, 2013 12:57 am
by master both
SirFotherington wrote:Yes. I am sure. Here are some extra print screens showing you what you were unable to download.


http://imgur.com/Bk9wX4O,li7EBUC#0


Hope you can help me out and thanks for the fast reply!
Ok, the problem is that you name your file "Main.lua", it must be "main.lua". Lua is case-sensitive, which means those files are totaly diferent.

Re: Having Problem when running lua files

Posted: Sun Feb 24, 2013 1:08 am
by SirFotherington
Wow I feel so stupid .Thanks so much! Good day to you sir!!