Page 1 of 1

Problem with the .Exe

Posted: Wed May 29, 2013 8:00 pm
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

Re: Problem with the .Exe

Posted: Wed May 29, 2013 9:16 pm
by easy82
Hmmmmm what did you do exactly?

Re: Problem with the .Exe

Posted: Wed May 29, 2013 9:20 pm
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

Re: Problem with the .Exe

Posted: Wed May 29, 2013 10:11 pm
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?

Re: Problem with the .Exe

Posted: Thu May 30, 2013 1:24 am
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.

Re: Problem with the .Exe

Posted: Thu May 30, 2013 2:14 am
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

Re: Problem with the .Exe

Posted: Thu May 30, 2013 2:35 am
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.

Re: Problem with the .Exe

Posted: Thu May 30, 2013 2:36 pm
by Snopel
Thank you, it works now

I kinda feel dumb now :oops: