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
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

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

Post by bmelts » Fri Feb 26, 2010 8:05 am

You need to put the PNG in the .love file before combining it with the .exe.

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 8:07 am

Forgive me for not understanding. I put the png into the .zip file, then I change the .zip to .love.
After these steps I make my exe.

Is this not the correct operation?
while (1)
do LÖVE

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 » Fri Feb 26, 2010 8:19 am

.love files are case-sensitive and this really sounds like a case problem.

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 8:22 am

I thought so, but couldn't prove so.
I'm using all lowercase for everything including the file extension.
while (1)
do LÖVE

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 » Fri Feb 26, 2010 9:21 am

You could upload the .love here, we can probably tell what's wrong then.
Help us help you: attach a .love.

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 4:04 pm

The code is extremely short, so I'll just paste it here.

function love.draw()
love.graphics.draw(g_Effect, 200, 100)
end
g_EffectImage = love.graphics.newImage("test.png")
g_Effect = love.graphics.newParticleSystem(g_EffectImage, 30)
g_Effect:setLifetime( -1 )
g_Effect:setDirection( math.pi )
g_Effect:setSpeed( 40, 40 )
g_Effect:setColor(255, 255, 255, 222, 255, 255, 255, 0)
g_Effect:setParticleLife(.5, 2)
g_Effect.setEmissionRate(g_Effect, 5)
g_Effect:setRadialAcceleration( 0, 0)
function love.update(deltaSeconds)
g_Effect:update(deltaSeconds)
end

runs perfectly as a .love
bluescreens as an exe "could not open file test.png. does not exist"
while (1)
do LÖVE

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 » Fri Feb 26, 2010 4:33 pm

That doesn't really help us, since we can't see whether the .love file was wrongly packaged or anything of that kind.
Help us help you: attach a .love.

User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

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

Post by kikito » Fri Feb 26, 2010 11:33 pm

It certainly looks as a uppercase/lowercase problem.

Sorry if I sound like repeating what others have said, but you have checked the file *in the hard drive* is called exactly test.png, all lowercases - no test.PNG or Test.png.
If it is, it will work as an uncompressed windows folder but not as a zip file.

If this doesn't work, please upload the .love file.
When I write def I mean function.

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 » Sat Feb 27, 2010 1:42 am

uploading the .love file.
I assure you everything is lower case.
Attachments
test.love
(545 Bytes) Downloaded 88 times
while (1)
do LÖVE

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 » Sat Feb 27, 2010 2:05 am

apparently PNG gets force-uppercased when I package in my zip, then I cannot change file extensions in the zip...
Is there a way to zip the file without my windows hacking my things?

this issue has been resolved. stupid windows file extensions.

Thank you for your helps!!!
Last edited by adrywalsh on Sat Feb 27, 2010 2:09 am, edited 1 time in total.
while (1)
do LÖVE

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests