Jump to content

MultiplayerOnly: Difference between revisions

From ModEnc²
en>ATHSE
sorry toasty, you=wrong
Rain-Islet (talk | contribs)
m [bot] Batch update {{Bugs}} templates.
 
(17 intermediate revisions by 6 users not shown)
Line 3: Line 3:
|files={{Categ|Maps}}
|files={{Categ|Maps}}
|types={{Categ|Basic}}
|types={{Categ|Basic}}
|values=unsigned integers, (0 to 8)
|values=0 to 255
|default=1
|default=0
|ts=yes
|ts=yes
|fs=yes
|fs=yes
Line 12: Line 12:
|yr=yes
|yr=yes
}}
}}
Specify the minimum number of players. The game can be launched only if the number of players equals the specified number.
<tt>MultiplayerOnly</tt> field is used to specify if a map is of multiplayer (1) or singleplayer (0) type. The game reads this value, but it does not use this field to enforce the map type, so a correct value is not needed for a map to function as SP/MP map. There are further requirements for a map to have more than one player, as well as other requirements to function for missions.
 
[[Matze%27s_tools#FinalAlert_2|FinalAlert2]]/[[Matze%27s_tools#FinalSun|FinalSun]] map editors set <tt>MultiplayerOnly=1</tt> for multiplayer/skirmish maps and <tt>MultiplayerOnly=0</tt> for singleplayer maps, when a new map is created. There should never be a need to set this value manually, except if converting a singleplayer map to multiplayer, or vice versa, but then a whole lot of other changes will be required too.


==Note==
==Note==
The above added by Testid123 is entirely a theory. Tests by G-E, Rampastring, and others have shown it has no effect on RA2/YR loading a multiplayer game, nor is it required for a map to function as multiplayer.  
FA2/FS uses this information for features depending on map type, for example to show Player location values of 0-7 for Multiplayer maps and hide it for Singleplayer maps. It is not affected by the actual number of players.
 
=={{bugs}}==
Values can be 0 through 255. 0 is 'no', all others equate to 'yes'.  


In fact, the FinalAlert2 map editor always writes the value as 1 when saving a multiplayer map.
==See Also==
[[FA2sp]]

Latest revision as of 17:38, 2 July 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: MultiplayerOnly
File(s): Maps
Values: 0 to 255
Default: 0
Applicable to: Basic


MultiplayerOnly field is used to specify if a map is of multiplayer (1) or singleplayer (0) type. The game reads this value, but it does not use this field to enforce the map type, so a correct value is not needed for a map to function as SP/MP map. There are further requirements for a map to have more than one player, as well as other requirements to function for missions.

FinalAlert2/FinalSun map editors set MultiplayerOnly=1 for multiplayer/skirmish maps and MultiplayerOnly=0 for singleplayer maps, when a new map is created. There should never be a need to set this value manually, except if converting a singleplayer map to multiplayer, or vice versa, but then a whole lot of other changes will be required too.

Note

FA2/FS uses this information for features depending on map type, for example to show Player location values of 0-7 for Multiplayer maps and hide it for Singleplayer maps. It is not affected by the actual number of players.

Bugs/Side-Effects/Unexpected Limitations

Values can be 0 through 255. 0 is 'no', all others equate to 'yes'.

See Also

FA2sp