feat(bindings): list graphics.dat records #434

Merged
jqueuniet merged 1 commit from feat/429-graphics-entries into main 2026-10-30 17:58:37 +01:00
Owner

Closes #429.

graphics_entries_json (graphicsEntriesJson, FFI, Python): every ENT1 record in file order with cls1..cls6, kind from cls3, category, payload size or inline value; images add width, height, transparent (engine palette index); texts language.

Kinds: banner, image, sound, music, text, font (only (1, 0, 7, 0)), palette, palette16, palette_lut, word, pic_offset; raw4/raw6/raw7/raw8 for dtIndex members without a verified decoder; unknown otherwise.

Per-cls3 counts match docs/formats/graphics-dat.md on all 5 fixtures; every image decodes.

Limit: records differing only in cls5 (language variants) are listed, but the decoders resolve by (cls1, cls2, cls4) and can't fetch a specific one.

https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7

Closes #429. `graphics_entries_json` (`graphicsEntriesJson`, FFI, Python): every ENT1 record in file order with `cls1`..`cls6`, `kind` from `cls3`, `category`, payload `size` or inline `value`; images add `width`, `height`, `transparent` (engine palette index); texts `language`. Kinds: `banner`, `image`, `sound`, `music`, `text`, `font` (only `(1, 0, 7, 0)`), `palette`, `palette16`, `palette_lut`, `word`, `pic_offset`; `raw4`/`raw6`/`raw7`/`raw8` for `dtIndex` members without a verified decoder; `unknown` otherwise. Per-`cls3` counts match `docs/formats/graphics-dat.md` on all 5 fixtures; every image decodes. Limit: records differing only in `cls5` (language variants) are listed, but the decoders resolve by `(cls1, cls2, cls4)` and can't fetch a specific one. https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
feat(bindings): list graphics.dat records
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 26s
CI / msrv (1.90) (push) Successful in 28s
CI / audit (push) Successful in 18s
CI / stable (push) Successful in 55s
CI / python bindings (3.11) (push) Successful in 25s
4205259c3a
graphics_entries_json gives every ENT1 record its class tuple, a kind
from cls3, the cls1 category, payload size or inline value, image
dimensions and transparent index, and text language. Exposed in wasm,
FFI and Python.

Closes #429

Claude-Session: https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
jqueuniet deleted branch feat/429-graphics-entries 2026-10-30 17:58:37 +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!434
No description provided.