Pages

Legacy game.toml

The older root game.toml that holds a game's policy when mod.toml has no [match].

A root game.toml holds the same policy for a game whose mod.toml has no [match]. You meet it only in an older game; a new game puts its policy in mod.toml.

The worked example

schema_version = 1
base = "beta-patch"

[[rules]]
key = "match.maxUnits"
value = "500"
permission = "host"

[[rules]]
key = "match.cheats"
value = "off"
permission = "fixed"

[[preferences]]
key = "menu_style"
value = "aex"
permission = "fixed"

[[preferences]]
key = "texture_filtering"
value = "nearest"
permission = "player"

How it is read

The log says which file the policy came from. AEX Studio moves it into mod.toml on the next policy save and removes it. base is optional, as in [match].

What goes wrong

Read from game.toml, the log says:

[game-policy] no mod.toml [match]; match rules from the legacy game.toml

When both are present, mod.toml wins:

[game-policy] game.toml is ignored: mod.toml has a [match] section

An invalid game.toml stops AEX at start-up with Cannot initialize game policy: followed by the first problem, for example:

game.toml requires schema_version = 1
Unknown game.toml field: <field>
game.toml exceeds the 1 MiB schema limit

Next