Distributing your games (making a .love file)

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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Distributing your games (making a .love file)

Post by Robin » Sat Aug 22, 2015 3:26 pm

Could you upload the .love? It might provide some insight.
Help us help you: attach a .love.

voyager
Prole
Posts: 4
Joined: Fri Aug 21, 2015 5:26 pm

Re: Distributing your games (making a .love file)

Post by voyager » Sat Aug 22, 2015 4:18 pm

Robin wrote:Could you upload the .love? It might provide some insight.
Sure.
Attachments
game1.love
(199 Bytes) Downloaded 597 times

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Distributing your games (making a .love file)

Post by Robin » Sun Aug 23, 2015 5:05 pm

Ah, it seems like you made a .love from a 7-Zip archive instead of from a ZIP-file. The latter tends to work better, I couldn't even get LÖVE to run the .love on its own.
Help us help you: attach a .love.

Siwy
Prole
Posts: 2
Joined: Sun Feb 28, 2016 6:42 pm

Re: Distributing your games (making a .love file)

Post by Siwy » Mon Feb 29, 2016 2:25 am

Hello.
Can someone tell me what am I doing wrong? I feel some dumb right now.
I have put all my files in a folder called "test" and i packed it to .zip using winrar. I changed the name to test.love and when i try to run it i get
bla bla bla boot.lua 432: No code to run
Your game might be packed incorrectly so on so on..

Please tell me what have I done wrong?

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Distributing your games (making a .love file)

Post by Robin » Mon Feb 29, 2016 7:07 am

As the error message says, you probably zipped the folder "test" instead of its contents. So in the .zip, there is no main.lua at the top level, just a folder called "test".
Help us help you: attach a .love.

Siwy
Prole
Posts: 2
Joined: Sun Feb 28, 2016 6:42 pm

Re: Distributing your games (making a .love file)

Post by Siwy » Tue Mar 01, 2016 1:45 am

Robin wrote:As the error message says, you probably zipped the folder "test" instead of its contents. So in the .zip, there is no main.lua at the top level, just a folder called "test".
Yeah you're right.. what a flop. Now I've encountered another problem, i packed the game to .love did this whole copy /b thing in cmd and tried to run it on a different pc but i got "The program can't start because love.dll is missing" does this mean i have to, have love framework installed on each PC i want to run the game on or did I do something wrong? I also try making the test.love file with all the .dlls from the love folder but it didn't bring any results.

User avatar
slime
Solid Snayke
Posts: 2842
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Distributing your games (making a .love file)

Post by slime » Tue Mar 01, 2016 2:55 am

You have to have love.dll, openal32.dll, SDL2.dll, lua51.dll, mpg123.dll, msvcp120.dll, and msvcr120.dll in the same folder as your fused exe.

bobbyjones
Party member
Posts: 720
Joined: Sat Apr 26, 2014 7:46 pm

Re: Distributing your games (making a .love file)

Post by bobbyjones » Thu Mar 03, 2016 6:03 am

You also have to make the said fused exe
Do you frequently have great ideas but immediately lose them? Check out the MVP for my website called IdeaVault. It is designed to solve that problem. Desktop browsers only currently.

User avatar
Jwatt
Prole
Posts: 41
Joined: Sat Jul 23, 2016 1:38 pm
Contact:

Re: Distributing your games (making a .love file)

Post by Jwatt » Mon Jul 25, 2016 9:37 pm

What are the benefits of renaming the source .zip as .love? Is that a legacy thing, or does it affect something that I haven't encountered? My packaged executables seem to work the same regardless of the file extension.
curious handcrafted games

User avatar
Nixola
Inner party member
Posts: 1940
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Distributing your games (making a .love file)

Post by Nixola » Mon Jul 25, 2016 10:04 pm

LÖVE can tell the system it can open .love files, so even though it's literally just a zip file it adds a layer of convenience when you want to run it. For example, if you install LÖVE on Windows you can just double-click a .love file, but you'd have to drag a .zip file over LÖVE's executable/link in order to run it.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests