Game couldn't run

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
Tager
Prole
Posts: 3
Joined: Thu Dec 25, 2014 7:20 pm

Game couldn't run

Post by Tager »

Hello.

I was searching the solve on google and this forum but I haven't found anything. The problem is I wrote the most simple thing

Code: Select all

function love.draw()
	love.graphics.print("hello world", 400, 300)
end
named it main.lua then zipped it and run. Love2D says "No game!". I'm quite frustrated because I'm trying to solve this problem from two hours.
I have downloaded examples from here https://www.love2d.org/wiki/examples.love and it works but if I want to run singly each demo it happens as my program.

Thanks in advance for help.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Game couldn't run

Post by Robin »

Welcome! That's certainly frustrating, but I'm sure we can help sort this out.

1) Could you upload the .love you made?
2) How do you run games?
Help us help you: attach a .love.
Tager
Prole
Posts: 3
Joined: Thu Dec 25, 2014 7:20 pm

Re: Game couldn't run

Post by Tager »

Robin wrote:Welcome! That's certainly frustrating, but I'm sure we can help sort this out.

1) Could you upload the .love you made?
2) How do you run games?

1) https://www.mediafire.com/?d3d3x6dwh1n93x9 there is .love file
2) I'm writing them in Sublime Text, zipping and just double clicking .love file (if that was what you meant)
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: Game couldn't run

Post by Jeeper »

Tager wrote:
Robin wrote:Welcome! That's certainly frustrating, but I'm sure we can help sort this out.

1) Could you upload the .love you made?
2) How do you run games?

1) https://www.mediafire.com/?d3d3x6dwh1n93x9 there is .love file
2) I'm writing them in Sublime Text, zipping and just double clicking .love file (if that was what you meant)
You are making a .rar file. You should be making a .zip file. (Then change it to .love)
Tager
Prole
Posts: 3
Joined: Thu Dec 25, 2014 7:20 pm

Re: Game couldn't run

Post by Tager »

Jeeper wrote:
Tager wrote:
Robin wrote:Welcome! That's certainly frustrating, but I'm sure we can help sort this out.

1) Could you upload the .love you made?
2) How do you run games?

1) https://www.mediafire.com/?d3d3x6dwh1n93x9 there is .love file
2) I'm writing them in Sublime Text, zipping and just double clicking .love file (if that was what you meant)
You are making a .rar file. You should be making a .zip file. (Then change it to .love)
Thank you very much! I didn't expect that was it. Thanks again.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Game couldn't run

Post by Robin »

Great that it's solved! Note that you can run games without making a .love by dragging the folder your main.lua is in onto the LÖVE application icon.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 8 guests