Page 1 of 2

I am going to explode now...

Posted: Wed Apr 18, 2012 11:00 pm
by NetShock1
I have been trying to simply make an .exe to allow people to download off my site.
I have made a zip, put main.lua, the .love executable (which I got by right clicking love, "Go to file location") and got the love.exe from there and coped the DLLS and put them into the zip. I renamed it to .love, and the icon changed to the blue face or whatever it is. I am lost now, what do I do next? How can I make the simple .exe.
Thanks anyways.

Re: I am going to explode now...

Posted: Wed Apr 18, 2012 11:12 pm
by Alex22
Follow the instructions on this page:
https://love2d.org/wiki/Game_Distribution
(Making an executable file out of a .love-file )

Re: I am going to explode now...

Posted: Wed Apr 18, 2012 11:23 pm
by NetShock1
I tried that, I tried everything.
Can you gave be possibly the simplest step-by-step tutorial?
If you do, i'll thank you a thousand times.

Re: I am going to explode now...

Posted: Wed Apr 18, 2012 11:35 pm
by Jasoco
For now the easiest thing to do without jumping through all the hoops is to offer the .love file properly zipped up, and a link to love2d.org so the other people can download the proper version of Löve. Remember, creating an EXE/APP is best left for when the game is completely finished. If you offer an EXE, you also need to offer a proper APP for OS X users and the right DEB for Linux versions. It's not something you want to do all the time. Just at the end. For prototyping and demo stages, just offer a .love (It's also MUCH smaller and saves on bandwidth and hosting costs) and a link to this site.

Worry about application versions at the end.

Unless your game is completely finished. Still... has .love file merging been fixed in 0.8.0? Or are you using a different Löve version?

Re: I am going to explode now...

Posted: Wed Apr 18, 2012 11:51 pm
by slime
Step 1: zip your love game folder (the one containing main.lua) and rename it to yourgame.love
Step 2: Make a copy of the folder containing love.exe and the various dll files.
Step 3: Open a new command prompt and type:

Code: Select all

copy /b C:\path\to\lovecopy\love.exe + C:\path\to\yourgame.love  C:\path\to\lovecopy\yourgame.exe
Step 4: Zip the copied folder which should now contain a working game exe, and distribute.

Re: I am going to explode now...

Posted: Thu Apr 19, 2012 1:03 pm
by Nixola
Isn't it 'copy -b'?

Re: I am going to explode now...

Posted: Thu Apr 19, 2012 1:16 pm
by Roland_Yonaba
Nah, definitely 'Copy /b'...

Re: I am going to explode now...

Posted: Thu Apr 19, 2012 2:09 pm
by Robin
Nixola wrote:Isn't it 'copy -b'?
Roland_Yonaba wrote:Nah, definitely 'Copy /b'...
DOS used / to prefix command line options. That was why they had to use \ as a path separator when they added directories.

Re: I am going to explode now...

Posted: Thu Apr 19, 2012 3:30 pm
by slime
The Windows command prompt often accepts both / and -, but not always I think.

Re: I am going to explode now...

Posted: Thu Apr 19, 2012 4:22 pm
by felix24
you probably know this already but just in case you don't, when you're zipping your project for the .love file, only zip the contents of the project folder and not the folder itself. in other words, if you have a folder myProject that contains your main.lua and all the rest, go into myProject, select main.lua and all other project related files and folder, and zip those. then rename the zip to whatever.love. if you zip the folder itself it won't work.

good luck.