Native feature obstruction
A feature can explicitly stop units and building placement or allow passage. This choice belongs to its normalized definition and is shared by the engine and bridge. It applies to every instance of the definition, including map features and wreckage that reference it.
Add an optional feature-obstacles.toml at the mod's mounted root:
version = 1
[[feature]]
name = "MY_RUBBLE"
obstruction = "pass-through"
[[feature]]
name = "MY_BARRIER"
obstruction = "blocking"
name is the feature TDF block identifier, compared without ASCII case.
It must resolve to a loaded feature definition. Version 1 accepts only
"blocking" and "pass-through"; there are no per-unit tier, mass, size,
strength or crushing thresholds.
"blocking" makes the feature an obstacle in both TA-compatible and AEX
behavior modes. "pass-through" removes its obstruction in both modes.
A pass-through feature remains present: this does not destroy it, remove its
art, change damage or reclaim rules, or turn movement into an attack.
Selection and compatibility
An authored native FeatureDefinition::obstruction selection is authoritative.
A matching file binding is allowed; a conflicting one rejects loading.
Otherwise the file's explicit choice takes precedence over the
mod compatibility library.
The library can select pass-through for verified legacy nonblocking heaps. Its supported mapping contract owns the recognition rules. This does not grant large units a crushing attack.
Inferred behavior
Without an explicit or compatibility selection, obstruction is Inferred.
FeatureDefinition::blocks(taCompatible) then preserves the existing mode
rules: TA-compatible behavior uses the raw blocking value with a missing-key
default of false; AEX behavior retains its true missing-key default and
physical-feature promotion during normalization. An inferred feature can
therefore block in one mode and permit passage in the other.
The parser records FeatureDef::blockingAuthored separately from those two
values, so a missing key is distinguishable from an authored zero. It reads
the value once using the existing tolerant TA numeric conversion; this
provenance does not itself change the feature's inferred behavior.
The runtime retains these inferred flags beneath the native choice.
Blocking and PassThrough take precedence in blocks() without rewriting
them. Native selections also record whether they were authored, came from a
binding, or came from a compatibility mapping. Reload resolution rebuilds
derived selections from current files; removing a file binding permits the
compatibility library and inferred behavior to apply again. "inferred" is
not an accepted file action: omit the binding to request normal resolution.
Validation and layering
The file requires integer version = 1 and one or more [[feature]] tables.
Each entry requires nonempty string name and string obstruction. Unknown
fields, invalid types, unsupported versions or actions, duplicate names
ignoring ASCII case, unknown definitions, malformed TOML and conflicting
native selections reject the transaction before any feature changes.
A missing file is normal. The highest-priority VFS copy wins as a whole; entries from lower-priority copies are not merged. Invalid winning content does not fall back to a different file. The shared load path resolves this before feature instances enter the map, so multiplayer peers need the same mounted feature inputs and effective compatibility plan.