---
title: "config.toml reference"
description: "Complete reference for the BattleSpades config.toml: every table and key with its default, the value in the sample config, accepted range or choices, and what it does. Generated from the server source."
canonical: "https://www.aosplay.net/guides/server/configuration"
markdown: "https://www.aosplay.net/docs/guides/server/configuration.md"
last_updated: "2026-09-28"
section: "BattleSpades server hosting guides"
keywords: ["BattleSpades config.toml","Ace of Spades server configuration","BattleSpades settings reference","Ace of Spades server config options"]
---

# config.toml reference

> Complete reference for the BattleSpades config.toml: every table and key with its default, the value in the sample config, accepted range or choices, and what it does. Generated from the server source.

Every key BattleSpades reads, generated from the server's own configuration loader so nothing is missing or invented. Each entry shows what happens if you leave it out, what the shipped sample sets, and the range the server clamps it to.

## How the config is loaded

- The server reads `config.toml` from its own folder (not the shell's current directory) **once at startup**. Restart after editing.
- `--config other.toml` loads another file; `--port N` overrides only the port for that run; `--check` validates everything without opening the port.
- A missing file, or a file with a TOML syntax error, falls back to built-in defaults — a syntax error only prints a warning. Always run `--check` after editing.
- Semantic mistakes stop the server with a clear error instead: unknown `RULE_*` names or values, an unknown `default_mode`, unsafe map names in `map_rotation`, invalid `match_length_minutes`, a Steam `app_id` other than 224540, duplicate Steam ports, a non-HTTPS `base_url`…
- Numbers outside a key's range are silently clamped to the range shown below.
- Relative paths (`maps`, `bans.json`, `state/…`, log file) resolve against the server folder.
- Never save the file with a UTF-8 byte-order mark (BOM); it breaks parsing and the server falls back to defaults.

### Which value wins

For match rules the narrowest setting wins: 1) a `[modes.<code>]` override for the running mode, 2) the `[game_rules]` Match Lobby rule, 3) `[lobby] match_length_minutes` (clocks only), 4) the recovered retail default. Old `[game]` keys such as `respawn_time` and `fall_damage` still work when their `RULE_*` equivalent is not set.

### Reading an entry

- **Default if omitted** — the value the code uses when the key (or its whole table) is missing. It can differ from the sample file; the reference shows both values where they differ.
- **Sample config.toml** — shown only when the shipped sample file sets a different value.
- **Clamped to** — the range the loader enforces. **Accepted** — the only allowed values.
- **Not in sample config** — a valid key the sample file does not list (advanced or legacy).

Jump to a table:

| Table | What it controls |
| --- | --- |
| [server](#config-server) | name, port, slots, welcome message |
| [admin](#config-admin) · [logging](#config-logging) | admin password, bans file, logs |
| [revival](#config-revival) · [steam](#config-steam) | AoSPlay and Steam listing |
| [game](#config-game) · [lobby](#config-lobby) · [teams](#config-teams) | mode, map, rotation, votes, balance |
| [objectives](#config-objectives) · [world](#config-world) · [audio](#config-audio) · [weapons](#config-weapons) | objective guards, content paths, music, deprecated damage keys |
| [bots](#config-bots) | server bots |
| [anticheat](#config-anticheat) · [conduct](#config-conduct) | cheat checks, griefing, AFK |
| [network](#config-network) · [plugins](#config-plugins) · [debug](#config-debug) | advanced budgets, plugins, diagnostics |
| [map_creator](#config-map_creator) | Map Creator launcher only |
| [modes.<code>](#config-modes) | per-mode overrides |
| [game_rules](https://www.aosplay.net/guides/server/game-rules) | the 102 Match Lobby rules (separate page) |

## Server, admin and logging

_The complete generated reference table (config) is on the [HTML page](https://www.aosplay.net/guides/server/configuration); it is generated from the BattleSpades source._

## AoSPlay and Steam listing

Step-by-step setup is in [Ports and public listing](https://www.aosplay.net/guides/server/network-and-listing).

_The complete generated reference table (config) is on the [HTML page](https://www.aosplay.net/guides/server/configuration); it is generated from the BattleSpades source._

## Game, lobby and teams

Modes, rotation and votes are explained in [Game modes and maps](https://www.aosplay.net/guides/server/modes-and-maps).

_The complete generated reference table (config) is on the [HTML page](https://www.aosplay.net/guides/server/configuration); it is generated from the BattleSpades source._

## Bots

Practical recipes are in the [bots guide](https://www.aosplay.net/guides/server/bots).

_The complete generated reference table (config) is on the [HTML page](https://www.aosplay.net/guides/server/configuration); it is generated from the BattleSpades source._

## Anti-cheat and conduct

How to use these in practice: [Admin and moderation](https://www.aosplay.net/guides/server/moderation).

_The complete generated reference table (config) is on the [HTML page](https://www.aosplay.net/guides/server/configuration); it is generated from the BattleSpades source._

## Network, plugins and debug

> **Advanced: Keep the shipped values.** These budgets and calibration values were measured for production. Change them only to diagnose a specific problem, one key at a time.

_The complete generated reference table (config) is on the [HTML page](https://www.aosplay.net/guides/server/configuration); it is generated from the BattleSpades source._

## Map Creator launcher

_The complete generated reference table (config) is on the [HTML page](https://www.aosplay.net/guides/server/configuration); it is generated from the BattleSpades source._

## Per-mode overrides

Add a `[modes.<code>]` table to change one mode without touching the others. Alias table names work too (`[modes.zombie]` applies to `zom`; if both exist the short-code table wins). Keys a mode does not read are ignored.

**Example**

~~~toml
[modes.tdm]
time_limit = 1200      # 20 minutes
score_limit = 100

[modes.zom]
infection_delay = 30.0
minimum_players = 4
~~~

_The complete generated reference table (modeOverlays) is on the [HTML page](https://www.aosplay.net/guides/server/configuration); it is generated from the BattleSpades source._

## Environment variables

Secrets and deployment-specific values can come from the environment. Variables marked “Docker image” are applied by the container entrypoint only.

_The complete generated reference table (environment) is on the [HTML page](https://www.aosplay.net/guides/server/configuration); it is generated from the BattleSpades source._

## Frequently asked questions

### I changed config.toml but nothing happened.

Restart the server; the file is read once at startup. If it still uses defaults, run `--check` and look for a TOML parse warning (often a BOM or a missing quote).

### Is this list complete?

Yes for the version shown at the top: it is generated from BattleSpades' `server/config.py`, `server/game_rules.py` and the mode sources by `scripts/generate-server-reference.py` in the website repository.

### Can I change settings while the server runs?

Only a few, through admin commands (`/map`, `/mode`, `/time`, `/fog`, `/bots …`, `/lockscore`, `/infiniteblocks`). Those changes last until the next restart.

---

Source: [config.toml reference](https://www.aosplay.net/guides/server/configuration)  
Ace of Spades Revival is an independent community project, not affiliated with the original publisher. Community Discord: https://discord.gg/aosbb
