DocsHostingCampaign and co-op

How a campaign server runs

How a campaign server runs

  • The lobby. The server waits in a co-op lobby showing its mission, and the Server Browser lists it as a campaign at its difficulty, such as Campaign (Heroic), on that mission.
  • The start. Once min_players players are in, and everyone connected has arrived, or 30 seconds after the last one joined, the lobby counts down and the mission starts. Players can join a mission under way: they catch up with the server's game while everyone else plays on.
  • After a win, everyone is back in the lobby, which shows the next mission (Sierra 117 complete. Next: Crow's Nest.) and starts it after post_game_seconds, at the same difficulty, with the same modifiers and characters.
  • After the last mission, the server starts again from the mission in its file.
  • A mission that ends without a win, because everyone left or the remote console's endgame ended it, is played again.
  • ODST follows its own story. After a flashback mission the server goes back to Mombasa Streets, at the point that mission returns to, and the squad's progress in the city is carried along. After the city come Data Hive, Coastal Highway and the Epilogue.
  • Loading: a mission loads for every player together, and nobody is removed while it does. Since 0.10.12, one player's stuck map load no longer sends everyone back to the lobby, and a wait where nothing moves forward goes on without that player after 10 seconds; a PC that is still loading is waited for. A wipe reverts at once while a player joins, and the server no longer sends every player a copy of its game after each join.
  • Cinematics are skipped by vote. Nothing about skipping shows until a player presses a button or key, which shows the skip prompt to that player alone; the server skips once campaign_skip_vote_percent of the players have asked, and only those who asked see the count.
  • The log has a [campaign] line for each mission with the modifiers the game reads, its campaign scoring included (until 0.10.12 it always said the scoring was off).
  • Co-op games aren't ranked, so a campaign server reports no stats. Checkpoints stay in the server's memory, for players who join and for reverts; restarting the server starts the mission in its file afresh.
  • The remote console's status names the mission; map, mode, load, nextmap, next and replay answer that the server plays a campaign. To play something else, change the campaign line: the server restarts with it once it has no players.

Not yet proven on a server:

  • Halo 3's own missions played with the players' own characters (custom_characters): such a server's lobby may take no joiner.
  • A Halo 3 mod's campaign named by its title, and a player who lacks a campaign mod getting it from the server as they join.
  • An ODST flashback that the players start from a beacon in the city, which is meant to be the next mission, as in a game hosted from the menus.
  • Passenger seats, on the Halo 3 missions that have them, can be wrong for a player who stayed through the end of the campaign when the server plays its first mission again.

ODST, Reach, Firefight and playlists

campaign = { campaign = "odst", … } and campaign = { campaign = "reach", … } are the full way to host those two campaigns. Each game also has a key of its own, which is how Firefight is hosted:

dedicated.toml
odst = { mission = "sc100", difficulty = "heroic" }                          # a mission
odst = { mode = "firefight", mission = 6100, insertion = 4 }                  # Firefight on Crater
reach = { map = "Winter Contingency", campaign = true }                      # a mission, on Normal
reach = { map = "ff20_courtyard", campaign = true, firefight = "firefight_new" }   # Firefight
  • odst's mission takes a file's name, a title or a number, as campaign's does. Its own options are story_characters, customization, no_vanilla_characters, character_mode, modifiers and, for Firefight, variant and options. See Halo 3: ODST in the hosting guide.
  • reach's map takes a file's name or a title, or a mod's mission or Firefight map by its title or key. It has no difficulty or character options of its own: use campaign = { campaign = "reach", … } for those. See Reach co-op and Firefight.
  • A playlist can hold co-op games among its entries: { "campaign": { "mission": 3010 } }, Halo 3's own campaign only, and { "odst": { "mission": "sc100" } }. There the playlist's next game follows a finished mission, not the campaign's next mission. See co-op games in a playlist.