Can't make an .exe file work :(

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
nuno
Party member
Posts: 137
Joined: Wed Dec 11, 2013 12:00 pm
Location: Portugal
Contact:

Can't make an .exe file work :(

Post by nuno »

Hi everyone,

I've been using the love-release script, but also tried manually as is described in the wiki, but still can't get an exe file to work.
I pack everything properly, and when I run the .exe the screen goes blank (as if it is trying to load the game) and then crashes to the desktop without any error.
The strange thing is, if I open a command line and run the exe from there to check if there is any output, instead of this behaviour I get the Love baby Inspector screen.

Any hints? :/

PS - yes, I packed the zip file properly. If I drag it to the love executable the game runs fine
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Can't make an .exe file work :(

Post by slime »

Can you upload your .love and the fused .exe?
User avatar
nuno
Party member
Posts: 137
Joined: Wed Dec 11, 2013 12:00 pm
Location: Portugal
Contact:

Re: Can't make an .exe file work :(

Post by nuno »

slime wrote:Can you upload your .love and the fused .exe?
sent by PM
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Can't make an .exe file work :(

Post by slime »

After running the game via cmd.exe and outputting stdout to a file (e.g. C:\game\game.exe > output.txt), it gives this error:

Code: Select all

Error saving data.
Error saving. Sorry, can't start the game :(

Error: chest.lua:936: Could not open file chest.dat. Does not exist.
stack traceback:
	[C]: in function 'lines'
	chest.lua:936: in function 'load'
	main.lua:46: in function 'load'
	[string "boot.lua"]:407: in function <[string "boot.lua"]:399>
	[C]: in function 'xpcall'
Normally LOVE will automatically set the game's save directory if the identity (t.identity in conf.lua, or [wiki]love.filesystem.setIdentity[/wiki]) isn't set, but in some cases when the game is fused in Windows it doesn't for some reason.
I believe explicitly setting the identity should fix things.
User avatar
nuno
Party member
Posts: 137
Joined: Wed Dec 11, 2013 12:00 pm
Location: Portugal
Contact:

Re: Can't make an .exe file work :(

Post by nuno »

that's it! its fixed :D thanks slime!

strange, though, because in my previous game I used the same method, and I'm also saving files in the same way and didn't got any problems running it on windows...
User avatar
nuno
Party member
Posts: 137
Joined: Wed Dec 11, 2013 12:00 pm
Location: Portugal
Contact:

Re: Can't make an .exe file work :(

Post by nuno »

nuno wrote:that's it! its fixed :D thanks slime!

strange, though, because in my previous game I used the same method, and I'm also saving files in the same way and didn't got any problems running it on windows...
ah, nevermind I noticed that in the previous game I set the identity in conf.lua to nil.. somehow it helped!
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 197 guests