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 stored with the map’s entry in the multiplayer map list, and nothing reads it afterwards. No lobby caps the number of players at it, and starting positions and houses are assigned without it. A map declaring MaxPlayers=4 still accepts as many players as the lobby allows.

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

The value is stored with the map’s entry in the multiplayer map list, and nothing reads it afterwards. No lobby caps the number of players at it, and starting positions and houses are assigned without it. A map declaring MaxPlayers=4 still accepts as many players as the lobby allows.

History

  1. Added0.1.0

    Honor a map's MaxPlayers setting