Mods
A server can host mod maps, and saved maps with Forge objects from mod maps. A player who lacks a mod gets it as they join, in one of two ways:
- Through Steam Workshop. A mod from the Workshop downloads through Steam on the player's PC, and is checked against your server's copy. The game asks the player first, and approving subscribes their Steam account to the item. This works with nothing turned on: your server needs no Steam, account or key.
- From your server. With
share_modson, players can download what they lack from your server itself, over the same encrypted port they play on. The game asks each player first, for each download. That covers mods that aren't on the Workshop, and a Workshop download that fails.
There's no web host, file mirror or Workshop upload to set up.
1. Add the mods
Copy each mod's folder into content/Mods, one folder per mod, or let the server download Workshop mods by ID. Every server on the machine sees them.
A Workshop mod
Copy the item's folder as it is from steamapps/workshop/content/976730 in your Steam library. It holds ModInfo.json, multiplayer, maps and sometimes the mod's own shared.map, sound banks and movies, which players get with its maps. Keep its ModInfo.json: it names the Workshop item players download. You can rename the folder.
A single map
A folder with the .map and its matching .mapinfo, beside it or in an info subfolder, plus any shared.map or campaign.map the mod comes with. A multiplayer .map without a .mapinfo works too: it's listed under its file name, blam_mountain.map as “Blam Mountain”.
content/Mods/
├─ 2981234567/ a Workshop item's folder, copied as it is
│ ├─ ModInfo.json
│ ├─ multiplayer/arena.json
│ ├─ maps/arena.map
│ ├─ halo3/maps/shared.map the mod's own shared.map, if it has one
│ ├─ halo3/fmod/pc/ the mod's own sound banks, if it has any
│ └─ halo3/bink/ the mod's own movies, if it has any
└─ canyon/ a single map
├─ canyon.map
└─ canyon.mapinfo
- Folder names don't matter: a mod is known by its files. Every server with the same files offers the same mod, so a player who got it from one server already has it for yours.
- Players only ever get what a game needs from a mod: its maps and their metadata, images, sound banks and movies, a
shared.soundsfile beside maps that hold their own sounds, and a Halo: CE mod's ownsounds.map. Programs, scripts and any other files in the folder are never sent. A server draws nothing and plays no sound, so it needs no extra files for movies or banks, but it passes them on. - A Workshop map is played with the map ID its author set in the mod tools. One that has none, as many Workshop maps do, gets an ID made from its file name, the same on every PC.
- A mod with its own
shared.map, beside its map or in its package'shalo3/mapsfolder, has its maps read from that file, as the mod was built. - A Workshop item copied somewhere else, or renamed, is still known by its
ModInfo.json. Only an unusual package without that information needs areclaimer-workshop.jsonbeside itsModInfo.jsonto name its item, such as{"item": 2899741683, "folder": ""}, wherefolderis the package's folder inside the item (empty for the item itself). - To keep a mod in
content/Modswithout using it, list its folder incontent/disabled-mods.json, such as{"packages": ["Mods/canyon"]}, and restart the servers. It's the file the game's Settings → Mods switches write in a player's folder.
2. Choose what the server plays
- A mod map with a game type: name the map in
map, with agame, like a base map: by its Workshop reference,"workshop:item ID/map file name", or by its name. Or put mod maps in a playlist. - A mod map with your own rules: on a PC with the game and the mod, set the game up in a lobby and save it as a variant. Copy the file from your player folder's
Game Modesintocontent/Game Modes, and name it in the server'svariant, with the mod incontent/Mods. If the server can't find the map that way, name it inmapand the variant ingame. - A saved map with objects from mod maps: copy it into
content/Mapsand name it inmapor in a playlist, like any saved map. The server works out which mods its objects come from. - A Forge map made on a mod map: copy the saved map into
content/Mapsand the mod intocontent/Mods, and name the saved map inmapor a playlist. Players who join merge the same objects into their own copy of the mod; the first game on a mod map takes a few seconds longer to prepare.
[[server]]
name = "Community Maps"
port = 49178
variant = "content/Game Modes/canyon-slayer.json"
[[server]]
name = "Arena CTF"
port = 49179
map = "workshop:2981234567/arena"
game = "Capture the Flag"
The session's listing names the mods of every game of a server's rotation from the start, so players get them once as they join, and every player's game gets the next map ready before it starts.
3. Share them
Workshop mods need nothing more: players download them through Steam, even with sharing off. They need Steam running and signed in to an account with MCC; the game asks them to start Steam if it isn't. To send mods from your server too, for mods that aren't on the Workshop and for players whose Workshop download fails, turn on sharing. It's off until you do. Set it in [defaults] for every server, or in one [[server]]:
[defaults]
share_mods = true # players who lack a mod download it from the server
share_rate = 20 # Mbit/s for all of a server's downloads together; 0 is no limit
The environment variables RECLAIMER_DEDICATED_SHARE_MODS and RECLAIMER_DEDICATED_SHARE_RATE set the same two defaults, for example in Docker's .env. A mod that isn't on the Workshop and isn't shared turns away every player who lacks it, so copy Workshop mods with their ModInfo.json, or share.
Workshop downloads
A server can download Workshop mods itself, by item ID, so there's nothing to copy from a game PC. Before the servers start, it downloads every item they name: in map, base_map or a playlist as workshop:item ID/map file name, and the items listed under [workshop]. The ID is the number after id= in the item's Workshop address. List items under [workshop] when you know only their IDs:
[workshop]
items = [2981234567]
dedicated mods downloads the items and prints the reference of every mod map the server has, to paste into map or a playlist. dedicated check and dedicated download missing items too.
project-reclaimer dedicated mods
[workshop] 2981234567: acquiring through Steam Workshop
workshop:2981234567/arena Arena
The server downloads through Steam in one of two ways:
The Steam app on the same machine
With no steamcmd set, the server asks the Steam app on its machine, which must be running and signed in to an account that owns MCC. It needs Steam's library: with none, it says No Steam runtime was found: install Steam, or put libsteam_api beside the game. On a server, SteamCMD is usually simpler.
SteamCMD
On a machine without the Steam app, install Valve's SteamCMD and sign in to it once yourself with an account that owns MCC, entering the Steam Guard code if asked. Then set steamcmd and username.
/opt/steamcmd/steamcmd.sh +login your_steam_account +quit
[workshop]
items = [2981234567]
steamcmd = "/opt/steamcmd/steamcmd.sh" # on Windows, with single quotes: 'C:\steamcmd\steamcmd.exe'
username = "your_steam_account" # the account name only, never a password
| Setting | Default | Meaning |
|---|---|---|
items | [] | Workshop item IDs to download, up to 64 in all with those the servers name. A collection isn't an item: list each item's ID. |
steamcmd | none | SteamCMD's program. Without it, the Steam app on this machine downloads. |
username | "" | The Steam account SteamCMD is signed in with, one that owns MCC. Empty uses the account it has cached, else anonymous, which Steam refuses for MCC's Workshop items. |
provisioner | none | The shared folder of a separate SteamCMD service, so Steam's login never reaches the servers. It can't be combined with steamcmd or username. See Workshop downloads in Docker. |
update_check_minutes | 60 | Minutes between looks for newer versions of the installed items, at least 5; 0 never looks. See keeping Workshop mods up to date. |
- Project Reclaimer uses SteamCMD's saved sign-in and never asks for, sees or stores your Steam password. When the sign-in expires, sign in to SteamCMD again the same way.
- Each item is installed in
content/Mods/Workshop/item ID, data files only: maps, their metadata, pictures, sound banks, movies and variants. Nothing from an item is run. Later starts use it as it is. - A download that fails stops the start and names the item. SteamCMD's own log is in
data/workshop-cache. - Players still get the mods as before: through the Workshop, or from your server with
share_mods.
A SteamCMD download that fails says why:
| The message says | What to do |
|---|---|
| “signing in as account failed” | SteamCMD has no saved sign-in for that account, or it expired. Run the command the message shows, then start the servers again. |
| “Steam gave account no key for MCC's Workshop content” | The account doesn't own MCC. Set username to an account that does, and sign in to SteamCMD with it once. |
| “Steam gives anonymous logins no access” | username is empty. Set it to an account that owns MCC. |
| Another reason in brackets | SteamCMD's own answer, such as Timeout. Try again later. |
Keeping Workshop mods up to date
A player's Steam keeps their copy of a Workshop mod at its newest version, so a server with an older copy has different files. Servers keep the Workshop items they install current:
- When the servers start, and then every
update_check_minutes(60 by default) under[workshop], they ask Steam's public Workshop details for each item's newest version. This needs no Steam sign-in. - A newer version downloads the same way as the first install, while the games go on.
- It replaces the installed item once no server that uses the mod is starting or playing a game; players may wait in its lobby meanwhile. Those servers keep running, offer joiners the new version and make the next game's map from the new files.
dedicated checklists each item's installed version and whether Steam has a newer one.- Mods put in
content/Modsby hand are never updated. To have the servers manage one, list its Workshop ID under[workshop] itemsand name its maps asworkshop:item ID/map file name.
[workshop]
items = [2981234567]
update_check_minutes = 60 # 0: never look for updates
Players whose copy differs from your server's get a way forward in REQUIRED MODS as they join: UPDATE & JOIN when your version is newer, and REPLACE & JOIN for a copy they downloaded from another server. When their Workshop copy is newer than yours, only updating the server helps: Steam installs only a mod's newest version.
Workshop downloads in Docker
The Docker image has no Steam, so its servers can't download Workshop items by themselves. A separate SteamCMD service that runs beside them, signed in by you in its own terminal so the servers never see your Steam sign-in, isn't in the downloads yet (the provisioner setting is its side of this). Until then, copy the mods' folders into server/content/Mods and name their maps by name in map or a playlist: a workshop: reference makes the server try to download the item, which fails without Steam.
Mods copied in by hand aren't updated by the servers. When a mod's author publishes an update, players' Steam installs it, and they can't join until your copy matches: stop the servers that use the mod, copy the new version over the old folder, and start them again.
Objects from mods come packed
A saved map that uses a few objects from a big mod doesn't make players download the whole mod. While a server shares mods, it packs just the objects its current game uses from each one, usually a few MB where the mod is hundreds, and players download that instead. Packs are listed as the mod's name followed by "(objects)".
- Only the game being played comes packed. A playlist's listing still names the full mods of its other games.
- The server checks that a pack gives exactly the same objects as the mod before it offers it. If it doesn't, players need the whole mod.
- Packs come only from the server, so they need
share_mods. Without it, players download the whole mods through the Workshop instead.
Character mods
Mods can add playable characters: a mod with a customization.json beside its maps brings characters with their own body, armor, colors and physics, who play with every weapon, vehicle and animation of the map they're in. A server adds the characters of the character mods you name to its multiplayer games. Put the mods in content/Mods, or have the server download them by ID, and name them by the names Customize shows for them, with or without the version ("Armor Pack" also names Armor Pack v2), or by their folders, up to 122 of them. Set them in [defaults] for every server, or in one [[server]]:
[defaults]
customization = ["Armor Pack", "Sci-Fi Heroes"]
require_customization = false # true: players must take them to join
no_vanilla_characters = false # true: every player plays one of their characters
- Sharing: with
share_modson, players who don't have a mod download its characters from the server as a characters pack, as they do other mods. They can turn a mod down as they join, and then see its characters as Halo 3's own Spartans and Elites, unlessrequire_customizationis on. Withshare_modsoff, players who have a mod see its characters and those who don't see Halo 3's own; withrequire_customizationon, only players who have the mods can join. - Joining: the join window lists the server's character mods as USE, NOT USE or REQUIRED, and can remember a player's choice for that server. Players whose characters someone turned down appear to them as Spartans and Elites; the server still decides every hit on their real character.
no_vanilla_characters: a player who would play Halo 3's own character plays the first of the server's characters in their own list instead.- Every multiplayer map: a server with character mods needs all 27 of Halo 3's multiplayer maps in
game/halo3/maps, about 5.5 GB:dedicated init <folder> --from "your game's folder"without--mapscopies them. - Names:
dedicated checklists each server's character mods. A name that matches none stopsdedicated checkand the start, with the name you most likely meant, or the folders it looked in:content/Mods, andcontent/Mods/Downloaded/packs/charactersfor character mods the server has only as packs. - Every game of a rotation: the server makes each game's map and its pack before the game starts, so the countdown can wait for it.
- Campaign: a campaign server names its character mods in its setup, such as
campaign = { mission = "Sierra 117", difficulty = "heroic", custom_characters = true, customization = ["Armor Pack"] }, on every game's campaign. See the players' own characters. - Docker:
RECLAIMER_DEDICATED_CUSTOMIZATION=Armor Pack,Sci-Fi Heroesin.envnames them, separated by commas. It replaces[defaults] customization, and a server's owncustomizationstill wins.RECLAIMER_DEDICATED_REQUIRE_CUSTOMIZATIONandRECLAIMER_DEDICATED_NO_VANILLA_CHARACTERSset the other two. - Changing them restarts the server once it has no players; see changing settings while servers run.
- How many: a game takes characters from up to 128 character packs, so every character in it can come from a different mod.
- Size: a game with many character mods can grow too big for a join to carry. The server's log then says so, and players are refused, told the host needs to use fewer character mods or mod maps' objects.
- Making one: each release has the customization editor for every system:
reclaimer-customization-editor-version.exeon Windows, with-macos-aarch64.zipand-linux-arch.tar.gzfor macOS and Linux. Open a mod's folder in it and pick each character's armor, colors and camera bones, and it writes the mod'scustomization.json. - Third-person characters play in first person, like every other character, unless the server's
cameralets players choose or puts everyone in third person.
What players see
- Your server's listing names its mods. The Server Browser tags it with how many: 1 mod when a player has them all, 1 mod when they can download what they lack, through the Workshop or from your server, and 1 mod when a mod has no download source.
- Joining opens REQUIRED MODS with the exact size to download. It checks the mods your server needs first, so a player with a big library isn't kept waiting, and every download asks the player's permission, within the disk space they allow. Once the files are in and checked, the player joins by themselves, without restarting. A player who already has every mod your server uses goes straight in, and one asked to download unverified content from your server gets a plain question first (they can turn it off in Settings → Mods).
- The Server Browser lists every mod your server requires, and every player's name, on the server's row and card.
- A download never replaces a different map with the same file name. When you host another version of a Workshop mod than a player has, REQUIRED MODS compares the two: UPDATE & JOIN has Steam update their copy when yours is newer, REPLACE & JOIN swaps a copy they downloaded from another server for yours, and when theirs is newer it says so with both dates, since only your server can update. Another mod's map with the same file name reads "Map name clashes with mod on this PC" until they delete it in Settings → Mods.
See Mods in the player guide for the rest.
Bandwidth and safety
share_ratecaps what all of one server's downloads send together, so the games on the machine stay smooth. At the default 20 Mbit/s, a 150 MB mod takes about a minute to reach one player; players downloading at the same time share the limit.- Maps travel in checked chunks of about 1 MB. A player who joins from the Server Browser takes them from your server and up to three other listed servers that share the same mod, all at once, so the more servers share a mod, the faster everyone gets it.
- A server sends up to four downloads at once, at most two to one address. A player whose download stalls for 30 seconds gives up their place.
- Downloads don't take a player slot, but your bans apply to them.
- A server only sends the files of the mods its current games use, found by their fingerprint, never by a path a player asks for. Nothing else in the server folder is reachable.
- Players check every chunk and file against its SHA-256 fingerprint as it arrives. A server that sends a damaged chunk is dropped and the chunk comes from another, and a cut-off download resumes with the chunks it already has.
Limits
- A server's games can use up to 16 mods, each with up to 8 maps (a campaign mod 32) and 512 files. An objects pack counts as one mod and holds at most 256 MB.
- A sound bank or a movie can be up to 2 GB and an image 8 MB. A map whose files don't fit is left out of the mod whole.
- One game session can use at most 23 mod maps. Installed mods don't count until they're played. Rarely, two mod maps whose map IDs clash can't both be used in one session.
- A playlist can use up to 23 different mod maps; see mod maps in a playlist.
