Allow 'camera' LuaGuiElements to render through the fog of war again.
Posted: Sat Nov 16, 2024 2:17 am
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 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.