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.
Game Distribution (using Linux)
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Game Distribution (using Linux)
What steps did you follow exactly? Did you make a .love first?
Help us help you: attach a .love.
Re: Game Distribution (using Linux)
(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:
Now I have 5 files in the directory: the .love file, the three .lua files, and the executable.
Then I load the executable:
And I see the spinning flower.
Even if I double-click the executable on the GUI side, it gives me the spinning flower.
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
Then I load the executable:
Code: Select all
./fivesecondgame
Even if I double-click the executable on the GUI side, it gives me the spinning flower.
Re: Game Distribution (using Linux)
Maybe (not tried) you have to call the .love file game.love
EDIT: tried, doesn't work
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Game Distribution (using Linux)
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.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Game Distribution (using Linux)
0.7.1 had broken fusing.. iirc.
Re: Game Distribution (using Linux)
I'm using version 0.7.2 on Ubuntu 10.10, and am creating self-contained executables with no issues.
What is the exact command that you used to test the .love file?MarekkPie wrote:In the directory ~/Desktop/fivesecondgame/, I have one file: fivesecondgame.love.
I test the .love file, and it plays.
What is the output of unzip -v fivesecondgame.love?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 file /usr/bin/love, and how large is the fivesecondgame executable?MarekkPie wrote:Code: Select all
cat /usr/bin/love fivesecondgame.love > fivesecondgame && chmod +x fivesecondgame
- josefnpat
- Inner party member
- Posts: 955
- Joined: Wed Oct 05, 2011 1:36 am
- Location: your basement
- Contact:
Re: Game Distribution (using Linux)
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.
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
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
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 5 guests