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

Difference between revisions of "Multiplayer Mode INI files"

From ModEnc
Jump to: navigation, search
(Created)
 
m (Replacing Template:TTL with Template:F.)
 
Line 3: Line 3:
 
== Caveats in MP Mode coding ==
 
== Caveats in MP Mode coding ==
  
*The section [{{TTL|MultiplayerDialogSettings}}] is only read and applied ''after'' having finished one game in that gamemode. Therefore, it is not possible to redefine the contents of that section on a per-mode basis. In addititon, redefining allowed credits/unit counts will cause [[Internal Error]]s, if the mode disallows the amount of, for example, credits, that was used in the previous game session, as the game will fail to reset the resized slider to that position and decide to die.
+
*The section [{{f|MultiplayerDialogSettings|link}}] is only read and applied ''after'' having finished one game in that gamemode. Therefore, it is not possible to redefine the contents of that section on a per-mode basis. In addititon, redefining allowed credits/unit counts will cause [[Internal Error]]s, if the mode disallows the amount of, for example, credits, that was used in the previous game session, as the game will fail to reset the resized slider to that position and decide to die.
 
*Referencing objects that were not defined/referenced in the main rules file will cause [[Internal Error]]s. Redefining objects that were defined/referenced correctly, however, is perfectly safe.
 
*Referencing objects that were not defined/referenced in the main rules file will cause [[Internal Error]]s. Redefining objects that were defined/referenced correctly, however, is perfectly safe.
  

Latest revision as of 10:19, 27 November 2009

Each Multiplayer Game Mode requires a separate file to control the changes introduced by that game mode. That file acts as an addendum of the Rules(md).ini file, and can contain almost any code that the rules file can.

Caveats in MP Mode coding

  • The section [MultiplayerDialogSettings] is only read and applied after having finished one game in that gamemode. Therefore, it is not possible to redefine the contents of that section on a per-mode basis. In addititon, redefining allowed credits/unit counts will cause Internal Errors, if the mode disallows the amount of, for example, credits, that was used in the previous game session, as the game will fail to reset the resized slider to that position and decide to die.
  • Referencing objects that were not defined/referenced in the main rules file will cause Internal Errors. Redefining objects that were defined/referenced correctly, however, is perfectly safe.

See Also