I am going to explode now...

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.
NetShock1
Prole
Posts: 2
Joined: Wed Apr 18, 2012 10:55 pm

I am going to explode now...

Post 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.
Alex22
Prole
Posts: 26
Joined: Wed Jun 02, 2010 5:42 pm

Re: I am going to explode now...

Post by Alex22 »

Follow the instructions on this page:
https://love2d.org/wiki/Game_Distribution
(Making an executable file out of a .love-file )
NetShock1
Prole
Posts: 2
Joined: Wed Apr 18, 2012 10:55 pm

Re: I am going to explode now...

Post 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.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: I am going to explode now...

Post 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?
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: I am going to explode now...

Post 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.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: I am going to explode now...

Post by Nixola »

Isn't it 'copy -b'?
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: I am going to explode now...

Post by Roland_Yonaba »

Nah, definitely 'Copy /b'...
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: I am going to explode now...

Post 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.
Help us help you: attach a .love.
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: I am going to explode now...

Post by slime »

The Windows command prompt often accepts both / and -, but not always I think.
User avatar
felix24
Party member
Posts: 163
Joined: Tue Jul 26, 2011 4:51 pm
Contact:

Re: I am going to explode now...

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 2 guests