fix(dungeon): resolve the remaining #392 unknowns #396

Merged
jqueuniet merged 2 commits from feat/392-remaining-unknowns into main 2026-10-28 21:52:35 +01:00
Owner

Checks the remaining unknowns against SKWINSPX's v5 code, which is derived from the DOS binary.

Tiles and creatures

  • Trick wall bit 0: it also makes the wall passable while closed, so map_blink becomes imaginary. The field is not released yet, so this adds no new break.
  • Pit bit 0: creatures never use the pit to go down a level.
  • Teleporter bit 2: the teleporter is drawn only when bits 3 and 2 are both set.
  • Floor bit 3: inert in retail. Its only reader is the type-0x11 text ornament, and it is set only on 165 tiles of map 1, all without objects.
  • keeps_possession_positions: applies at new-game setup to static creatures, not when an actuator spawns a creature.

Actuators

  • Wall 0x29 (beta): an alcove trap that fires on any item.
  • Floor 0x42: turns the creature on the target tile to face data bits 1:0 (new ParamClass::Direction).
  • Wall 0x3e, 0x7d and behaviour bit 11: nothing in the retail engine reads them.

Refs #392

https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw

Checks the remaining unknowns against SKWINSPX's v5 code, which is derived from the DOS binary. **Tiles and creatures** - **Trick wall bit 0:** it also makes the wall passable while closed, so `map_blink` becomes `imaginary`. The field is not released yet, so this adds no new break. - **Pit bit 0:** creatures never use the pit to go down a level. - **Teleporter bit 2:** the teleporter is drawn only when bits 3 and 2 are both set. - **Floor bit 3:** inert in retail. Its only reader is the type-0x11 text ornament, and it is set only on 165 tiles of map 1, all without objects. - **`keeps_possession_positions`:** applies at new-game setup to static creatures, not when an actuator spawns a creature. **Actuators** - **Wall 0x29 (beta):** an alcove trap that fires on any item. - **Floor 0x42:** turns the creature on the target tile to face data bits 1:0 (new `ParamClass::Direction`). - **Wall 0x3e, 0x7d and `behaviour` bit 11:** nothing in the retail engine reads them. Refs #392 https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
Trick wall bit 0 also makes the wall passable while closed, so
`map_blink` becomes `imaginary`. Pit bit 0 keeps creatures from taking
the pit down; teleporters draw only with bit 2. Floor bit 3 is inert in
retail. `keeps_possession_positions` applies at new-game setup, not on
actuator spawns.

Refs #392

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
feat(dungeon): catalog actuator 0x29 and decode 0x42's facing
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 50s
CI / python bindings (3.11) (pull_request) Successful in 23s
CI / msrv (1.90) (push) Successful in 27s
CI / audit (push) Successful in 19s
CI / stable (push) Successful in 51s
CI / python bindings (3.11) (push) Successful in 23s
1e27321ccf
Wall 0x29 is the any-item alcove trap; floor 0x42 turns the creature on
its target to face data bits 1:0 (`ParamClass::Direction`). Wall 0x3e,
0x7d and behaviour bit 11 have no retail reader.

Refs #392

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
jqueuniet deleted branch feat/392-remaining-unknowns 2026-10-28 21:52:35 +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!396
No description provided.