Page 1 of 1

[0.12.35] take_screenshot with zoom=0 produces weird output

Posted: Fri Jun 03, 2016 1:39 am
by Gandalf
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:

Code: Select all

/c game.take_screenshot{zoom=0}
And here's the result
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).

Re: [0.12.35] take_screenshot with zoom=0 produces weird output

Posted: Fri Jun 03, 2016 7:14 am
by Neemys
Indeed I don"t think the zoom can take 0 as a value. Better output an error.

I test it on windows it just make black screenshot. (Windows 7 64bit, dual screen, 1080x920 (X2), game on fullscreen on one monitor).

Re: [0.12.35] take_screenshot with zoom=0 produces weird output

Posted: Fri Jun 03, 2016 1:50 pm
by Oxyd
Fixed in 0.13.0.