My game does not open
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
My game does not open
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
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
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.
So, when creating an executable, you absolutely need the file format to be ZIP; 7z won't work.
Re: My game does not open
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
You can see this here: https://youtube.com/clip/UgkxrJ8p5-OdVB ... jPLfakNA4C
Using LOVE to make everything except games
Code: Select all
astring = "pog"
print(astring)
--pog
Re: My game does not open
Here's how you can do it on the CLI with 7z in windows:
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.
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.
Endless Dark: An existential horror game written in LOVE in which you are tasked with keeping a sleeper colony ship intact.
Who is online
Users browsing this forum: Ahrefs [Bot] and 4 guests