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

Maximums

From ModEnc
Jump to: navigation, search
This page should correctly be named "[Maximums]"; it is wrong due to technical restrictions.


[Maximums] is a section of rules(md).ini, in all rules-based C&C games. In Red Alert, in constisted of 20 different flags, regulating the maximum amount of certain object types and similar things. In Tiberian Sun and Yuri's Revenge, the only maximums-flag left is Players, setting 8 as the maximum number of multiplayer participants (according to the comments at this point, this is due to the IPX layer not supporting more).

The Legend of Warheads=

Note: There is no "Warheads". DeeZire claims the following in his part about [Maximums] in The Guide:

Warheads=
Allows you to set an object heap maximum on warhead types, although it is not known quite how (or even if)
this gets used. This number should never be lower than the number of warheads defined in the
[Warheads] list or bad crashiness will result.

While it is possible this claim was derived from knowlegde gathered by reverse engineering the .exe, several things should be taken into account:

  • There is a flag Warhead in Red Alert's [Maximums]; it is well-known that Westwood coded nothing they didn't explicitly need - so given the fact they reduced the entire section to one flag, why on Earth would they rename a flag that
    • Wouldn't be used anyway
    • Already had a name very, very similar (is a single "s" no end-user is ever gonna see worth a change in the codebase?), and
    • Worked just fine the way it was (is a single "s" worth the danger of creating possibilities for future "Can't find Warhead= bugs?")
  • There is no proof given by DeeZire for the existence of Warheads
  • It wouldn't be the first time the Guide was wrong

Fact is: "Warheads=" is nowhere to be found in either RA's, TS's, RA2's or YR's rules(md).ini or FS's firestrm.ini; and in all of these five files together, "Warheads" without the "=" is found in only twelve instances:

rules.ini (RA) 
Warhead=10  ; warhead types, not actual warheads
firestrm.ini 
[Warheads]
rules.ini (TS) 
 ; This is a list of the various types of warheads available in the game
rules.ini (TS) 
[Warheads]
rules.ini (TS) 
 ; Bright = Does this weapons bullet cause a lighting effect when it impacts (def=no)? If set, this will override the warheads 'Bright' flag.
rules.ini (RA2) 
 ; This is a list of the various types of warheads available in the game
rules.ini (RA2) 
[Warheads]
rules.ini (RA2) 
 ; Bright = Does this weapons bullet cause a lighting effect when it impacts (def=no)? If set, this will override the warheads 'Bright' flag.
rulesmd.ini (YR) 
 ; This is a list of the various types of warheads available in the game
rulesmd.ini (YR) 
[Warheads]
rulesmd.ini (YR) 
 ; Bright = Does this weapons bullet cause a lighting effect when it impacts (def=no)? If set, this will override the warheads 'Bright' flag.
rulesmd.ini (YR) 
 ; **************************** Warheads ************************************


As such, until further proof is uncovered, one should regard the existence of a "Warheads" flag as nothing more than a myth.

Applicable INI Flags

These tables show all INI flags applicable1 to Maximums. The flags are grouped by the internal classes the flags are inherited from, and then listed in the order they are read in by the game. You can re-sort the rows by column values by clicking the arrow icons in the column headings. Each flag can be clicked to visit its page for detailed information.

Please note that this section is accurate only for Yuri's Revenge. All other C&C games use different sets of flags.

1 "Applicable" in this context means "read from the INI files". Certain flags listed here don't have any effect ingame , but they are read and in certain cases cause a crash if not present. Again, refer to each flag's individual page for detailed information.


[Maximums]
INI File Section Key Value Type Default Value Adds to list
Rules(md).ini [Maximums] Players int 8


See also