feat(bindings): name graphics.dat item, champion and creature types #439

Merged
jqueuniet merged 1 commit from feat/433-entry-labels into main 2026-10-30 22:22:26 +01:00
Owner

Closes #433.

graphicsLabelsJson(gdat, language) (also a GraphicsArchive method; wasm, FFI, Python): {cls1, cls2, category, name, glyph_name} for each type the game names.

  • Items 0x10–0x15 and champions 0x16: text slot 0x18.
  • Creatures and decorations 0x0f: slot 0x00.
  • Falls back to the PC-family untranslated bucket (cls5 = 0xf0), where DOS keeps creature names and its DEBUG MAP item.

DOS names all 282 types but the shared 0xfe slots; the test checks this against the record listing. Creature names stay English in every language.

Not covered, per the issue's list: doors, ornaments and spells have no name text keyed by (cls1, cls2); wall/floor texts are animation sequences. Mac JP and Sega CD carry no creature names.

Champion's bones keep their template, {hero_name}BONES. Japanese names decode garbled, as in dm2 extract: #438.

https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7

Closes #433. `graphicsLabelsJson(gdat, language)` (also a `GraphicsArchive` method; wasm, FFI, Python): `{cls1, cls2, category, name, glyph_name}` for each type the game names. - Items `0x10`–`0x15` and champions `0x16`: text slot `0x18`. - Creatures and decorations `0x0f`: slot `0x00`. - Falls back to the PC-family untranslated bucket (`cls5 = 0xf0`), where DOS keeps creature names and its `DEBUG MAP` item. DOS names all 282 types but the shared `0xfe` slots; the test checks this against the record listing. Creature names stay English in every language. Not covered, per the issue's list: doors, ornaments and spells have no name text keyed by `(cls1, cls2)`; wall/floor texts are animation sequences. Mac JP and Sega CD carry no creature names. Champion's bones keep their template, `{hero_name}BONES`. Japanese names decode garbled, as in `dm2 extract`: #438. https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
feat(bindings): name graphics.dat item, champion and creature types
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 28s
CI / audit (pull_request) Successful in 19s
CI / stable (pull_request) Successful in 55s
CI / python bindings (3.11) (pull_request) Successful in 25s
CI / msrv (1.90) (push) Successful in 28s
CI / audit (push) Successful in 19s
CI / stable (push) Successful in 55s
CI / python bindings (3.11) (push) Successful in 25s
c01fc22fde
graphics_labels_json gives the game's name for each (cls1, cls2) it
names, in a language: items and champions from text slot 0x18,
creatures from slot 0x00, falling back to the PC-family bucket. Also a
GraphicsArchive method, in wasm, FFI and Python.

Closes #433

Claude-Session: https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
jqueuniet deleted branch feat/433-entry-labels 2026-10-30 22:22:26 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jqueuniet/dm2-tools!439
No description provided.