[0.16.1] take_screenshot ignores surface parameter

This subforum contains all the issues which we already resolved.
Post Reply
aaargha
Filter Inserter
Filter Inserter
Posts: 313
Joined: Wed Dec 07, 2016 8:35 am
Contact:

[0.16.1] take_screenshot ignores surface parameter

Post by aaargha » Thu Dec 14, 2017 8:11 am

Unlesss I'm really misunderstanding how the new surface parameter to take_screenshot is supposed to work, it seems like it does nothing?
API wrote:surface :: SurfaceSpecification (optional): IF defined, the screenshot will be take on this surface unless player is also given.
If I'm reading that correctly the following command should always yield the same result no matter the surface the player is on.

Code: Select all

/c game.take_screenshot{surface=1, position={10,10}, resolution={100,100}}
It does not.
When used while on surface 1 (correct):
1.png
Screenshot from surface 1
1.png (27.88 KiB) Viewed 562 times
When used while on surface 2 (incorrect):
2.png
Screenshot from surface 2
2.png (26.01 KiB) Viewed 562 times
However, using a surface that does not exist still correctly gives an error.

Oxyd
Factorio Staff
Factorio Staff
Posts: 1297
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.16.1] take_screenshot ignores surface parameter

Post by Oxyd » Thu Dec 14, 2017 5:25 pm

Thanks, it simply ignored the passed-in surface. Fixed in 0.16.3.

Post Reply

Return to “Resolved Problems and Bugs”

Who is online

Users browsing this forum: No registered users