Distributing your games (making a .love file)
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Distributing your games (making a .love file)
You need to put the PNG in the .love file before combining it with the .exe.
Re: Distributing your games (making a .love file)
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?
After these steps I make my exe.
Is this not the correct operation?
while (1)
do LÖVE
do LÖVE
- 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)
.love files are case-sensitive and this really sounds like a case problem.
Re: Distributing your games (making a .love file)
I thought so, but couldn't prove so.
I'm using all lowercase for everything including the file extension.
I'm using all lowercase for everything including the file extension.
while (1)
do LÖVE
do LÖVE
- 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)
You could upload the .love here, we can probably tell what's wrong then.
Help us help you: attach a .love.
Re: Distributing your games (making a .love file)
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"
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
do LÖVE
- 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)
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.
- 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)
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.
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.
Re: Distributing your games (making a .love file)
uploading the .love file.
I assure you everything is lower case.
I assure you everything is lower case.
- Attachments
-
- test.love
- (545 Bytes) Downloaded 152 times
while (1)
do LÖVE
do LÖVE
Re: Distributing your games (making a .love file)
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!!!
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
do LÖVE
Who is online
Users browsing this forum: No registered users and 1 guest