Page 1 of 2

Löve on Ubuntu/Linux

Posted: Sun Feb 17, 2013 12:12 am
by tomshreds
Hi,

While trying to make a linux build for my game alpha I encountered one "weird" behaviour. I say weird but it might simply be my own stupidity.

I installed the .deb package from the homepage, and then tried to run my game like this: "love game.love" and it started the love default pig screen. But my package is alright, it's working on OS X and Windows.

Whatever I try, even start the .love directly on Ubuntu starts the pig screen.

BONUS QUESTION: If I want to distribute my game online, can I simply send the executable? will it contain dependencies? if not then how should I proceed?

Any ideas? Thanks a lot!

Re: Löve on Ubuntu/Linux

Posted: Sun Feb 17, 2013 12:57 am
by Inny
You have to run the game from in the same working directory that the game.love is, so if it's in ~/Downloads, then this how you run it:

Code: Select all

cd ~/Downloads
love game.love
As for clicking a .love and having it launch properly, that's magic to me too. It depends on how Ubuntu's Unity handles filetypes.

Bonus Answer: Distribute it via a .love, as us Linux Love users already have the binary installed. To get a little more complicated, you could make a .deb that depends on Love from the distro's repository, but there might be a version mismatch. I prefer the .love file.

Re: Löve on Ubuntu/Linux

Posted: Sun Feb 17, 2013 2:13 am
by retrotails
I used to get that because I have LXDE, this fixed it http://www.foresightlinux.se/make-chrom ... s-in-lxde/
Also, if you use a text editor like Geany put the directory name in quotes like

Code: Select all

love "%d"
or else spaces and some characters won't work.

Re: Löve on Ubuntu/Linux

Posted: Sun Feb 17, 2013 2:24 am
by tomshreds
Thanks for the responses. I needed a quick way of distributing a love game for linux. But I guess I'll be stuck with distributing the .love file which is a bit of a problem since my game is in alpha and will be a commercial release.

But I guess for the first alpha nothing wrong can happen...

I'll try to make some instructions about installing love from the .deb and then run the .love from the console... This is a bit bad, I will have to find another solution to get this working... I guess making a deb file would do the trick.

Re: Löve on Ubuntu/Linux

Posted: Sun Feb 17, 2013 4:16 am
by Inny
You're free to license your own content as you wish. If one version is free and the next version isn't, then that's fine.

Re: Löve on Ubuntu/Linux

Posted: Sun Feb 17, 2013 5:48 am
by master both
does this code from Game Distribution really work?
cat /usr/bin/love game.love > game && chmod +x game

Re: Löve on Ubuntu/Linux

Posted: Sun Feb 17, 2013 9:40 am
by bartbes
Yes, but the executable will be as portable as a skyscraper, that is, not at all.

Re: Löve on Ubuntu/Linux

Posted: Sun Feb 17, 2013 6:08 pm
by master both
bartbes wrote:Yes, but the executable will be as portable as a skyscraper, that is, not at all.
Then, why is that code on the "Game Distribution" section of the wiki?

Re: Löve on Ubuntu/Linux

Posted: Sun Feb 17, 2013 7:49 pm
by josefnpat
master both wrote:
bartbes wrote:Yes, but the executable will be as portable as a skyscraper, that is, not at all.
Then, why is that code on the "Game Distribution" section of the wiki?
Because no matter how silly it is, we hold on to the dreams that there is a possible way to move that skyscraper.

Also, we have it there, because it works (like other os's)

Re: Löve on Ubuntu/Linux

Posted: Mon Feb 18, 2013 10:54 am
by T-Bone
Well, it will work on other Ubuntu machines with the same Ubuntu version and number of bits, as long as the dependencies are installed :)

You can build a general .deb that works on all Ubuntu computers without too much hassle because LÖVE is in the repositories.