Having Problem when running lua files

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
SirFotherington
Prole
Posts: 11
Joined: Sat Feb 23, 2013 11:29 pm

Having Problem when running lua files

Post 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 272 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
SirFotherington
Prole
Posts: 11
Joined: Sat Feb 23, 2013 11:29 pm

Re: Having Problem when running lua files

Post by SirFotherington »

Just to confirm. I made the .lua file into the .love file. I did not package the whole file
User avatar
master both
Party member
Posts: 262
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: Having Problem when running lua files

Post 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.
SirFotherington
Prole
Posts: 11
Joined: Sat Feb 23, 2013 11:29 pm

Re: Having Problem when running lua files

Post 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!
User avatar
master both
Party member
Posts: 262
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: Having Problem when running lua files

Post 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.
SirFotherington
Prole
Posts: 11
Joined: Sat Feb 23, 2013 11:29 pm

Re: Having Problem when running lua files

Post by SirFotherington »

Wow I feel so stupid .Thanks so much! Good day to you sir!!
Post Reply

Who is online

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