• v0.6.0 ca5177137e

    v0.6.0
    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 55s
    CI / python bindings (3.11) (pull_request) Successful in 25s
    CI / msrv (1.90) (push) Successful in 29s
    CI / audit (push) Successful in 19s
    CI / stable (push) Successful in 55s
    CI / python bindings (3.11) (push) Successful in 30s
    Release / build (cli + windows wheel + c bundle) (push) Successful in 2m31s
    Release / wheel + c bundle (manylinux x86_64) (push) Successful in 5m13s
    Release / publish (push) Successful in 14s
    Release / publish (npm) (push) Successful in 1m39s
    Release / publish (crates.io) (push) Successful in 1m47s
    Release / publish (PyPI) (push) Successful in 16s
    Stable

    jqueuniet released this 2026-10-30 10:10:20 +01:00 | 63 commits to main since this release

    Signed by jqueuniet
    SSH key fingerprint: SHA256:hjUxou9yR5AKBQ8zK2FkTEp12iDlEomvb63VBpXVwN4

    Added

    • Graphics — GAME_TICK_MS, the game tick length (134 ms, measured on
      DOS EN).
    • Dungeon — accessors for bits the engine reads: Map::use_invisible_lower_pitfall,
      Map::use_message_board, Scroll::gdat_text, Creature::important,
      Creature::keeps_possession_positions, and the shooter word 3
      Actuator::shot_energy / shot_energy_decay, Teleporter::blocks_passage
      and Teleporter::activation.
    • CLI — dm2 build <json> -o <file> rebuilds dungeon.dat from a
      dump --format dungeon-lossless dump, rejecting out-of-range values.
    • Dungeon — Map::num_leading_creature_types exposes w12 bits 11:8,
      which no known engine code reads; the format doc records the observed pattern.
    • Graphics — Archive::creature_ai_index and the free function
      creature_ai_is_static: a creature type's AI descriptor and its static flag.
    • Magic map — new dm2-magicmap crate: draws each dungeon.dat map
      as the in-game magic map does (terrain, ornaments, teleporter swirls,
      creatures) from any retail port's graphics.dat, as PNG or looping
      APNG (render_map_png).
    • Graphics — map chips (cls4 = 0xf9) on Amiga, FM-Towns and Sega CD
      resolve to the UI palette (0x01, 0x00, 0x09, 0x00), as in game.
    • CLI — dm2 extract dungeon.dat --gdat <graphics.dat> writes
      map_NN.png beside each map_NN.json; --no-creatures leaves
      creatures off, --scale N enlarges.
    • Convert / wasm / FFI / Python — dungeon_map_png (dungeonMapPng,
      dm2_dungeon_map_png): one map's magic-map image.
    • Magic map — level images: render_level_png places a level's maps
      as in game (level_layout resolves cells several maps share); dm2 extract --gdat also writes level_NN.png; dungeon_level_png
      (dungeonLevelPng, dm2_dungeon_level_png) in every binding.
    • Graphics — Image::to_rgb_buffer is now public.
    • Magic map — Runes (MapView::with_runes) selects the creature,
      reveal and items runes; items are drawn as the items rune does
      (item_chips, held_item_chips, cell_chips).
    • Magic map — chip reports: map_chips / level_chips give each
      cell's owning map, tile type and layers (class tuple, frames, ticks per
      frame, mirror), tagged with the rune that shows or hides them.
    • Convert / wasm / FFI / Python — dungeon_map_chips_json and
      dungeon_level_chips_json (dungeonMapChipsJson,
      dungeonLevelChipsJson, dm2_dungeon_map_chips_json,
      dm2_dungeon_level_chips_json): chip reports as JSON.
    • Magic map — layouts: map_cells / level_cells give a chip
      report's cells and owners from dungeon.dat alone;
      dungeon_map_layout_json / dungeon_level_layout_json
      (dungeonMapLayoutJson, dungeonLevelLayoutJson,
      dm2_dungeon_map_layout_json, dm2_dungeon_level_layout_json) in
      every binding.

    Changed

    • Dungeon — lossless JSON schema 3 (breaking): each map's header and
      body merge into one maps entry with decoded fields, and tiles become
      tagged objects (MapEntry, TileJson). Records carry decoded fields too
      (ObjectsJson); actuator word 3 is a target tagged shot or
      locator by type and placement.
      Reconstruct rejects values that overflow their bit fields, and schema 1
      and 2 input.
    • Dungeon — the actuator catalog adds the types KKDF2 leaves blank and
      the word-1 parameters it misses, from SKWINSPX's handlers
      (ParamClass::PartyFacing, ParamClass::CreatureFilter,
      ParamClass::Direction), including wall 0x29.
    • Dungeon — TileAttr follows SKWINSPX's tile flags (breaking): walls
      carry a per-side random_ornaments mask, pits open / hidden /
      imaginary, stairs north_south / up, doors gain north_south,
      teleporters open / haze, trick walls open / random_ornaments /
      imaginary.
    • Dungeon — lossless JSON schema 2: the tile-data block and the
      trailing checksum are rebuilt from the map bodies, so edits reload with
      a valid checksum. tile_block_seed is now present only for files the
      bodies do not rebuild; the stored checksum only when it was wrong.
      Schema 1 dumps still reconstruct.

    Removed

    • Saves — records::CREATURE_GIDX_ALT_TABLE (breaking); use
      dm2_graphics::creature_ai_is_static.

    Fixed

    • Saves — animated item icons play at the game's measured 134 ms tick
      (TICK_MS, now dm2_graphics::GAME_TICK_MS), not 320 ms.
    Downloads