Explicit selection and validation
How an authored native selection overrides a mapping, how invalid files are rejected, and how reloads rebuild derived selections.
An authored native selection always beats a compatibility mapping. Use one when a bundled profile maps a weapon or feature you want left alone, or mapped to something else.
The worked example
This root weapon-abilities.toml keeps ASPID_STOMP an ordinary weapon,
even though the bundled legacy-stomp-family-v1 profile would map it:
version = 1
[[weapon]]
name = "ASPID_STOMP"
ability = "none"
Explicit selection
An authored native ability remains authoritative. A root
weapon-abilities.toml may explicitly select "stomp" or "none" for a
weapon. "none" keeps ordinary weapon behavior and prevents compatibility
inference, including the bundled profile. A native binding that conflicts with
an already authored ability is an error; an identical selection is allowed.
The file's fields are in Native weapon abilities.
Features accept direct native obstruction bindings. An explicit native selection takes precedence over legacy inference.
Validation
The resolver validates all profile domains and the current domain's native
bindings before changing that domain's definitions. An invalid file rejects
the transaction and prevents match loading;
it does not partially apply profiles or fall back to another file. The
highest-priority mounted root mod-mappings.toml wins as one whole file and
adds to the embedded library. Lower-priority copies are not merged.
Reloads
Derived selections retain their provenance. Resolving the same definitions
again rebuilds native bindings and legacy mappings from their current inputs,
so deleting a binding or profile removes its derived decision. Authored native
selections survive this rebuild. A deleted custom profile may expose the
bundled profile underneath; deleting an explicit "none" binding permits
normal compatibility inference again.
What goes wrong
With the example in place, no mapped ASPID_STOMP to native stomp line
appears in the log. A binding that names a weapon the mod does not have, or
conflicts with an authored ability, rejects the file and the match does not
load:
mod compatibility: weapon-abilities.toml: weapon[0].name: unknown weapon 'ASPID_STOMPP'
mod compatibility: weapon-abilities.toml: weapon[0].ability: conflicts with the authored native ability for 'ASPID_STOMP'
mod compatibility: weapon-abilities.toml: weapon[0].ability: unsupported ability 'crush' (expected 'stomp' or 'none')