Allow 'camera' LuaGuiElements to render through the fog of war again.

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Penguin_Spy
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Feb 26, 2017 3:09 am
Contact:

Allow 'camera' LuaGuiElements to render through the fog of war again.

Post by Penguin_Spy »

In Factorio 1.1 and earlier versions, a 'camera' type LuaGuiElement would always render what was in it's area of view, ignoring whether or not the player's force had that area charted (it rendered the actual surface). In 2.0 this changed, seemingly to internally use the same system that the remote view and stuff like alert tooltips use, and whether or not the camera rendered the area correctly was inconsistent. In 2.0.18 a bug was fixed (121029) which inadvertently meant that a camera element will always render the map view, and not necessarily the actual surface at the position. For areas that are uncharted, the camera is always just blank.

I propose a new field when creating camera elements, something like "render_through_fog_of_war" that makes the camera ignore what the player's force's chart is, and just renders the actual surface at the position like in 1.1 and earlier versions of 2.0.
I exist.
User avatar
_CodeGreen
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Sat Mar 05, 2022 11:30 am
Contact:

Re: Allow 'camera' LuaGuiElements to render through the fog of war again.

Post by _CodeGreen »

I'd almost argue that there's no reason to have a camera show fog of war, so it should be that the default goes through fog of war and there should be a field to enable that behavior, not the other way around.
My Mods | If you can't make it perfect, make it adjustable
Post Reply

Return to “Modding interface requests”