graphics.dat: list records #429

Closed
opened 2026-10-30 17:38:21 +01:00 by jqueuniet · 0 comments
Owner

A web asset browser for graphics.dat cannot discover records: the bindings decode an image only for a known class tuple, and graphicsHeaderJson gives no entries.

Proposal

graphicsEntriesJson(gdat), one object per record:

  • cls1..cls4 (and cls5/cls6 where meaningful);
  • kind: image, sound, music, text, palette, palette16, font, word, pic_offset, … or unknown;
  • category: the Category token for cls1 (creatures, wall-gfx, …), absent for gaps;
  • size in bytes;
  • images: width, height, and whether a transparent colour applies;
  • text: language.

Acceptance

  • Every record of the 5-fixture suite listed; counts per kind match the cls3 distribution in docs/formats/graphics-dat.md.
  • Exposed in every binding.
A web asset browser for `graphics.dat` cannot discover records: the bindings decode an image only for a known class tuple, and `graphicsHeaderJson` gives no entries. ## Proposal `graphicsEntriesJson(gdat)`, one object per record: - `cls1`..`cls4` (and `cls5`/`cls6` where meaningful); - `kind`: `image`, `sound`, `music`, `text`, `palette`, `palette16`, `font`, `word`, `pic_offset`, … or `unknown`; - `category`: the `Category` token for `cls1` (`creatures`, `wall-gfx`, …), absent for gaps; - `size` in bytes; - images: `width`, `height`, and whether a transparent colour applies; - text: `language`. ## Acceptance - Every record of the 5-fixture suite listed; counts per kind match the `cls3` distribution in `docs/formats/graphics-dat.md`. - Exposed in every binding.
Sign in to join this conversation.
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#429
No description provided.