Page 1 of 1

Tutorial's "Hello World" not working?

Posted: Sun Jun 27, 2010 6:28 am
by scott_R
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 :)

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

Posted: Sun Jun 27, 2010 6:41 am
by Robin
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.

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

Posted: Sun Jun 27, 2010 6:59 am
by Jasoco
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.

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

Posted: Sun Jun 27, 2010 7:40 am
by Fruchthieb
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?

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

Posted: Sun Jun 27, 2010 7:56 am
by nevon
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

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

Posted: Sun Jun 27, 2010 8:41 am
by Robin
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.

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

Posted: Sun Jun 27, 2010 9:23 am
by bartbes
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.

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

Posted: Sun Jun 27, 2010 10:02 am
by nevon
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!

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

Posted: Sun Jun 27, 2010 11:47 am
by kikito
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:

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

Posted: Sun Jun 27, 2010 10:22 pm
by Luiji
Oh! I'm going to have to do that from now on!