Add method to take map screenshot to the Lua API

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Azaol
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Mar 27, 2025 12:12 pm
Contact:

Add method to take map screenshot to the Lua API

Post by Azaol »

TL;DR
Implement a take_map_screenshot method into the LuaGameScript class.

What?
Allow capturing
map_screenshot.png
map_screenshot.png (130.96 KiB) Viewed 134 times
... instead of
viewport_screenshot.png
viewport_screenshot.png (1.68 MiB) Viewed 134 times
Why?
I like using take_screenshot & take_technology_screenshot, and I would love to be able to do so for the map view! It would be great to center it on an exact position (every time), have options for each minimap toggle that we already have as parameters, along with possibly some new ones like force_coverage_on_explored_chunks, force_reveal_chunks_within_screenshot_area, ignore_ghost_entities, or perhaps even a replace_terrain_by_color. Those options would have shorter names from someone good at naming!

This feature itself (and/or the latest option about terrain) might be related/relevant to Feature Request #30668: Screenshot command option to omit terrain. Depending on how it is implemented, that may also become a minimap option in the corner for Feature Request #1691: improved minimap/bigmap.

However, even with no additional options, I'd love to see the command made available!
Post Reply

Return to “Modding interface requests”