feat(cli): build dungeon.dat from a lossless JSON dump #401

Merged
jqueuniet merged 1 commit from feat/390-cli-build into main 2026-10-28 23:09:22 +01:00
Owner

Last step of #390: the CLI and bindings.

  • dm2 build <json> -o <file> rebuilds dungeon.dat from a dump --format dungeon-lossless dump. It dispatches on the dump's format tag; other tags are refused.
  • Values that overflow their bit fields fail with the field name, e.g. level: 64 exceeds 63.
  • The bindings already pass schema 3 through unchanged. The Python tests now edit a tile, reload it, and check that an out-of-range value raises; they go through the FFI.
  • Docs: README command list, format doc, CHANGELOG.

Refs #390

https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw

Last step of #390: the CLI and bindings. - `dm2 build <json> -o <file>` rebuilds `dungeon.dat` from a `dump --format dungeon-lossless` dump. It dispatches on the dump's `format` tag; other tags are refused. - Values that overflow their bit fields fail with the field name, e.g. `level: 64 exceeds 63`. - The bindings already pass schema 3 through unchanged. The Python tests now edit a tile, reload it, and check that an out-of-range value raises; they go through the FFI. - Docs: README command list, format doc, CHANGELOG. Refs #390 https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
feat(cli): build dungeon.dat from a lossless JSON dump
All checks were successful
CI / python bindings (3.11) (pull_request) Successful in 25s
CI / msrv (1.90) (push) Successful in 28s
CI / stable (push) Successful in 54s
CI / python bindings (3.11) (push) Successful in 25s
CI / audit (push) Successful in 18s
CI / msrv (1.90) (pull_request) Successful in 27s
CI / audit (pull_request) Successful in 18s
CI / stable (pull_request) Successful in 55s
beeb78f782
`dm2 build` picks the target from the dump's format tag and rejects
values that overflow their bit fields. The Python tests now edit a tile
through the bindings and reload it.

Refs #390

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
jqueuniet deleted branch feat/390-cli-build 2026-10-28 23:09:22 +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!401
No description provided.