feat(dungeon): decode actuators and creatures in lossless JSON schema 3 #400

Merged
jqueuniet merged 1 commit from feat/390-schema3-actuators into main 2026-10-28 22:53:30 +01:00
Owner

Third step of the #390 schema 3 work: actuators and creatures.

Actuators

  • Words 1 and 2 split into actuator_type, data, action_type, delay, ornate_index and flags. data stays a number; its meaning depends on type and placement.
  • Word 3 becomes a target tagged by form:
    • shot (energy, energy_decay): wall actuators of the types the wall dispatcher hands to ACTIVATE_SHOOTER (0x07–0x0a, 0x0e, 0x0f). Placement comes from the tile chains, since floor 0x07/0x08 are traps.
    • locator (x, y, direction): every other actuator, including those on no tile.
  • Reconstruct packs either form for any type.

Creatures

  • trigger_loc becomes trigger (x, y, map). For static creatures it is an animation parameter.
  • dir_flags splits into direction, important and keeps_possession_positions.

Every word value round-trips for both actuator forms and for creatures, and every fixture round-trips byte-exact. In DOS-EN, 35 actuators take shot and 985 locator.

Refs #390

https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw

Third step of the #390 schema 3 work: actuators and creatures. **Actuators** - Words 1 and 2 split into `actuator_type`, `data`, `action_type`, `delay`, `ornate_index` and flags. `data` stays a number; its meaning depends on type and placement. - Word 3 becomes a `target` tagged by `form`: - `shot` (`energy`, `energy_decay`): wall actuators of the types the wall dispatcher hands to `ACTIVATE_SHOOTER` (0x07–0x0a, 0x0e, 0x0f). Placement comes from the tile chains, since floor 0x07/0x08 are traps. - `locator` (`x`, `y`, `direction`): every other actuator, including those on no tile. - Reconstruct packs either form for any type. **Creatures** - `trigger_loc` becomes `trigger` (`x`, `y`, `map`). For static creatures it is an animation parameter. - `dir_flags` splits into `direction`, `important` and `keeps_possession_positions`. Every word value round-trips for both actuator forms and for creatures, and every fixture round-trips byte-exact. In DOS-EN, 35 actuators take `shot` and 985 `locator`. Refs #390 https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
feat(dungeon): decode actuators and creatures in lossless JSON schema 3
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 29s
CI / audit (pull_request) Successful in 18s
CI / stable (pull_request) Successful in 54s
CI / msrv (1.90) (push) Successful in 27s
CI / audit (push) Successful in 18s
CI / python bindings (3.11) (pull_request) Successful in 24s
CI / stable (push) Successful in 55s
CI / python bindings (3.11) (push) Successful in 25s
0dae9f5b51
Actuator word 3 becomes a target tagged by form: shot energy for wall
shooters, picked by placement since floor types 0x07/0x08 are traps,
and a locator otherwise. Creature trigger_loc and dir_flags split into
named fields.

Refs #390

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
jqueuniet deleted branch feat/390-schema3-actuators 2026-10-28 22:53:31 +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!400
No description provided.