Match profile
How [match] sets the rules a mod's matches start from, with the mod's own defaults and locks.
[match] says which rules the mod's matches start from. base names a
built-in profile (match-rules.md):
"ta", TA's own rules (the default), or "beta-patch", every rule at its TA
beta / unofficial patch value where the patch has one. [[match.rules]]
lays the mod's own defaults and locks over the base; [[match.preferences]]
sets presentation defaults, including the game's interface-look theme. AEX Studio writes this section.
The worked example
[match]
base = "beta-patch"
[[match.rules]]
key = "sharing.takeDropped"
value = "on"
permission = "fixed"
[[match.rules]]
key = "match.maxUnits"
value = "500"
permission = "host"
[[match.preferences]]
key = "menu_style"
value = "ota"
permission = "fixed"
The keys
| Key | Type | Description |
|---|---|---|
base |
string | "ta" or "beta-patch". Absent: "ta". |
rules |
array of tables | Each key (a match rule key), value (its canonical text, a string) and permission: "host" (a default the host may change) or "fixed" (a default nobody changes). |
preferences |
array of tables | Each key (a presentation preference: menu style, texture filtering, camera, or the interface-look theme), value and permission: "player" or "fixed" (the interface-look keys take only "player"). |
All three fields of a setting are required strings. What each permission does, and the supported preference values: the game policy.
- An unknown
base, an unknown key in[match]or in a setting, an unknown rule or preference, an unsupported value, an out-of-range number, a duplicate key or a permission the setting cannot have is an error: the game refuses to start. - A mod without
[match]plays on TA's rules. A legacy rootgame.toml(legacy game.toml) is read only whenmod.tomlhas no[match]; with both,game.tomlis ignored with a warning. - AEX Studio rewrites only the
[match]and[[match.*]]tables and keeps every other line of the file. Comments inside them are not kept; a comment or blank line just before the next table is.
What goes wrong
An error stops the game from starting, and aex.log gives the first one
under [game-policy], for example:
[game-policy] Unknown match profile base: "patch" (expected "ta" or "beta-patch")
[game-policy] Unknown mod.toml [match] field: rule
[game-policy] Duplicate setting: match.maxUnits
[game-policy] Setting permission must be player, host or fixed
[game-policy] Presentation preference menu_style cannot have host permission
A good start logs [game-policy] match profile from mod.toml [match] (base beta-patch).
With a game.toml beside it:
[game-policy] game.toml is ignored: mod.toml has a [match] section.
Next
- the game policy for permissions and preference values.
- Match rules for every rule key.
- Back to the required fields.