Problem with the .Exe

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
Snopel
Prole
Posts: 4
Joined: Wed May 29, 2013 7:33 pm

Problem with the .Exe

Post by Snopel »

i have gone through all the steps on the wiki for creating a exe of my program but everytime I run it I just get the normal Rubber Piggy animation.

Anyone know why this is happening, I want to try testing multiplayer out with friends by giving them the client but it does not seem to be working
User avatar
easy82
Party member
Posts: 184
Joined: Thu Apr 18, 2013 10:46 pm
Location: Hungary

Re: Problem with the .Exe

Post by easy82 »

Hmmmmm what did you do exactly?
Snopel
Prole
Posts: 4
Joined: Wed May 29, 2013 7:33 pm

Re: Problem with the .Exe

Post by Snopel »

-zipped the main.lua

-renamed it to .love

-turned it into the .exe

-put it into a folder with the .dlls

-then re-zipped it with

But when opening the .exe I just get the rubber piggy animation thing
User avatar
easy82
Party member
Posts: 184
Joined: Thu Apr 18, 2013 10:46 pm
Location: Hungary

Re: Problem with the .Exe

Post by easy82 »

Snopel wrote:-zipped the main.lua

-renamed it to .love

-turned it into the .exe

-put it into a folder with the .dlls

-then re-zipped it with

But when opening the .exe I just get the rubber piggy animation thing
So if you'd open game.zip (the one to be renamed to game.love), you'd see main.lua instantly?
Does game.love work if you run it with LÖVE?
How did you turn it into and exe?
Why did you zip it again, as the last step?
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: Problem with the .Exe

Post by Boolsheet »

Are you sure you used a Zip archive? LÖVE may support (unofficially) 7z or other formats, but only Zip works when appended to the executable.

If you upload the .exe file you created, we should be able to tell you what's wrong.
Shallow indentations.
Snopel
Prole
Posts: 4
Joined: Wed May 29, 2013 7:33 pm

Re: Problem with the .Exe

Post by Snopel »

Game thing.zip
(1.69 MiB) Downloaded 107 times
When I created the .exe I typed this into command prompt:

Code: Select all

copy /b "C:\Program Files (x86)\LOVE\love.exe" + "C:\Users\Owner\Documents\LOVE Programs\UDP Client" UDPClient.exe
Here is the .exe in a zip folder with the .dlls it needed
Game thing.zip
(1.69 MiB) Downloaded 107 times
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: Problem with the .Exe

Post by Boolsheet »

You used a RAR archive. This is not supported by LÖVE.

Edit: Also, it seems you didn't compress main.lua itself, but the directory where it is in. main.lua needs to be at the top of the archive structure for LÖVE to find it.

Edit2: Technically, you also need to distribute OpenAL32.dll. Some systems may have it already installed in their system directory but others do not and for them this will cause an error.
Shallow indentations.
Snopel
Prole
Posts: 4
Joined: Wed May 29, 2013 7:33 pm

Re: Problem with the .Exe

Post by Snopel »

Thank you, it works now

I kinda feel dumb now :oops:
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests