diff options
| author | Nikolas Sturm <code@nsturm.me> | 2026-11-22 12:41:52 +0100 |
|---|---|---|
| committer | Nikolas Sturm <code@nsturm.me> | 2026-11-22 12:42:09 +0100 |
| commit | 8ef54230a30593551c1392afcd3b1b4fd9ad1fc3 (patch) | |
| tree | da9af4805e9a2aaff124ee9c7c7cced268036a51 /runtime/src/pe_loader.cpp | |
| parent | bb2e18421dac527374eb837c88b5063c5d96f81f (diff) | |
tools: decode string tables and join dialogue to its subtitles
Text resources are 0DRP logical resources holding a joaat label hash table,
an index array and a UTF-8 string blob, located by a descriptor of
0x5xxxxxxx resource pointers. text_tables.py joins each 0DRP stream with
its 64 KiB continuations (carve directory or archive via gamedata_index, or
whole-resource files), decodes the tables, guesses each table's language
(script, distinctive letters, common words; es-ES/es-419 and
zh-Hant/zh-Hans by markers; xx when undecided), and joins conversation
key/label pairs (<key>_01.. waves) to their text in every language.
On 1.0.2.1: 30,349 tables / 7.17M strings; 118,351 dialogue keys and
138,104 lines, 88-93% with text per language. docs/text.md records the
format, the per-language conflict counts and the open questions.
Standard library only; tests are synthetic.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions