-
v0.3.0
StableAll checks were successfulCI / msrv (1.90) (pull_request) Successful in 45sCI / audit (pull_request) Successful in 24sCI / stable (pull_request) Successful in 1m52sCI / python bindings (3.11) (pull_request) Successful in 44sCI / msrv (1.90) (push) Successful in 47sCI / audit (push) Successful in 23sCI / stable (push) Successful in 1m54sCI / python bindings (3.11) (push) Successful in 46sRelease / wheel + c bundle (manylinux x86_64) (push) Successful in 1m52sRelease / build (cli + windows wheel + c bundle) (push) Successful in 2m42sRelease / publish (push) Successful in 13sRelease / publish (crates.io) (push) Successful in 1m31sRelease / publish (npm) (push) Successful in 1m36sRelease / publish (PyPI) (push) Successful in 17sreleased this
2026-10-26 22:46:05 +01:00 | 132 commits to main since this releaseAdded
- wasm —
resforkListJsonandresforkExtract, at parity with FFI and
Python. - Saves / wasm / FFI / Python — containers nested in containers are
listed and edited in place:<loc>/in:<index>locations
(ContainerLocation) forsaveContainerJson,saveContainerPutand
saveContainerTake. - Saves / wasm / FFI / Python — champion field limits per save variant,
read off the encoding masks (ChampionLayout::limits, wasm
saveFieldLimitsJson): range, step and display scale (Mac stamina ×10). - Saves / Graphics / wasm / FFI / Python — skill helpers: level from
experience, the least experience for a level
(hero::skill_level,hero::experience_for_level), and the inventory
panel's skill titles (Archive::skill_title), runes included (wasm
skillLevel,skillExperienceForLevel,skillTitleJson). - Saves / Graphics / wasm — item names come with a
glyph_namegiving
rune n the private-use code point U+E000 + n
(Archive::item_glyph_name); the npm package ships a matching vector
rune font (dm2-runes.css,dm2-runes.woff2). - Saves / wasm / FFI / Python — item catalog:
item_create::item_catalog
(wasmitemCatalogJson,dm2_item_catalog_json,dm2_tools.item_catalog)
lists every kind item creation accepts, with name, icon and settable
field ranges. - Saves / wasm — inventory item fields carry a
settableflag: the
fields item creation accepts. - Saves / wasm — inventory items carry a
movableflag;falsefor
the maps move, copy and clear refuse. - FFI / Python — the wasm save editing exports: full save JSON,
inventory read / move / copy / clear, container contents / put / take
and item creation (dm2_save_*_json,dm2_tools.save_*). - Saves / wasm — item creation:
SaveFileFull::create_item/
SaveDump::create_item(wasmsaveItemCreate) put a new item, given as
a category and named fields, at an empty held location. Non-persistent
fields, out-of-range values and unknown item kinds are refused; each item
grows its type's record pool, capped at 1024. - Saves / wasm — held container contents:
RecordStream::container_contents
/put_in_container/take_from_containerand
inventory_view::container_view(wasmsaveContainerJson,
saveContainerPut,saveContainerTake), under the game's rules: 8
items per chest or bag, no nesting except money boxes, arrows only in
quivers, coins and gems only in money boxes, which give coins back one
at a time. Money box contents reportchargeas persistent and
importantas not. - Saves / wasm — inventory edits on a full dump:
RecordStream::move_item/copy_item/clear_itembetween any two
slots or the cursor, across champions (wasmsaveInventoryMove,
saveInventoryCopy,saveInventoryClear; locations parse as
ItemLocation,cursoror<hero>:<slot>). Records move verbatim, so
chests keep their contents; occupied destinations and map containers
are refused. - Graphics / saves / wasm — item names:
Archive::item_nameresolves
an item's GDAT class to the game's name;InventoryViewitems carry
name(fallback"<category> #<cls2>") andicon, the class tuple of
the base icon forgraphicsDecodePng.saveInventoryJsonnow takes
graphics.datand a language (en,de,fr,jp). - Graphics —
Text::parse_plain/parse_with_flagsand
FeatureFlags::obfuscated_text(bit0x08): the DOS 0.9 Beta stores
dtText unobfuscated, so its 664 text records now decode. - Saves / wasm — inventory read model:
InventoryView(and wasm
saveInventoryJson, from asaveToJsonFulldump) lists every champion's
30 slots, empty ones included, plus the cursor item. Each item carries its
type, subtype, a container flag and its fields, each marked persistent or
dropped on re-encode. - Saves — champion experience:
Champion::experience/
set_experiencefor the 20 skill counters (Skillorder), and
skill_levelwith the engine's level formula (item bonuses excluded:
they are not saved). The save JSON gainsskills
(name,experience,level; onlyexperienceis applied on rebuild).
Values the save cannot store (not a multiple of 32, or ≥ 2²⁹) are
rejected. - Saves — the save JSON (and so
saveToJson) now carries each champion's
seven abilities (cur/max/enhanced),herotypeandench_aura,
re-applied on rebuild like the HP/stamina/mana fields.schema_versionis
now 2; version-1 dumps no longer load. - wasm —
saveToJsonFull/saveFromJsonFulldump and rebuild a save
with its record stream decoded, given the save'sdungeon.datand
graphics.dat. A dungeon from another port or version is rejected, as is a
save whose record stream does not fully decode. Adds about 14 KB gzipped to
the wasm module. - Release —
cargo release <version>now does the mechanical half of a
release: the workspace version, every inter-crate requirement,Cargo.lock,
the Python package's version, and the changelog's heading and link-reference
surgery. It is configured not to tag, push or publish, so tagging stays the
deliberate act that triggers the workflow. Changelog entries are still
written by hand. - Release — the tag now publishes to crates.io, npm and PyPI. Three jobs
(publish-crates,publish-npm,publish-pypi) run after the Forgejo
release, each gated on it, and each skipping a version already present on
its registry so a half-failed run can be re-run. PyPI receives the same
wheels the release carries, and npm's package is built by the same
build-npm.shused locally. None of the three registries accepts a
self-hosted Forgejo as an OIDC trusted publisher, so each job carries a
scoped long-lived token from the repository secrets.
Changed
- Dependencies — base64 0.23, sha2 0.11, comfy-table 8, xmrs and
xmrsplayer 0.15; CI uses uv 0.13.5 andactions/checkoutv7.
Fixed
- Saves / wasm — bones read
<champion>BONES, the champion their
statepicks, instead of{hero_name}BONES; past the party,BONES. - Saves — a field-driven rebuild re-pads the bitstream for its new
length: an edit that grew a save, rebuilt and reloaded, then reverted no
longer leaves an extra trailing byte. - Saves — held maps are named as maps (MAGIC MAP, SCOUT MAP, MINION
MAP), not as the chest, bag or money box sharing their subtype. - Graphics —
Archive::item_namespells rune glyphs as rune names
(Ra Sar SHIELD, notvw SHIELD). - CLI —
dm2 save inventory --move/--copykeep chest contents
and class,--move x=xno longer deletes the item, and occupied
destinations and map containers are refused instead of overwritten or
desynced. - wasm —
build-npm.sh --devfailed: the script always passed
--release, which wasm-pack rejects next to another profile. It now
passes--releaseonly when no profile flag is given. The README
documents the tools wasm-pack downloads and how to build offline. - Saves — DOS Beta champions are read and written with their own
layout (ChampionLayout::DosBeta) instead of the retail one: abilities,
herotypeandench_aurapreviously hit the wrong bytes, and
herotypeedits were silently dropped. Applies to the library, the save
JSON anddm2 save champion. On Beta,enhanced_abilityisNone
(JSONnull) and setting it is an error. API:enhanced_abilityreturns
Option<u8>,set_enhanced_abilityreturnsbool, and
decode_champions_with_maskis replaced bydecode_champions_with_layout.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- wasm —