Screenshot_tool deprecated

by Klonan

Takes a screenshot of the selected are at 100% zoom

Utilities
8 years ago
0.13
5

i Unlimited size screenshots and less than 100% zoom

8 years ago

Unlimited size screenshots

Currently you are limited to fairly small areas. At 100% zoom the biggest area you can screenshot is 128x128 if your GPU can handle 4096x4096 textures. That is not big enough. Would be nice if it could take screenshots of any area. My belt balancer is 512x1700 tiles as an example. And if you want to take a screenshot of anything large, or just a small base then you quickly hit the limits. I did a complete rewrite of the control.lua to split images into several when dimensions are above 64x64 and managed to take 1.76 GB of footage of my belt balancer at 100%. Next is to write some code external to Factorio that can put the images back together.

control.lua by Qon - GPLv3

Less than 100% zoom

100% zoom means several GB of data for big things, and a lot of render time. It's a bit overkill if you want to share your creations with others. To upload the pictures they have to be converted to JPG and downscaled anyways. So why not capture at some reasonable quality? When taking a big screenshot (default to 100% if the image is small enough) you could have a popup that asks the user if they want 100%, 50%, 33% (if possible without stitching becoming noticable) or 25%. I haven't implemented this yet, might do it later if you don't.

8 years ago
(updated 8 years ago)

Less than 100% zoom implemented. If the area is less than 64x64 (Factorio 0.13.17) then a 100% screenshot will be taken.

Otherwise a popup dialog box asks which quality setting is requested. If the chosen quality produces images larger than 64 * 32 = 2048 pixels in width or height then multiple images that together cover the entire area will be taken.

64x64 tiles were chosen because of a bug in Factorio. In 0.13.18 it should be possible to just try larger sizes and split to smaller sizes in case of failure.

control.lua v0.3.0 by Qon - GPLv3
Full mod: Screenshot_tool v0.3.0 by Qon - GPLv3

New response