My game does not open

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
Kiriox
Prole
Posts: 1
Joined: Sat Feb 11, 2023 9:51 am

My game does not open

Post 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?
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Re: My game does not open

Post 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.
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

Re: My game does not open

Post 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.
User avatar
zalander
Citizen
Posts: 75
Joined: Mon Jan 09, 2023 5:58 am
Location: India
Contact:

Re: My game does not open

Post 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
Using LOVE to make everything except games :crazy:

Code: Select all

astring = "pog"
print(astring)
--pog
User avatar
soulmata
Prole
Posts: 31
Joined: Sat Jan 26, 2013 8:14 am
Contact:

Re: My game does not open

Post 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.
Endless Dark: An existential horror game written in LOVE in which you are tasked with keeping a sleeper colony ship intact.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests