Page 1 of 1

Game Distribution (using Linux)

Posted: Mon Jan 02, 2012 7:54 pm
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. :)

Re: Game Distribution (using Linux)

Posted: Mon Jan 02, 2012 8:55 pm
by Robin
What steps did you follow exactly? Did you make a .love first?

Re: Game Distribution (using Linux)

Posted: Mon Jan 02, 2012 9:36 pm
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.

Re: Game Distribution (using Linux)

Posted: Mon Jan 02, 2012 10:14 pm
by Nixola
Maybe (not tried) you have to call the .love file game.love
EDIT: tried, doesn't work

Re: Game Distribution (using Linux)

Posted: Mon Jan 02, 2012 10:36 pm
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.

Re: Game Distribution (using Linux)

Posted: Mon Jan 02, 2012 10:38 pm
by bartbes
0.7.1 had broken fusing.. iirc.

Re: Game Distribution (using Linux)

Posted: Thu Jan 05, 2012 2:25 pm
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?

Re: Game Distribution (using Linux)

Posted: Fri Jan 27, 2012 9:16 pm
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.