Game Distribution (using Linux)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

Game Distribution (using Linux)

Post by MarekkPie »

I've read the Game Distributiom page on the wiki and I am still having a bit of trouble. The executable I make just loads the default Love screen (the spinning flower thing in space). I have the .lua files in the same directory. Is there something I need to do to those files in order to get the executable to recognize them?

I am working in a Linux environment, so instructions tailored to that would help. :)
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Game Distribution (using Linux)

Post by Robin »

What steps did you follow exactly? Did you make a .love first?
Help us help you: attach a .love.
User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

Re: Game Distribution (using Linux)

Post by MarekkPie »

(I'll be using an old version of Gluttony just in case something horrible happens).

O.K., from the top:

In the directory ~/Desktop/fivesecondgame/, I have one file: fivesecondgame.love.
I test the .love file, and it plays.
I extract fivesecondgame.love, so now I have 4 files in the directory: the .love file, and the three .lua files.
From there I run the command on the Wiki:

Code: Select all

cat /usr/bin/love fivesecondgame.love > fivesecondgame && chmod +x fivesecondgame
Now I have 5 files in the directory: the .love file, the three .lua files, and the executable.
Then I load the executable:

Code: Select all

./fivesecondgame
And I see the spinning flower.

Even if I double-click the executable on the GUI side, it gives me the spinning flower.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Game Distribution (using Linux)

Post by Nixola »

Maybe (not tried) you have to call the .love file game.love
EDIT: tried, doesn't work
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Game Distribution (using Linux)

Post by Robin »

Hm, perhaps that was the version which broke that mechanism. I can't remember, but I think it's fixed in 0.8.0, which should be released any day now.
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: Game Distribution (using Linux)

Post by bartbes »

0.7.1 had broken fusing.. iirc.
lexfiend
Prole
Posts: 1
Joined: Thu Jan 05, 2012 2:06 pm

Re: Game Distribution (using Linux)

Post by lexfiend »

I'm using version 0.7.2 on Ubuntu 10.10, and am creating self-contained executables with no issues.
MarekkPie wrote:In the directory ~/Desktop/fivesecondgame/, I have one file: fivesecondgame.love.
I test the .love file, and it plays.
What is the exact command that you used to test the .love file?
MarekkPie wrote:I extract fivesecondgame.love, so now I have 4 files in the directory: the .love file, and the three .lua files.
What is the output of unzip -v fivesecondgame.love?
MarekkPie wrote:

Code: Select all

cat /usr/bin/love fivesecondgame.love > fivesecondgame && chmod +x fivesecondgame
What is the output of file /usr/bin/love, and how large is the fivesecondgame executable?
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Game Distribution (using Linux)

Post by josefnpat »

I know this is kind of a necropost, but it might help MarekkPie

Check out this script of mine to build for osx, windows and linux:

https://github.com/josefnpat/doctorcatt ... r/build.sh

To run the linux app, you'll need love installed, but that's only because I haven't gotten around to making a script to output .deb files.
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
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 5 guests