[0.12.35] take_screenshot with zoom=0 produces weird output
Posted: Fri Jun 03, 2016 1:39 am
Like the title says, specifying a 0 value for zoom when taking a screenshot via the lua console produces unexpected output. Here's the full command:
And here's the result
Note: I'm running Linux (x64) and I have two monitors (game is maximized on one). Dunno if that matters.
Long story short it's probably best to just error out when a user specifies 0 as a zoom level (I did it by mistake and was confused).
Code: Select all
/c game.take_screenshot{zoom=0}
Screenshot
It doesn't always happen, sometimes it'll just render a random area of the map (not where the player is standing). It helps to run around or move some other windows around. It looks like the game is just reading whatever it finds in some kind of graphics buffer. At some point I found things in the output that don't even belong to the game (google maps).Note: I'm running Linux (x64) and I have two monitors (game is maximized on one). Dunno if that matters.
Long story short it's probably best to just error out when a user specifies 0 as a zoom level (I did it by mistake and was confused).