Löve on Ubuntu/Linux

General discussion about LÖVE, Lua, game development, puns, and unicorns.
tomshreds
Party member
Posts: 101
Joined: Thu Oct 18, 2012 8:49 pm

Löve on Ubuntu/Linux

Post 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!
User avatar
Inny
Party member
Posts: 652
Joined: Fri Jan 30, 2009 3:41 am
Location: New York

Re: Löve on Ubuntu/Linux

Post 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.
User avatar
retrotails
Party member
Posts: 212
Joined: Wed Apr 18, 2012 12:37 am

Re: Löve on Ubuntu/Linux

Post 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.
tomshreds
Party member
Posts: 101
Joined: Thu Oct 18, 2012 8:49 pm

Re: Löve on Ubuntu/Linux

Post 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.
User avatar
Inny
Party member
Posts: 652
Joined: Fri Jan 30, 2009 3:41 am
Location: New York

Re: Löve on Ubuntu/Linux

Post 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.
User avatar
master both
Party member
Posts: 262
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: Löve on Ubuntu/Linux

Post by master both »

does this code from Game Distribution really work?
cat /usr/bin/love game.love > game && chmod +x game
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Löve on Ubuntu/Linux

Post by bartbes »

Yes, but the executable will be as portable as a skyscraper, that is, not at all.
User avatar
master both
Party member
Posts: 262
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: Löve on Ubuntu/Linux

Post 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?
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Löve on Ubuntu/Linux

Post 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)
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Löve on Ubuntu/Linux

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 47 guests