Mod compatibility mappings
How AEX turns legacy content conventions into native behavior at load, and the three content mappings it supports.
A compatibility mapping lets an old TA mod play AEX's native behavior for a convention it used, with no new files in the mod. Read this when a mod's weapons, heaps or scripts behave differently from what its players expect.
The worked example
The engine embeds this profile from assets/compatibility/mod-mappings.toml
(evidence text shortened here). Every mod gets it:
[[profile]]
id = "legacy-stomp-family-v1"
revision = 1
priority = 0
matcher = "legacy-stomp-v1"
ability = "stomp"
weapons = []
requires_weapons = []
evidence = "Observed legacy stomp/crush definitions share a model-free ... signature."
When a mounted weapon matches, start-up logs:
mod compatibility: profile legacy-stomp-family-v1@1 mapped ASPID_STOMP to native stomp (structural compatibility heuristic)
How mappings resolve
AEX resolves supported legacy content conventions into native definitions at load time. The engine and bridge share weapon and map-feature resolution; the unit editor shares weapon resolution. Combat and movement consume the resolved native selections without querying profiles during a shot or path request. Script-reference policy resolves in the shared gameplay map loader before unit scripts allocate their first identities.
The engine embeds the profiles in assets/compatibility/mod-mappings.toml.
A mod needs no new files to receive a bundled mapping. An optional root
mod-mappings.toml adds profiles to that library
(Add a guarded profile). Mod folder names,
archive names and a DLL's presence do not select a profile: the mod's
identity (Mod identity), the mounted definitions and
the profile's content guards do.
This library selects native behavior already implemented by AEX. It does not execute Windows hooks, translate arbitrary DLLs or establish parity with a patched executable. Each profile records its evidence and its limits. For the broader support status, see Using TA DLL features in AEX.
Supported mappings
Version 1 supports matcher "legacy-stomp-v1" and ability "stomp".
The matcher recognizes the observed legacy contact-weapon structure: no model,
render type 2 or 4, vlaunch, selfprop, noautorange and burnblow, zero
turn rate, a positive short weapon timer and positive low velocity. The timer
and velocity bounds live in SimDefaults.h. The bundled profile
legacy-stomp-family-v1, revision 1, selects this native ability for matching
weapons across mods.
The matcher is an AEX compatibility heuristic based on observed content,
including the installed BIG_STOMP, ASPID_STOMP, MCV_CRUSH and
SKROG_STOMP definitions. Those names are examples, not runtime selectors.
This evidence does not prove behavior in every original patched executable.
The native ability's firing semantics and author-controlled statistics are in
Native weapon abilities.
Matcher "legacy-nonblocking-heap-v1" selects native feature obstruction
"pass-through". It requires an explicitly parsed blocking=0, a normalized
wreck classification, and an exact case-insensitive raw category heap or
heaps, or tedclass=HEAP. Missing or malformed blocking values, names alone,
height, mass and unit tier cannot select it. The bundled profile of the same ID,
revision 1, preserves walk-through rubble such as ESC's ARM heaps. Explicitly
blocking heaps remain solid. This adapts authored feature data, not a
patch-specific crushing rule. Native semantics and direct authoring are in
Feature obstruction.
Matcher "taesc-slot-retirement-v1" selects script_policy = "owner-quarantine"
only when the mounted mod has the profile's identity (see
Mod identity). The bundled profile
taesc-script-reference-retirement-v1 selects it for Escalation 10.2; the
import, process-attach and hook-registration path it adapts is
verified in the COB register.
That register entry is evidence for the behavior. AEX never reads, loads or
executes the mod's executable or DLL. A display name alone is insufficient.
A mod no profile names logs nothing for this mapping and keeps the stock
script-reference policy.
This matcher selects the verified 150-native-tick delay, converted once from TA's 30-Hz time base into the match tick rate with integer ceiling. It does not import an INI unit-limit value, original owner-block width, wall-clock packet filter or factory invulnerability. Direct authoring uses native script-reference policy.
What goes wrong
A heap mapping logs, for each feature it changes:
feature compatibility: profile legacy-nonblocking-heap-v1@1 mapped <FEATURE> to native pass-through
The script-reference mapping logs:
script compatibility: profile taesc-script-reference-retirement-v1@1 selected owner-scoped reference retirement; evidence: <evidence>
No line for a weapon you expected to stomp means it failed the structural match, or the match plays the TA rule preset: TA has no stomp ability, so under its rules the stomp matcher claims nothing and the weapon flies as authored. An explicitly bound native stomp plays under either preset.
Next
- Mod identity: how a profile knows which mod is mounted.
- Add a guarded profile: write your own.