Verified unit speech
The speech profile that changes what units say at each speech cue for a recognized mod.
A speech profile changes what units say, never what they do. Use it when a mod's patch made a unit say a different line, or nothing, at a moment where stock TA says another.
The worked example
The bundled Escalation profile in assets/compatibility/mod-mappings.toml
(evidence text left out here):
[[profile]]
id = "taesc-speech-v1"
revision = 1
priority = 0
matcher = "verified-executable-speech-v1"
speech = ["landing-failed=arrived", "air-reclaim-unit-start=none", "air-reclaim-unit-drain=working"]
mod = "escalation"
The speech field
Matcher "verified-executable-speech-v1" changes what units say, never what
they do. Its speech field is a nonempty array of "cue=kind" entries: a
speech cue (a place a unit speaks from) and the speech kind it says there
instead, a sound-category key such as "arrived" or "working", or
"none" to say nothing. Each entry names a different cue, a cue left out
keeps stock TA's kind, and a profile must change at least one. It applies
only when the mounted mod has the profile's identity
(Mod identity).
| Cue | Where | Stock TA says |
|---|---|---|
waiting-for-target-area |
a build site is blocked, first check | cant |
target-area-blocked |
a build site stays blocked: the order ends | cant |
cant-reach-construction-site |
a builder cannot reach its site | cant |
landing-aborted |
a landing aircraft's air base is lost | cant |
landing-failed |
a landing aircraft finds no free pad | cant |
air-reclaim-unit-start |
an aircraft's unit reclaim sets off | working |
air-reclaim-unit-drain |
an aircraft's unit reclaim starts draining | nothing |
repairs-unsuccessful |
the unit being repaired is gone | cant |
unit-repaired |
the unit being repaired is at full health | repair |
capture-failed |
the unit being captured is gone | cant |
unit-limit-reached |
a factory, builder or resurrector meets the unit limit | cant |
cant-get-there |
a builder helping a frame cannot walk to it | cant |
reclamation-failed |
the feature being reclaimed is gone, or a unit reclaim cannot start | cant |
cannot-be-reclaimed |
the unit to reclaim cannot be reclaimed | cant |
repair-aborted |
a docked aircraft's air base is lost mid-repair | cant |
construction-terminated |
the frame a builder is making or helping is gone | cant |
construction-stopped |
the unit a factory is building is destroyed on its pad | cant |
cannot-be-captured |
the unit to capture can capture itself | cant |
capture-vapor |
the unit to capture is still being built | cant |
too-large-to-transport |
a ground transport's cargo is too wide for it | cant |
transport-mission-failed |
a ground transport's cargo is gone before the pickup | cant |
unloading-non-optimal |
a ground transport's cargo is gone during the unload | cant |
unable-to-unload |
an air transport's cargo does not fit at the drop point | cant |
resurrection-failed |
the wreck being resurrected is gone | cant |
resurrection-unknown-unit |
the wreck names no unit type | cant |
The bundled taesc-speech-v1, revision 1, recognizes Escalation 10.2 and
makes a failed landing say arrived and an aircraft's unit reclaim say
working once as it starts draining instead of as it sets off. The game
resolves the map once at load on each player's machine. Speech is
presentation only: the selection adds nothing to the compatibility plan,
the rules, checkpoints, the sim hash or the wire. An unrecognized
mod keeps stock TA's speech. The
sound field truths (S18) record
the changes the patch makes.
What goes wrong
A profile that applies logs:
unit speech compatibility: profile taesc-speech-v1@1 selected; evidence: <evidence>
A cue or kind the game does not know, a repeated cue, or a profile that changes nothing refuses the library:
mod compatibility: mod-mappings.toml: profile[0].speech: unknown speech cue 'landing-fail'
mod compatibility: mod-mappings.toml: profile[0].speech: unknown speech kind 'arived'
mod compatibility: mod-mappings.toml: profile[0].speech: duplicate speech cue 'landing-failed'
mod compatibility: mod-mappings.toml: profile[0]: a speech profile must remap a cue