Tutorial's "Hello World" not working?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
scott_R
Prole
Posts: 2
Joined: Sun Jun 27, 2010 6:19 am

Tutorial's "Hello World" not working?

Post by scott_R » Sun Jun 27, 2010 6:28 am

I know this is an idiotic question, as LOVE seems to have a great fanbase, but I just copy/pasted the 'Hello World' program and tried to run it on Linux Mint (Ubuntu-based distro), and it give me this output, and no...ahem...love...or executable.

I'll admit, I need to RTFM, but what am I doing wrong here?

My output, after running 'love hello.love':
------------------------------------------------
This is LOVE 0.5.0 (Salted Nuts).

INIT love.filesystem [PhysFS]
INIT love.graphics [OpenGL/DevIL/FreeType]
INIT love.audio [SDL_mixer]
INIT love.timer [SDL]
INIT love.mouse [SDL]
INIT love.keyboard [SDL]
INIT love.physics [Box2D]
INIT love.lib [LuaSocket]
INIT love.joystick [SDL]
INIT love.system [Generic]
Game (/home/scott/programming/love/hello.love) does not exist.
QUIT love.system [Generic]
QUIT love.joystick [SDL]
QUIT love.lib [LuaSocket]
QUIT love.physics [Box2D]
QUIT love.keyboard [SDL]
QUIT love.mouse [SDL]
QUIT love.timer [SDL]
QUIT love.audio [SDL_mixer]
QUIT love.graphics [OpenGL/DevIL/FreeType]
QUIT love.filesystem [PhysFS]
-----------------------------------------------------------

Thanks :)

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Tutorial's "Hello World" not working?

Post by Robin » Sun Jun 27, 2010 6:41 am

Welcome, scott_R!

Is your .love a folder or renamed zipfile with a file called main.lua in it?

See http://love2d.org/wiki/Getting_Started and http://love2d.org/wiki/Game_Distribution.

If you have named your main file "hello.love", you can run the following in the terminal:

Code: Select all

mv hello.love main.lua
love .
EDIT: also, I see you are running 0.5.0. The Ubuntu repository version is rather old. The latest version is LÖVE 0.6.2, which is so much more awesome. ;) (Also, it brings in quite a few backwards incompatible changes. The documentation on the wiki is all about LÖVE 0.6.*, although the old documentation is still available for download, IIRC.)

See the main page for a download link.
Help us help you: attach a .love.

User avatar
Jasoco
Inner party member
Posts: 3651
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Tutorial's "Hello World" not working?

Post by Jasoco » Sun Jun 27, 2010 6:59 am

Welcome, Scott!

Yes, switch to 0.6.2. It's so much better and if you're just starting out, it's better to not learn 0.5.0 when .6 has so many changes and enhancements. I started my game when it was 0.5.0 and it took me a few months to get up the strength to convert all my code to 0.6.x because of all the changes. But I did it and my game is happier for it.

User avatar
Fruchthieb
Prole
Posts: 20
Joined: Sat Sep 26, 2009 12:04 pm
Location: austria

Re: Tutorial's "Hello World" not working?

Post by Fruchthieb » Sun Jun 27, 2010 7:40 am

Another easy way to run a .love under Linux, is to copy the love binary (mv /usr/bin/love /home/unknown/develfolder) into your Developmen folder and drag and drop the (unpacked) folder containing the main.lua onto (on? Whatever..) the binary.

Regards!

P.S.: Who have stolen my avatar, and where has he put it to?

User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Tutorial's "Hello World" not working?

Post by nevon » Sun Jun 27, 2010 7:56 am

Fruchthieb wrote:Another easy way to run a .love under Linux, is to copy the love binary (mv /usr/bin/love /home/unknown/develfolder) into your Developmen folder and drag and drop the (unpacked) folder containing the main.lua onto (on? Whatever..) the binary.

Regards!

P.S.: Who have stolen my avatar, and where has he put it to?
Not a good idea, since that would move the binary. If you really don't want to run it through a terminal (when you're developing, you probably want to see the terminal output anyway), you could do this:

Code: Select all

ln -s /usr/bin/love ~/development_folder/love

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Tutorial's "Hello World" not working?

Post by Robin » Sun Jun 27, 2010 8:41 am

Fruchthieb wrote:P.S.: Who have stolen my avatar, and where has he put it to?
The aliens took it. But you can upload a new one (or the same old) if you want.
Help us help you: attach a .love.

User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Tutorial's "Hello World" not working?

Post by bartbes » Sun Jun 27, 2010 9:23 am

I would like to add there's a ppa now, so if you don't want to manually install packages and want automatic updates, use this ppa.

User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Tutorial's "Hello World" not working?

Post by nevon » Sun Jun 27, 2010 10:02 am

bartbes wrote:I would like to add there's a ppa now, so if you don't want to manually install packages and want automatic updates, use this ppa.
Ooh, nice!

User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Tutorial's "Hello World" not working?

Post by kikito » Sun Jun 27, 2010 11:47 am

bartbes wrote:I would like to add there's a ppa now, so if you don't want to manually install packages and want automatic updates, use this ppa.
I didn't know about this. Awesome! :ultrahappy:
When I write def I mean function.

User avatar
Luiji
Party member
Posts: 396
Joined: Mon May 17, 2010 6:59 pm

Re: Tutorial's "Hello World" not working?

Post by Luiji » Sun Jun 27, 2010 10:22 pm

Oh! I'm going to have to do that from now on!
Good bye.

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests