Pages

Game policy coverage boundaries

The engine settings a game policy cannot default or lock yet, and why.

The Studio list is not a complete inventory of engine configuration. It exposes the registered match rules and the presentation preferences. Read this page before planning a game that needs to default or lock anything else.

The worked example

Starting metal is not a match rule, so a policy cannot set it. This row is refused when AEX starts:

[[match.rules]]
key = "startingMetal"
value = "5000"
permission = "fixed"

Set starting resources in the lobby instead; the table below says which settings are in the same position.

What a policy does not cover

Existing configuration outside that registry does not acquire a permission merely by being included in a game package.

Configuration Current policy coverage / missing integration
Starting metal and energy, per-seat resource overrides, victory condition Owned by LobbyConfig, SkirmishConfig and their setup paths, outside GameRules. No game defaults or locks; enforcement must cover lobby changes, accepted starts, engine and bridge setup.
Faction choices, teams, occupied seats, AI choices and player-count limits Content and lobby settings, without creator permission records. Authored factions and room seat validation are separate from game-policy defaults and locks. Lobby capacity remains 16 players.
Maps, individual start selections and team regions Map content and lobby choices, without game-level allowed choices or locks. The registered match.startLocation mode is already covered; individual seat placements are separate. Existing authored-map validation is separate from creator permission enforcement.
Player Shoot All targeting Per-player deterministic state, initialized from a preference and changed by SetShootAllCommand; not a global match rule. No creator default or lock. Command handling and initial player setup require enforcement, including the bridge; disabling cheats does not disable this command.
Theme selection and HUD/build-menu layout Outside the supported presentation preferences. A mounted ui/theme.tdf currently takes precedence over the player's bundled theme; this is content resolution, not an explicit default/lock permission. See mod/theme support status. HUD layout choices remain player preferences.
Speed and pause controls, session-opening settings Owned by their command/session domains, without creator permission records. Session-opening content already supplies an opening-hold default, but the host can change it. Single-player pause, opening holds and network drop holds are distinct controls. Match-rule locks do not constrain these controls.

One default, one owner

Permissions currently express one default with a change owner, not a restricted set of choices or numeric bounds. For example, allowing the host to choose between two victory modes or within a resource range requires schema and runtime support in the setting's existing owner. Adding a Studio dropdown alone cannot provide that restriction. Saved player preferences must remain separate from effective game settings so switching games restores the player's choices.

What goes wrong

A key outside the registry stops AEX at start-up with Cannot initialize game policy: followed by:

Unknown match rule: startingMetal

A key that names no supported preference gives:

Unknown presentation preference or unsupported value: <key>=<value>

Next