Page 7 of 28
Re: Distributing your games (making a .love file)
Posted: Fri Feb 26, 2010 8:05 am
by bmelts
You need to put the PNG in the .love file before combining it with the .exe.
Re: Distributing your games (making a .love file)
Posted: Fri Feb 26, 2010 8:07 am
by adrywalsh
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?
Re: Distributing your games (making a .love file)
Posted: Fri Feb 26, 2010 8:19 am
by bartbes
.love files are case-sensitive and this really sounds like a case problem.
Re: Distributing your games (making a .love file)
Posted: Fri Feb 26, 2010 8:22 am
by adrywalsh
I thought so, but couldn't prove so.
I'm using all lowercase for everything including the file extension.
Re: Distributing your games (making a .love file)
Posted: Fri Feb 26, 2010 9:21 am
by Robin
You could upload the .love here, we can probably tell what's wrong then.
Re: Distributing your games (making a .love file)
Posted: Fri Feb 26, 2010 4:04 pm
by adrywalsh
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"
Re: Distributing your games (making a .love file)
Posted: Fri Feb 26, 2010 4:33 pm
by Robin
That doesn't really help us, since we can't see whether the .love file was wrongly packaged or anything of that kind.
Re: Distributing your games (making a .love file)
Posted: Fri Feb 26, 2010 11:33 pm
by kikito
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.
Re: Distributing your games (making a .love file)
Posted: Sat Feb 27, 2010 1:42 am
by adrywalsh
uploading the .love file.
I assure you everything is lower case.
Re: Distributing your games (making a .love file)
Posted: Sat Feb 27, 2010 2:05 am
by adrywalsh
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!!!