feat(dungeon): decode residual bits from SKWINSPX #393

Merged
jqueuniet merged 3 commits from feat/392-residual-accessors into main 2026-10-28 09:02:48 +01:00
Owner

Part of #392.

  • Accessors for bits the engine reads:
    • map flags 2 and 6;
    • scroll gdat_text;
    • creature important and keeps_possession_positions;
    • shooter word 3 energy and decay;
    • teleporter blocks_passage and activation.
  • TileAttr follows SKWINSPX's tile flags (breaking). It replaces the decoding taken from retired SKULLWIN:
    • pit: hidden / imaginary;
    • stairs: north-south / up;
    • door: north-south;
    • teleporter: open / haze;
    • trick wall: open / ornaments / map blink;
    • wall: per-side ornament mask.

Confirmed in-game on DOS EN: pit bit 2 hidden, stair bit 2 leads up. #392 lists which findings rest on original-binary code and which on SKWINSPX alone.

Part of #392. - **Accessors** for bits the engine reads: - map flags 2 and 6; - scroll `gdat_text`; - creature `important` and `keeps_possession_positions`; - shooter word 3 energy and decay; - teleporter `blocks_passage` and `activation`. - **`TileAttr` follows SKWINSPX's tile flags** (breaking). It replaces the decoding taken from retired SKULLWIN: - pit: hidden / imaginary; - stairs: north-south / up; - door: north-south; - teleporter: open / haze; - trick wall: open / ornaments / map blink; - wall: per-side ornament mask. Confirmed in-game on DOS EN: pit bit 2 hidden, stair bit 2 leads up. #392 lists which findings rest on original-binary code and which on SKWINSPX alone.
Refs #392
Refs #392
fix(dungeon): decode tile attributes from SKWINSPX's tile flags
All checks were successful
CI / audit (pull_request) Successful in 20s
CI / stable (pull_request) Successful in 51s
CI / msrv (1.90) (push) Successful in 27s
CI / python bindings (3.11) (push) Successful in 23s
CI / msrv (1.90) (pull_request) Successful in 27s
CI / python bindings (3.11) (pull_request) Successful in 23s
CI / audit (push) Successful in 18s
CI / stable (push) Successful in 52s
42a29fd8a6
SKULLWIN, the previous source, is retired; SKWINSPX's editor documents
each bit. Pit bit 2 is hidden (not a grate), stair bit 3 is orientation
(not down), teleporter bits 3 and 2 are open and haze, and wall bits are
per-side ornament flags.

Refs #392
jqueuniet deleted branch feat/392-residual-accessors 2026-10-28 09:02:48 +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!393
No description provided.