DocsHostingConfiguration

Networking

A multiplayer server plays enhanced networking unless you say otherwise: built for big games, it sends each player object updates by the error that player would see, sends far players' controls less often, and blends corrections on players' PCs. Classic networking is Halo 3's own. Co-op has models of its own, and the choice is per server, in [defaults] or a [[server]]:

SettingValuesMeaning
network_model"enhanced" (default), "classic"How multiplayer games replicate. Changing it restarts the server once it has no players. "large", an earlier name, still reads as "enhanced".
coop_network"lockstep" (default), "lockstep30", "host", "host30"How co-op games play: campaign, ODST, Firefight and a playlist's co-op entries. "lockstep" is Halo 3's own, at MCC's 60 ticks a second: every machine runs the game together. "lockstep30" is the same at the Xbox 360's 30 ticks a second. With "host", experimental, the server simulates and its players predict their own moves, so aiming and moving don't wait for the round trip. "host30", experimental too, is "host" with the mission at the Xbox 360's 30 ticks a second; a player on a build older than it is told to update. Restart the server to change it.
dedicated.toml
[defaults]
network_model = "enhanced"   # or "classic", Halo 3's own
coop_network = "lockstep"    # Halo 3's own; "lockstep30" at 30 ticks; or "host" and "host30", experimental
  • Every player's game takes the server's model as it joins: there's nothing for them to set. The Server Browser shows it. Listen hosts have the same choice under Host Settings → Classic networking, and co-op hosts choose Lockstep 60, Lockstep 30, or host-authoritative co-op at 60 or 30 in Host Settings' Co-op networking.
  • Riders carried by vehicles (Experimental, off by default, enhanced networking only): players standing on or riding in a moving vehicle stay where they are on it, for everyone. A playlist entry turns it on for one game with "riders_carried": true in its world; see the playlist file reference.
  • A server that names no network_model plays enhanced networking. To host Halo 3's own, set network_model = "classic".
  • Neither setting has an environment variable: set them in dedicated.toml.
  • Tick rate: servers simulate 60 ticks a second unless you set tick_rate to 30.
  • Per-player upload: there's no cap to set. Under overload, an enhanced server gives way by itself, in order: objects behind a player tolerate more error first, then the AI's far controls, then every other update, and only while its network work takes a fifth of its time or more. share_rate caps mod downloads only.
  • Every player records their own films, on both models, and a server can record its games too: see server films.
  • A server with many places spreads its network work over more threads: see big servers.

Playing at 30 ticks

tick_rate = 30, in [defaults] or a [[server]] block, plays a server's multiplayer games at 30 ticks a second instead of 60. It halves the server's simulation, for a machine that runs many servers: with 13 players on Guardian, a server used about 47% less processor time. Only the server changes. Every player's game stays at 60, and any player on your version can join.

  • What players get: 30 updates a second instead of 60, and a round trip about 8 ms longer on average, which max_ping sees too. What the server simulates moves in steps of 33 ms: grenades, unmanned vehicles and a projectile's instant hit, whose range doubles. A player's own movement and shots still start on their own machine.
  • Multiplayer only: co-op, ODST and Firefight keep the rate their coop_network sets, in a playlist too.
  • The value is 30 or 60, and a change counts from the next game. RECLAIMER_DEDICATED_TICK_RATE sets it too.
  • Server falling behind goes by the server's own rate: under 27 frames a second at 30, not 54.
  • A vehicle driven at speed hasn't been tried at 30 yet.

A player's own host has the same choice in Host Settings.

Big servers

A server with more than 32 places (max_players) spreads its network work by itself; a smaller one keeps Halo 3's single game thread. Three settings, in [defaults] or a [[server]], say otherwise. What each player receives is the same either way, and a change restarts the server once it has no players.

SettingDefaultMeaning
encode_onceon above 32 placesEach object's update is encoded once a tick and shared by every player owed the same fields, instead of once per player. false turns it off.
channel_threadsautomatic above 32 places, else 1The threads that update the players' network channels each frame, the game's own included. 1 is the game's thread alone. 0 is automatic: one thread for every 8 players, up to a quarter of the machine's threads and 8. At most 64.
node_threads1The threads that pose players' bodies each tick, the game's own included. 0 is automatic: in games of 48 to 96 bodies, one thread for every 16, up to a quarter of the machine's threads and 4. At most 64.

Give a big server the cores to go with it: these threads help only where the machine has spare ones. See servers per machine.