Mod identity
How a profile names the mod it belongs to, how AEX knows which mod is mounted, and the Total Mayhem profiles.
A profile that belongs to one mod names that mod's id. You need this when you write a profile that must apply to your mod only, or when you want to know why a mod's profiles did or did not apply.
The worked example
The mod's mod.toml, at its root:
id = "my-mod"
name = "My Mod"
version = "0.1.0"
aex_version = "0.2"
A root mod-mappings.toml beside it, with a profile for that mod and the
versions it was checked against:
version = 1
[[tested]]
mod = "my-mod"
versions = ["0.1.0"]
[[profile]]
id = "my-mod-weapon-claims-v1"
revision = 1
matcher = "verified-executable-weapon-claims-v1"
weapon_claims = "minimal"
mod = "my-mod"
evidence = "My Mod's weapons are balanced for minimal weapon claims."
Start-up logs:
weapon-claim compatibility: profile my-mod-weapon-claims-v1@1 selected minimal weapon claims; evidence: My Mod's weapons are balanced for minimal weapon claims.
How a mod is identified
A profile for a specific mod names it in its mod field: the id of the
mod's own mod.toml. The profile applies whenever the mounted mod's
mod.toml names that id, at any version, so a new release of the mod keeps
its profiles the day it is published. A [[tested]] table lists the
versions a mod's profiles were checked against (mod, versions); any
other version still applies them and logs that it has not been tested.
Mods are played from the copies AEX hosts and signs, so the manifest names
the mod and the multiplayer data check keeps every player's copy the same
(the mounted mod.toml is part of it). A copy with no mod.toml, such as
one added with ADD MOD (legacy:<folder>), has the id of the signature
family its mounted archives show: the family is present by its file names in
mod-signatures.toml, as Options >
Install detects it, and names the hosted package's id in its mod field
(taesc is escalation, mayhem is mayhem). Nothing is hashed, so an
edited or incomplete copy is still the mod and selects the hosted package's
profiles; its version is the release whose archive sizes all match, else
unknown, and only decides the untested-version warning. In multiplayer every
player's archives must still be the same: the game data check refuses a
join when they differ, so a hand-installed copy plays online only with
players who have the same files, and the hosted package is how everyone
gets them. A retail install, or archives no family names, selects no mod
profile and plays baseline policy. AEX never
reads, hashes, fingerprints, copies or runs a mod's .exe or .dll to
identify it. A profile's evidence text may cite reverse-engineering of the
original executable or DLL; that cites where the behavior was observed and
takes no part in matching. Start-up logs the profiles that applied, and the
F4 problem report lists them.
Total Mayhem
Mayhem 11.3 ships a stock TotalA.exe; its Community Patch dplayx.dll
applies a text list of in-memory patches. The tamayhem-* profiles (mod id
mayhem) select the native rules for the patches whose bytes equal
Escalation 10.2's executable at the same address: minimal weapon claims,
self-heal of finished units on the healtime mask and the pad switch (not
Escalation's repair rate), submerged occupancy, retargeting out of range,
Hold Position escorts that do not chase, the VTOL reclaim and ground reclaim
voice, and the score screen that keeps players who left. Its lobby defaults
are its own: unit limit 1500 (mayhem.ini), AI income Medium 1x and Hard 2x
(Easy stays TA's 0.5x), computer players keep their orders when hit, and
units that start cloaked cloak only once built (a patch in Mayhem, a
lobby default in Escalation).
Mayhem's other patches have no native rule yet.
What goes wrong
A version not listed in [[tested]] still applies its profiles and logs:
mod compatibility: my-mod 0.2.0 has not been tested with AEX's compatibility profiles; they apply anyway
A copy with no mod.toml that its archives identify logs, for example:
mod compatibility: no mod.toml; the mounted archives are taesc 10.2.0, so mod 'escalation' profiles apply
A mod.toml that does not parse selects no mod profile:
mod compatibility: the mounted mod.toml does not parse; no mod profile applies
A profile that tries to name an executable or module hash is refused:
mod compatibility: mod-mappings.toml: profile[0].executable_sha256: an executable or module never identifies a mod; name its mod.toml id in `mod`
Next
- Verified weapon rules: the first of the mod-specific profiles.
- Mod compatibility mappings: how mappings resolve.