feat(dungeon): decode object records in lossless JSON schema 3 #399

Merged
jqueuniet merged 1 commit from feat/390-schema3-records into main 2026-10-28 22:37:48 +01:00
Owner

Second step of the #390 schema 3 work: object records.

  • Doors, teleporters, texts, weapons, clothes, scrolls, potions, chests, misc and clouds split their packed words into named fields (ObjectsJson).
  • Teleporter scope is a name: items, creatures, items_party or everything.
  • next_oid links stay raw.
  • False flags and zero residuals are omitted. Residuals hold the still-undecoded bits: door and clothes bits 15:14, teleporter dest_map_word bits 7:3, chest attribute bits 12:3 and 0. None are set in DOS-EN.
  • Reconstruct rejects out-of-range values.
  • Actuators and creatures stay raw for the next PR; missiles already have plain fields.

Every 16-bit attribute word round-trips for each record type, and every fixture round-trips byte-exact. Schema 3 is unreleased, so the version stays at 3.

Refs #390

https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw

Second step of the #390 schema 3 work: object records. - Doors, teleporters, texts, weapons, clothes, scrolls, potions, chests, misc and clouds split their packed words into named fields (`ObjectsJson`). - Teleporter `scope` is a name: `items`, `creatures`, `items_party` or `everything`. - `next_oid` links stay raw. - False flags and zero residuals are omitted. Residuals hold the still-undecoded bits: door and clothes bits 15:14, teleporter `dest_map_word` bits 7:3, chest attribute bits 12:3 and 0. None are set in DOS-EN. - Reconstruct rejects out-of-range values. - Actuators and creatures stay raw for the next PR; missiles already have plain fields. Every 16-bit attribute word round-trips for each record type, and every fixture round-trips byte-exact. Schema 3 is unreleased, so the version stays at 3. Refs #390 https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
feat(dungeon): decode object records in lossless JSON schema 3
All checks were successful
CI / stable (pull_request) Successful in 55s
CI / python bindings (3.11) (pull_request) Successful in 25s
CI / msrv (1.90) (push) Successful in 28s
CI / audit (push) Successful in 19s
CI / msrv (1.90) (pull_request) Successful in 28s
CI / audit (pull_request) Successful in 19s
CI / stable (push) Successful in 53s
CI / python bindings (3.11) (push) Successful in 24s
80fdb6ba8f
Doors, teleporters, texts, the item records and clouds split their
packed words into named fields; teleporter scope becomes a name.
Actuators, creatures and missiles stay raw for now.

Refs #390

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