graphics.dat: icon() cannot play creature sequences #466

Closed
opened 2026-10-31 22:40:22 +01:00 by jqueuniet · 0 comments
Owner

sequences(0x0f, type) views fed to icon() (main at 340262c4, DOS EN):

  1. Invalid APNG when frame sizes differ. The first fcTL, sharing IDAT, must match IHDR; apng() sizes it to frame 0. Firefox shows a broken image. Type 0, command 3, front: IHDR 139x92, first fcTL 123x82+0+0. 1605 of 2328 creature views mix sizes; 3 wall and 2 floor views too.
  2. mirror dropped. icon() takes cls1, cls2, cls4 triples only; 710 views flip frames (type 2 command 1 back: cls4 0, 4M, 8, 12M), drawn unflipped.
  3. Anchoring. Frames sit at +0+0; creatures of varying size jump instead of standing on a common baseline. Where the game anchors them (bottom-centre? per-image offset? position?) is unverified.

Wanted: sequences() views that icon() renders as the game draws them, e.g. frames taking a flip flag (4-byte records, or an icon option per frame) and a canvas sized and anchored over all frames.

`sequences(0x0f, type)` views fed to `icon()` (main at 340262c4, DOS EN): 1. **Invalid APNG when frame sizes differ.** The first fcTL, sharing IDAT, must match IHDR; `apng()` sizes it to frame 0. Firefox shows a broken image. Type 0, command 3, front: `IHDR 139x92`, first `fcTL 123x82+0+0`. 1605 of 2328 creature views mix sizes; 3 wall and 2 floor views too. 2. **`mirror` dropped.** `icon()` takes `cls1, cls2, cls4` triples only; 710 views flip frames (type 2 command 1 back: cls4 0, 4M, 8, 12M), drawn unflipped. 3. **Anchoring.** Frames sit at `+0+0`; creatures of varying size jump instead of standing on a common baseline. Where the game anchors them (bottom-centre? per-image offset? `position`?) is unverified. Wanted: `sequences()` views that `icon()` renders as the game draws them, e.g. frames taking a flip flag (4-byte records, or an `icon` option per frame) and a canvas sized and anchored over all frames.
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#466
No description provided.