ACS Dynamic English 1.4: offline sentence templates, FairyGUI button disambiguation, and why 63% of event dialogue missed exact lookup
Version 1.4.0 of our English live-translation and contextual UI mod for Amazing Cultivation Simulator is out as a 7.30 MiB Full Install ZIP on apocky.com. It runs 100% offline by default across 22,576 exact strings, 3,540 parameterized sentence and dialogue templates, 11,874 compound tokens, 503 cultivator surnames, 68 fail-closed UI rules, and 61 xianxia lore hover notes.
Amazing Cultivation Simulator (Steam AppID 955900) is one of the deepest colony-and-cultivation sandboxes ever made, and one of the easiest to bounce off: arcane xianxia mechanics where higher Attainment penalizes future manual learning, vanilla UI collisions where both assembling and dissolving a war formation are labeled Form Formation, and thousands of Chinese Steam Workshop mods and story strings that remain untranslated.
ACS Dynamic English 1.4.1 is out today. You can grab the complete Full Install Package (.zip, 7.33 MiB) directly from this site, extract it anywhere, and double-click ACS-Dynamic-English-1.4.1-Setup.exe (or Install-Offline.cmd). It works 100% offline out of the box (Endpoint=Passthrough), requires zero administrator/UAC elevation, never modifies game binaries, Settings\, Mods\, or saves\, and rolls back every installed file in one click.
Why 63% of event dialogue missed exact lookup
In v1.3.0, mining unambiguous pairs across codedictionary.txt, MapStoryDictionary.txt, and Settings\ gave us 13,870 exact strings. Yet when auditing why adventure events and notifications still fell back to word-by-word compound glossing offline, the numbers told the story immediately:
- Out of
1,886entries inMapStoryDictionary.txt, only679were static strings. The other1,183(62.7%) contained runtime slots like{0},[NAME],[SCHOOL], or[IT], plus17longer multi-sentence passages. - Out of
4,050entries incodedictionary.txt,1,037contained{0}format specifiers ({0:F0}/{1:F0}) or inline FairyGUI[color=#...]tags. - Another
171self-contained_Dictionary.txtfiles hidden underSL\Assets\Resources\FightMap\(3,070unique dungeon and boss-arena strings),881child-<Name>XML nodes inComment\*.xml, and810dotted<Events.2.Story>nodes inNpcStories\*.xmlhad been skipped because their XML/TSV layouts differed from standard<ThingDef Name="...">files.
Worse, by the time FairyGUI’s GTextField.set_text receives a notification or adventure log line at runtime, C#’s string.Format and the Lua story runner have already substituted the disciple’s name or sect into {0} and [NAME]. Exact dictionary lookup never sees {0} - it sees the finished sentence with a random cultivator’s name baked into the middle of it.
Matching 3,540 templates without regex lag
FairyGUI updates text fields constantly during menu transitions and colony simulation ticks, so running 3,540 regular expressions per string was out of the question.
Instead, TerminologyCatalog parses every template once at startup into literal segments and typed slots ({0}, {0:P} for person/speaker names), then indexes them into O(1) buckets by their first two literal characters ((c0 << 16) | c1), single-character prefixes, or last two literal characters for leading-slot sentences like {0:P} + trailing verb phrase. Within each bucket, templates sort by literal Han character count descending so specific frames always win before shorter ones.
When a template matches at runtime, each captured slot translates recursively through a 4-layer offline pipeline:
- Exact dictionary (
22,576entries), preserving outer[color=#...]and<font ...>tags so red warning text stays red. - Person & honorific resolver (
503cultivator surnames) on{0:P}speaker slots and<Surname><Honorific>titles (Elder Zhang,Senior Brother Li,Zhao Qiling). Auditing the base game’sPrefix_Human.txtcaught one amusing landmine before release: vanillaOfficialEnglishhad machine-translated the surname Wang (\u738b) as"Lord", which would have turned Sect Leader Wang into"Sect Leader Lord". All503surnames are now verified Pinyin, while ambiguous prefixes (Grand Elder,Supreme Elder) are guarded by negative controls so they never misread as surnames. - Clause-first decomposition (
90curated xianxia speech & mod stat frames) for Chinese Workshop elixirs, manuals, and dialogue: speech frames (smiled and said: "...",sneered: "..."), conditionals (If ..., then ...), durations, cooldowns, and percentage stat modifiers. - Longest-match compound trie (
11,874pure-Han tokens) + numeric classifier elision +150single-character grammar rules, stripping untranslated Chinese measure words after digits and aspect/modal particles so raw Chinese function characters do not litter offline sentences.
Four traps caught by testing before ship
- Single-clause templates swallowing whole sentences. On our first test run of a multi-clause Workshop elixir string (
When consumed: +25% Cultivation Speed, lasts 3 days, 120s cooldown), the outer prefix template and percentage template matched greedily across commas and produced:When consumed: Increases Cultivation Speed, lasts 3 days, 120s cooldown. by 25%. Forbidding non-quoted single-clause slots from crossing Chinese clause delimiters (\uff0c,\uff1b,\u3002) forced multi-clause strings through the clause splitter first and produced exact English clause order (54/54unit assertions pass). - FairyGUI button timing & vanilla duplicate labels. FairyGUI’s
GComponent.ConstructFromResourcefires childGButton.set_titlebeforeConstructFromXMLpopulates parent fields onUI_GameMenuandUI_Panel_ThingInfo. JoiningAssembly-CSharp.dllUI classes againstUIText.xmlcomponent URLs (0xrxw6g7...) and adding aConstructFromResourcepostfix allowed fail-closedControlIdentityrules across68controls - including splitting vanilla’s duplicateForm Formationbuttons (n191_yre5vsn196_bvv4) intoDeploy ArrayandDisband Array, and clarifyingArr.(n226_sw03) intoBreathing. - Legacy Mono’s empty TLS root store (
0x800b010a). Offline mode makes zero network calls. For players who explicitly opt into hybridGoogleTranslateV2online fallback (-AcceptTextEgressor the consent checkbox inSetup.exe), Unity 2017.4’s embedded Mono (v2.0.50727) has an empty certificate store and rejects Google’s TLS chain. Rather than disabling certificate checks, our customXUnity.AutoTranslatorbuild stripsSharpZipLib(0references) and validateshttps://translate.google.com:443directly through Windows CryptoAPI (crypt32.dllCertGetCertificateChain+CertVerifyCertificateChainPolicy). - In-place
1.3.0 -> 1.4.0upgrade residue. Live upgrade testing on our Steam install caughtUninstall.ps1enforcing exact-version manifest equality andInstall.ps1rejecting.install.json.provider-change.*.bakbackups created when toggling offline/online modes. Fixing both and adding a cross-version upgrade scenario toTest-Installer.ps1(6/6scenarios) made one-click upgrades seamless.
Download & verify
- Download page & instructions: /acs-dynamic-english/
- Direct Full Install ZIP (
7,685,337B, v1.4.1 with 186 UI & Steam Workshop mod rules): ACS-Dynamic-English-1.4.1-Full-Install.zip - SHA-256:
6ced7044b4be8992db4f77a47775cd1bab2612ab18cbe7042fc8421988c5d078 - Release manifest: /acs-dynamic-english/release.json
Known gaps
Offline mode deterministically translates all 22,576 mined ACS strings, 3,540 parameterized runtime templates, and structured Chinese Workshop titles and stat clauses. Novel, free-form multi-sentence Chinese prose from third-party story mods that matches no template falls back to clause-and-compound glossing unless optional consented GoogleTranslateV2 online fallback is enabled in Setup.exe. Text baked directly into image textures is not modified.