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 »

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 178 times
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

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

Post by Taehl »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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: Google [Bot] and 59 guests