Screenshots don't work
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Screenshots don't work
---
Last edited by Dvondrake on Mon Jan 21, 2019 10:20 pm, edited 1 time in total.
Re: Screenshots don't work
whats your os?
Re: Screenshots don't work
---
Last edited by Dvondrake on Mon Jan 21, 2019 10:20 pm, edited 1 time in total.
Re: Screenshots don't work
Disclaimer: I've never used this feature. Now, this might seem like a stupid question but, have you tried making sure the screenshot is taken after all drawing has been done?
Example:
Otherwise LÖVE might be trying to dump an empty buffer. But I might be pulling facts right from my rear end
Example:
Code: Select all
function draw_stuff()
-- draw teh stuffs
love.graphics.draw(mah_hump)
love.graphics.draw(mah_hump_mah_hump)
love.graphics.draw(mah_hump_mah_hump_mah_hump)
-- and then take the screenshot
love.graphics.screenshot()
end
Teh Blog -> http://cryodreams.com.ar
Re: Screenshots don't work
---
Last edited by Dvondrake on Mon Jan 21, 2019 10:20 pm, edited 1 time in total.
Re: Screenshots don't work
This be a bug! A bug I say!
Your screenshot should look like this, right?
LÖVE is putting a wrong header into the bmp so most image editors will fail trying to load it. It should be trivial to fix for the next release, I guess.
I tried to write a little Lua function to insert the missing bytes, but it failed miserably, probably because of encoding problems. I'm still wondering why when I call file:write(0x42) Lua will write 0x36 to the file but who knows...
Your screenshot should look like this, right?
LÖVE is putting a wrong header into the bmp so most image editors will fail trying to load it. It should be trivial to fix for the next release, I guess.
I tried to write a little Lua function to insert the missing bytes, but it failed miserably, probably because of encoding problems. I'm still wondering why when I call file:write(0x42) Lua will write 0x36 to the file but who knows...
Teh Blog -> http://cryodreams.com.ar
Re: Screenshots don't work
---
Last edited by Dvondrake on Mon Jan 21, 2019 10:19 pm, edited 1 time in total.
Re: Screenshots don't work
Yeah, it probably is.Merkoth wrote:This be a bug! A bug I say!
Re: Screenshots don't work
I'm frustrated that the next release of Love isn't out yet which hopefully will have a fix for this.
Does anyone know a way to get around this bug while we wait for the next release? (for windows)
Does anyone know a way to get around this bug while we wait for the next release? (for windows)
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Screenshots don't work
Well, (talking about digging up old threads that was six months ago...)
You could either use the Print Screen key, or you might try to replicate what Merkoth did -- but you'll have to do that on your own, since Merkoth is very passive lately.
You could either use the Print Screen key, or you might try to replicate what Merkoth did -- but you'll have to do that on your own, since Merkoth is very passive lately.
Help us help you: attach a .love.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 5 guests