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
Tutorial's "Hello World" not working?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Tutorial's "Hello World" not working?
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:
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.
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 .
See the main page for a download link.
Help us help you: attach a .love.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Tutorial's "Hello World" not working?
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.
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.
- Fruchthieb
- Prole
- Posts: 20
- Joined: Sat Sep 26, 2009 12:04 pm
- Location: austria
Re: Tutorial's "Hello World" not working?
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?
Regards!
P.S.: Who have stolen my avatar, and where has he put it to?
- 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?
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: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?
Code: Select all
ln -s /usr/bin/love ~/development_folder/love
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Tutorial's "Hello World" not working?
The aliens took it. But you can upload a new one (or the same old) if you want.Fruchthieb wrote:P.S.: Who have stolen my avatar, and where has he put it to?
Help us help you: attach a .love.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Tutorial's "Hello World" not working?
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.
- 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?
Ooh, nice!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.
- 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?
I didn't know about this. Awesome!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.
When I write def I mean function.
Who is online
Users browsing this forum: No registered users and 5 guests