ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "FogOfWar"

From ModEnc
Jump to: navigation, search
(Un-Deezire'd)
Line 1: Line 1:
==On Maps==
+
{{Flag
{{DeeZireInclusion}}<br />
+
|name={{PAGENAME}}
Simple flag which can be set to 'yes' or 'no' and determines if the 'fog of war' grows on this map. Note that the fog of war is different from the shroud re-growing over time, since with the fog of war some areas of the map may still be slightly visible though anything under the fog may not be, although this logic appears to be disabled in Red Alert 2.
+
|files={{Categ|Maps}}, {{Categ|ini=rules}} (RA2/YR only)
 +
|types={{Categ|SpecialFlags}}, {{Categ|MultiplayerDialogSettings}}
 +
|values={{values|booleans}}
 +
|default=no
 +
|ts=yes
 +
|fs=yes
 +
|hp=yes
 +
|ra2=yes
 +
|yr=yes
 +
}}
  
==On {{s|MultiplayerDialogSettings|link}}==
+
Determines whether Fog of War is enabled. The fog differs from the usual opaque, black shroud in that it's semi-transparent and [[FogRate|automatically regrows over time]]. Terrain and buildings are visible through the fog, but units and animations are not. Building sprites will also linger on the fog even if the buildings themselves are destroyed, until the area is re-explored. These factors can alter the flow of the game significantly.
{{DeeZireInclusion}}<br />
+
 
Can be set to 'yes' or 'no' and determines if the 'Fog Of War' is used in this game (from Tiberian Sun). This is parsed and valid in Red Alert 2 although it is yet to be determined whether or not it still works. It may have been disabled due to possible problems with the Spy Satellite or Gap Generator logic, although FOG.SHP is still in the game files (it has even been modified to be suitable for Red Alert 2) and is referred to by the game code.
+
Despite listed under {{s|General|link}} in {{ts}} and {{fs}}, this flag is only read from {{s|SpecialFlags|link}} in those two games. In {{ra2}} and {{yr}}, it is also parsed from {{s|MultiplayerDialogSettings|link}}.
 +
 
 +
{{Bugs}}
 +
The Fog of War is notoriously prone to crashes due to frequent out of bound surface [https://en.wikipedia.org/wiki/Bit_blit blits]. These crashes have since been fixed in modern [https://en.wikipedia.org/wiki/DirectDraw DirectDraw] wrappers like [https://github.com/CnCNet/cnc-ddraw CNC-DDraw] and [https://github.com/CnCNet/ts-ddraw TS-DDraw].
 +
 
 +
There are also minor bugs/side-effects like [[IsAnimated|animated terrain objects]] (e.g. blossom trees, ore drills) becoming invisible under the fog.

Revision as of 09:40, 7 February 2020

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: FogOfWar
File(s): Maps, rules(md).ini (RA2/YR only)
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no
Applicable to: SpecialFlags, MultiplayerDialogSettings


Determines whether Fog of War is enabled. The fog differs from the usual opaque, black shroud in that it's semi-transparent and automatically regrows over time. Terrain and buildings are visible through the fog, but units and animations are not. Building sprites will also linger on the fog even if the buildings themselves are destroyed, until the area is re-explored. These factors can alter the flow of the game significantly.

Despite listed under [General] in Tiberian Sun and Firestorm, this flag is only read from [SpecialFlags] in those two games. In Red Alert 2 and Yuri's Revenge, it is also parsed from [MultiplayerDialogSettings].

Cc alert.png Bugs/Side-Effects/Unexpected Limitations

The Fog of War is notoriously prone to crashes due to frequent out of bound surface blits. These crashes have since been fixed in modern DirectDraw wrappers like CNC-DDraw and TS-DDraw.

There are also minor bugs/side-effects like animated terrain objects (e.g. blossom trees, ore drills) becoming invisible under the fog.