DocsHostingConfiguration

Maps and game types

Put shared content in the content folder; every server on the machine sees it. The first dedicated check or start makes its folders.

content/Maps
Map variants (.mvar) and saved maps from Forge (.json).
content/Game Modes
Game variants (.bin), shareable game types (.json) and game modes (.rmeg).
content/Images
Vote images.
content/Mods
One folder per mod: a Workshop item's folder, or a custom .map, with its .mapinfo if it has one. See Mods.
  • dedicated content lists the names the folder's maps, game types and variants go by, the ones map, game and playlist games take; see names and playlists from the command line.
  • Map and game variants reach players automatically when they join. Mods reach them through Steam Workshop, or from the server when it shares them.
  • The first dedicated check or start puts the game modes that come with Project Reclaimer in content/Game Modes/Project Reclaimer: Gun Game, Growth, One in the Chamber, Zone Control, Flood Infection, UNSC vs Covenant vs Flood, UNSC vs Covenant: Reach and Conquest. Name them like any saved game type, such as game = "Gun Game" or { "map": "Guardian", "game": "Growth" } in a playlist. A script runs on the server only; players don't need the file. See game modes on a dedicated server. A copy you never changed gets each release's update by itself.
  • Flood Infection needs Halo 3's campaign Flood. The server needs campaign.map, which dedicated init copies, and a campaign map that holds all four Flood forms, such as 050_floodvoi.map, which it doesn't: copy that from halo3\maps in the game's folder into game/halo3/maps.
  • A saved map can hold objects from other maps. To host it, the server needs those maps in its game/ folder; the simplest is to run dedicated init --from without --maps to copy every multiplayer map. Campaign vehicles and AI come from campaign.map and 040_voi.map, which dedicated init copies either way.
  • A server with only some maps offers the objects of the maps it has, and players with every map can join it.
  • Players who lack a map a game needs, or a mod they have no way to download, are refused with a message that names it.
  • Servers take up maps and game types added to content/Maps and content/Game Modes by themselves; see changing settings while servers run. After adding mods, run dedicated reload.

Forge on a server

A server plays saved Forge maps like any other map, and game = "Forge" hosts Forge itself. A map holds up to 9,999 Forge objects. Every game of a server's rotation takes these settings, for its palette and the objects it may place:

  • A map's own game's objects are always in its palette, and a mod map's own mod's.
  • odst_objects = true adds Halo 3: ODST's objects on Halo 3's maps. The server's games then need ODST: its listing says so, and a player without it is refused as they join.
  • forge_mods = ["Some Mod", "workshop:2981234567"] adds mods' objects, by title, package folder or Workshop item. Each becomes a mod the games require, which players download as they join.
  • halo3_objects = false leaves Halo 3's objects off ODST's canvases, and forge_primitives = false leaves out Project Reclaimer's primitives.
  • forge_scenery = ["halo3", "reach"] adds the scenery those games' levels place: rocks, trees, wrecks and pieces of buildings. forge_scenery_all takes everything the levels hold, debris and the cinematics' pieces too. None by default: each game's scenery is a gigabyte or two in every player's memory. A game other than Halo 3 needs that game installed, as its objects do.
  • Players' games load other games' objects only when first placed. A dedicated server's games load their whole palette.
  • Since 0.10.12, a busy Forge map no longer makes a server build its AI paths again and again: the build starts again only when an object the paths use comes or goes, not for every respawning vehicle or game type object. Before, a full server on a large map could run out of memory that way. A film of a Forge game with AI on such a map may show the AI walking differently than in the game.

Saved maps that take objects from other maps need the Forge library, which the server builds the first time a game needs it, keeping it in its caches. Later games wait in the lobby meanwhile. Hosting saved maps in a rotation is tested; editing in Forge by players on a dedicated server hasn't been tried much yet. Of the campaign canvases, a dedicated server hosts ODST's: a Forge entry names one by its file name, such as { "map": "canvas_sc100_z0", "game": "Forge" }, and dedicated content lists them. The other games' canvases play from a lobby you host.

Who edits in Forge

A Forge game type's Allow editing says who may become the monitor: everyone, or the host only. A dedicated server plays nobody, so Host only lets nobody edit and Everyone lets everyone who joins. That's the default, forge_edit = "game_type". With forge_edit = "roles", the server's roles decide instead:

  • Only players whose role holds forge.edit switch to the monitor, and split-screen players at their PC with them. Host and Admin hold it; give it to a role of your own with can = ["forge.edit"], or to everyone under [roles.everyone].
  • Anyone else stays on foot, plays or watches, and is told Your role can't edit in Forge on this server. The server decides, never a player's own game. The game menu's map reset is an editor's too.
  • A monitor whose role loses forge.edit is back on foot at once.
  • The setting applies at once, in [defaults] or a [[server]].

The map's switches

On a server, the Forge menu's map-wide choices are the server's, not any player's: monitors flying through walls, the map's walls and guardians, where the fallen come back, the game mode's pause, gravity, sky and atmosphere. A player whose role holds map.change (Host and Admin hold it, a Mod doesn't) changes them from the Forge menu, or in chat:

Chat
/mapswitch noclip|walls|guardians|respawn|pause on|off
/mapswitch gravity <percent | off>
/mapswitch sky <name | off>
/mapswitch atmosphere [look=<n>:<percent>] [exposure=<n>] [fog=on|off] [height=<n>]
  • The server checks the role, sends the choice to every player and logs who made it. Players without the role see the rows unavailable: Only this server's admins change the map.
  • A choice holds until the next game. Walls, guardians, gravity, sky and atmosphere are saved with the map; the monitors' rules are for the session.
  • The remote console takes the same mapswitch.

Saving on the server

A player's SAVE MAP writes the Forge map to their own PC. A server saves on its own disk too, in the same format:

  • A named map: the remote console's forge save <name> writes content/Maps/<name>.json, over a map of that name, which a playlist, map or variant then names like any other. A name is 1 to 48 characters that can be a file's name.
  • The server's state: state save, or forge save with no name, writes data/<server>/state.json: the game being played, the rotation with its next game and queue, the Forge map being played, and the console's live settings. state alone shows the saved state, and state discard deletes it.
  • From the game: a player whose role holds forge.save types /forge save [<name>] in chat, or picks SAVE ON SERVER in the game menu, under SAVE MAP. Only they see it.
  • By itself: forge_autosave_minutes = 10 saves the state every 10 minutes of a Forge game, and keeps forge_autosave_keep earlier ones, 3 unless set and 20 at most. With it on, the state is also saved when the Forge game's last player leaves and when the game ends, so nothing made since the last save is lost. restart now, quit and a stopped dedicated don't wait for it: run state save first.
  • The console answers once the file is on disk, so a script can save, wait for the answer and stop the server. A save never holds the game up.

With restore_state = true, a server starts from the state saved last: that game first, on its saved Forge map, with the rotation and the console's settings as they were. The state is then set aside, so the next start doesn't restore it again. Every start counts, a crash's too, so a server that autosaves comes back from a crash at its last autosave.

WhatRestored
The game being played, the next game, the queueExactly.
The Forge map's objects, labels, boundaries, sky, gravity and atmosphereAs SAVE MAP keeps them.
A server name, join password, ping limit, join gates or weight the console changedExactly, while the file's own value hasn't changed since.
Roles the console gave, bans and mutesThey're on disk already.
A round under way: scores, clock, where players standNo: the game starts from its lobby.
A co-op mission's checkpointNo: the mission starts where its setup says.