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
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

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

Post by murks »

Separate game.love and love.exe would work, "love.exe \path\to\game.love" or drag and drop is not what most Windows users are used to. I guess with your last suggestion you mean creating bat script?
User avatar
tio
Citizen
Posts: 61
Joined: Thu Dec 12, 2013 1:04 pm
Location: BR BR?
Contact:

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

Post by tio »

murks wrote:I guess with your last suggestion you mean creating bat script?
A nicely configured shortcut will do :D
User avatar
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

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

Post by murks »

I don't have windows available to create/check a shortcut.

Code: Select all

20#\game\love.exe \game\game.love
Would the above code work, assuming:
1) the file was named game.lnk
2) in the same directory there was a directory called game, containing both love.exe and game.love ?
lumlune
Prole
Posts: 12
Joined: Fri May 02, 2014 9:50 pm

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

Post by lumlune »

Having some trouble. I've followed the instructions on the Wiki only to have my executable hang on start.

Here's my code if anyone else would give it a shot. :roll:
http://www.mediafire.com/download/adzop ... xwords.rar
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 »

lumlune wrote:Having some trouble. I've followed the instructions on the Wiki only to have my executable hang on start.
That's a .rar, though. You need to make a .zip to make a .love from. Are you using WinRAR? It might have an option to make a .zip instead of a .rar.
Help us help you: attach a .love.
lumlune
Prole
Posts: 12
Joined: Fri May 02, 2014 9:50 pm

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

Post by lumlune »

Robin wrote:That's a .rar, though. You need to make a .zip to make a .love from. Are you using WinRAR? It might have an option to make a .zip instead of a .rar.
I did use a .zip to create the .love, I just made that in haste to share the source. I'm wondering whether the issue is in my code.
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 »

Well, me and many other people on this forum can't look inside a .rar, so it's not really useful for us.
Help us help you: attach a .love.
lumlune
Prole
Posts: 12
Joined: Fri May 02, 2014 9:50 pm

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

Post by lumlune »

I forgot about you Linux guys. :crazy:

Here's the .love.
http://www.mediafire.com/download/fv93u ... words.love
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 »

Two things: replace word[1] by word:sub(1,1), because the first doesn't work, so it goes all the way to "z".

The other thing: even when I replace "g" by "b", it takes a few seconds to load the wordlist on my computer. It's much faster when not in a .love, because it doesn't need to uncompress the 1.9MB file. My suggestion: use a script to filter the wordlist beforehand. Since you only need hexadecimal words of length 3 or 6, you don't need the whole words.txt in your .love.

(Also, please use another upload site in the future, Mediafire has really obnoxious pop-up ads :( )
Help us help you: attach a .love.
lumlune
Prole
Posts: 12
Joined: Fri May 02, 2014 9:50 pm

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

Post by lumlune »

Thanks, it was the word file, after all — but I managed to work around it by making it one great Lua table. It loads in less than a second. :awesome:
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests