Page 1 of 1

My game does not open

Posted: Sat Feb 11, 2023 5:34 pm
by Kiriox
I would like to export my game under windows by compressing the .love with the 7-zip command line I manage to launch the .love without any problem, however when I pass it in .exe form and I launch it opens the screen with marked "no game" while when I compress the .love with the 7-zip interface it works very well; How can I do to solve the problem?

Re: My game does not open

Posted: Sat Feb 11, 2023 7:30 pm
by Andlac028
How do you compress it with 7z? Are you sure, you compress it in .zip format, and not in another format, like .7z? And how do you append .love to .exe? Please post some example .love or .exe file, or the steps, you use to make the .exe file.

Re: My game does not open

Posted: Sun Feb 12, 2023 12:38 pm
by pgimeno
ZIP files have a directory at the end of the file, and other file formats like 7z don't. When you append it to an exe, Löve goes to the end of the file looking for this directory, and if it isn't there, it doesn't try any harder to find the beginning of the compressed data.

So, when creating an executable, you absolutely need the file format to be ZIP; 7z won't work.

Re: My game does not open

Posted: Tue Feb 14, 2023 3:17 pm
by zalander
You need to zip the files directly not the folder you can do it using 7z or another program
You can see this here: https://youtube.com/clip/UgkxrJ8p5-OdVB ... jPLfakNA4C

Re: My game does not open

Posted: Wed Feb 15, 2023 8:19 am
by soulmata
Here's how you can do it on the CLI with 7z in windows:

Code: Select all

"c:\Program Files\7-Zip\7z.exe" a -mx0 -x!e:\endlessdarkgame\.git e:\ed.zip e:\endlessdarkgame\*
rename e:\ed.zip ed.love
copy /b "c:\Program Files\LOVE\love.exe"+"E:\ed.love" "E:\Endless Dark.exe"


Replace path to 7z if installed somewhere else. Replace "e:\endlessdarkgame" with the path to where main.lua exists for your game. Replace ed.zip with whatever you want to call it. The argument after -x! is excluding .git.