Skip to content

MaxPlayers

Added in 0.1.0

Declares the largest number of players a multiplayer map is meant for, without restricting anything.

Packet-listed player ceiling

Specification — Packet-listed player ceiling
Applies to
map packets
File
scenario packet (.pkt)
Section
[<Map ID>]
Value
integer
When omitted
4
Used by the game
No — loaded but not used
MyMaps.PKT
[MYMAP] ; a section named by the packet's [MultiMaps] list
MinPlayers=2
MaxPlayers=4

The value is read into the entry’s maximum player count. That count is private to the listing and nothing reads it afterwards, so neither the lobby, the starting-position pass nor the house assignment consults it: a map declaring MaxPlayers=4 can still be started with eight players.

Loose map player ceiling

Specification — Loose map player ceiling
Applies to
multiplayer maps
File
map file (.mpr)
Section
[Multiplay]
Value
integer
When omitted
4
Used by the game
No — loaded but not used
MyMap.MPR
[Multiplay]
MinPlayers=2
MaxPlayers=4

A loose .MPR in the game directory declares its player limits in its own [Multiplay] section. The value is read into the listing’s maximum player count, which is private to the listing and read by nothing afterwards, so the declared ceiling restricts nothing.

The section is read only while the map file is available; a listing for a file that has gone missing keeps the initial counts of 2 and 4.

History

  1. Added0.1.0In development

    Honor a map's MaxPlayers setting