DocsHostingCampaign and co-op

Campaign co-op

A dedicated server can run a campaign in co-op, with no player as host, for up to 16 players: Halo 3's, Halo: CE's, Halo 2's, Halo 3: ODST's, Halo: Reach's, or a mod's. It plays the missions one after another, from the one you name. Give a [[server]] one campaign line instead of a playlist, variant or map and game, naming the mission by its title, its file or its number:

dedicated.toml
[[server]]
name = "Halo 3 Co-op"
port = 49178
max_players = 16
campaign = { mission = "Sierra 117", difficulty = "heroic" }

[[server]]
name = "Combat Evolved Co-op"
port = 49179
campaign = { campaign = "halo1", mission = "a10", difficulty = "heroic" }

Campaign servers is the whole guide: every game's missions by the names to write, the files each game needs, mods' campaigns, the players' own characters, difficulty, starts and modifiers, and what each refusal means. In short:

  • campaign in the line is "halo3" (the default), "halo1", "halo2", "odst", "reach" or a mod's campaign by its title, such as "Cursed Halo Again". dedicated content lists every campaign and mission the server can host, and dedicated check says which mission the line was found to be.
  • Players find the server in the Server Browser, or join it by address, as they join a co-op lobby, and need the game whose campaign it plays. See campaign servers in the player guide.
  • A campaign server takes up to 16 players: a higher max_players, also from [defaults], stops dedicated check and the start. It can't also have a playlist, variant, map, game, base_map, odst or reach.
  • It starts the mission once min_players players are in its lobby and every connected player is in, or 30 seconds after the last one joined, then counts down start_countdown_seconds. Players can join a mission under way.
  • A won mission leads to the next, ODST's by its own story, and after the last the server starts again from the mission you set. A mission that ended any other way is played again.
  • A mission loads for every player together, and load_timeout removes nobody while it does, and one player's stuck load no longer sends everyone back to the lobby. A server has no screen of its own, so when every player's game goes out of step with the server's at once, the server checks one player's game and takes it; trust_player_games = false turns that off.
  • Co-op plays lockstep by default (see coop_network; host-authoritative co-op, also at 30 ticks a second, is Experimental), friendly_fire = false spares the marines too, players vote to skip cinematics, and co-op games report no stats. Checkpoints stay in the server's memory, and restarting the server starts the mission you set afresh.
  • The remote console can't choose a campaign server's mission: see co-op servers' console.

Modifiers, skulls and sprint

A campaign server's modifiers set what the Campaign page's Modifiers do, on every game's campaign:

dedicated.toml
campaign = { mission = "Sierra 117", difficulty = "heroic", modifiers = { health_percent = 150, skulls = 513, sprint = true, sprint_stamina_seconds = 10 } }
health_percent, damage_percent
Enemy health and damage, 25 to 1000 in steps of 25; 100 is the game's own.
health_per_player_percent, damage_per_player_percent
How much they grow per extra player, 0 to 100 in steps of 5.
skulls
The skulls that are on, as one number: add up the values of the skulls you want from the table below. 513 is Iron (1) and Assassin (512). None when left out.
scoring
Campaign scoring: "off" (the default), "team" or "free_for_all".
sprint
true: every player sprints by holding Sprint while running forward. Off when left out.
sprint_speed_percent
Sprint speed, 110 to 200 percent in steps of 10; 150 when left out.
sprint_stamina_seconds
How long a full meter lasts, up to 30 seconds, or 0 for unlimited; 5 when left out.
third_person
true: every player sees their character in third person.
players_choose_camera
true: each player chooses first or third person with their Switch camera key.
disable_friendly_fire
true: players can't hurt each other. friendly_fire = false on the server does the same.
Gold skullValueSilver skullValue
Iron1Assassin512
Black Eye2Blind1024
Tough Luck4Cowbell2048
Catch8Grunt Birthday Party4096
Fog16IWHBYD8192
Famine32
Thunderstorm64
Tilt128
Mythic256

These are Halo 3's and ODST's skulls. On another game's missions, only the skulls that game plays stay on.

Skipping cinematics

A server has no host player to skip a cinematic, so its players vote. Nothing about skipping shows while a cinematic plays until a player presses a button or key, which shows the skip prompt to that player alone. Pressing skip there asks, and the cinematic is skipped once enough players have asked; only those who asked see the count. campaign_skip_vote_percent, in [defaults] or a [[server]], is the share needed, from 1 to 100 and 33 unless set, rounded up to a whole player:

dedicated.toml
[defaults]
campaign_skip_vote_percent = 50   # half the players; 100 takes every player
  • At 33, one vote of 3 players is enough, two of 4, and six of 16.
  • Players who left or haven't spawned don't hold the vote up.
  • It applies at once, on campaign, ODST and Reach co-op servers and to a playlist's co-op entries. A co-op host has the same choice in their lobby.

Campaign files

Besides campaign.map, a campaign server needs each mission's map file and its information. Every game's campaign plays through Halo 3's campaign files, so every campaign server needs campaign in --maps, and another game's campaign that game's files beside it:

Campaign--maps
Halo 3campaign
Halo: CEcampaign,halo1-campaign
Halo 2campaign,halo2-campaign
Halo 3: ODSTcampaign,odst
Halo: Reachreach-campaign,campaign
Shell
project-reclaimer dedicated init . --from "your game's folder" --maps campaign,halo1-campaign
  • halo1-campaign and halo2-campaign copy those games' missions with their multiplayer maps; halo1 and halo2 alone copy only the multiplayer maps, and a server made that way says Halo: Combat Evolved's campaign is not installed (init --maps halo1-campaign). See what the server folder needs.
  • --maps campaign copies every Halo 3 campaign mission, about 4 GB, with Guardian. Name single missions by file name instead, such as --maps 010_jungle,020_base, or add multiplayer maps, as in --maps "Guardian,Valhalla,campaign".
  • Running it on a server folder you already have adds the missing files and keeps your dedicated.toml, playlists and bans: existing files are never replaced.
  • A server goes on only to missions it has, so copy every mission for a server that plays through the whole campaign.
  • For Docker, run it on a PC with the game and upload the folder, as in the quick start.