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.
Post Reply
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

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

Post by TechnoCat » Thu Jan 14, 2010 2:42 pm

main.lua:20

Code: Select all

logo = love.graphics.newImage("Taehl.png"),
not (depending on the filename of course)

Code: Select all

logo = love.graphics.newImage("taehl.png"),
Windows doesn't care about case, but other OS filesystems and the LOVE filesystem (when running from a love file) do.
PPT.love
(16.85 KiB) Downloaded 110 times

User avatar
Taehl
Dreaming in associative arrays
Posts: 1024
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

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

Post by Taehl » Thu Jan 14, 2010 2:56 pm

Aah, I see. I would have never thought of that. Thanks for the help.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.

Xoria
Citizen
Posts: 61
Joined: Sun Jan 31, 2010 1:24 am

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

Post by Xoria » Sun Jan 31, 2010 10:10 pm

Is there any portable version of love 0.6.0? One that's just an exe that you don't have to install? If not, how do you make one?

User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post by bartbes » Sun Jan 31, 2010 10:17 pm

Yes, the zipped binaries one on the downloads page, for your convenience also linked here.

Xoria
Citizen
Posts: 61
Joined: Sun Jan 31, 2010 1:24 am

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

Post by Xoria » Mon Feb 01, 2010 2:45 am

Thanks, got I got another question. The love docs says to merge "love".
Here's how to do it on Windows. In a console, type this:

copy /b love.exe+game.love game.exe
Where IS this console, and how do you get it?

User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

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

Post by TechnoCat » Mon Feb 01, 2010 3:01 am

On Windows, hit windows+r, type cmd, and hit enter.

Xoria
Citizen
Posts: 61
Joined: Sun Jan 31, 2010 1:24 am

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

Post by Xoria » Mon Feb 01, 2010 7:27 pm

Thanks alot.


For the zipped binaries, how do you make it run with a .love folder? I drag it to the love.exe but it won't work.

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 01, 2010 8:59 pm

Make sure main.lua is top-level: LÖVE won't run it otherwise.

To make a zip such as that, zip all the files in the right folder, not the folder itself.
Help us help you: attach a .love.

Xoria
Citizen
Posts: 61
Joined: Sun Jan 31, 2010 1:24 am

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

Post by Xoria » Mon Feb 01, 2010 10:09 pm

It worked. :D

User avatar
adrywalsh
Prole
Posts: 20
Joined: Fri Feb 26, 2010 7:24 am

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

Post by adrywalsh » Fri Feb 26, 2010 7:38 am

Greetings!

When I attempt to run my executable it tells me my png "test.png" does not exist.
Why can't it find it?

I've tried putting the png file inside the zip and including it separately, as with the dlls, but neither seems to work.

Please, help!

Windows XP

****
Code:
g_EffectImage = love.graphics.newImage('test.png')
****
png is super small, if that matters
while (1)
do LÖVE

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests