saves: expand {hero_name} in champion bones names #360

Closed
opened 2026-10-25 17:56:18 +01:00 by jqueuniet · 0 comments
Owner

Champion bones show the raw name template: {hero_name}BONES.

Bones are misc #0 (GDAT (0x15, 0)); their name starts with the {hero_name} macro, and misc state (bits 15:14) holds the champion they belong to (records/misc.rs). The engine names them after that champion so remains can be told apart for resurrection.

Scope

  • saveInventoryJson / saveContainerJson (and the CLI) expand {hero_name} from the save's champion named by state.
  • Confirm from the engine source: which name field (name1 alone?), separator before BONES, and how state maps to party slots.
  • Fallback when state points past the party: a name without the macro.

Acceptance

  • A bones item created with state = n reads back named after champion n.

Found while building jqueuniet/dm2-web-editor#15.

Champion bones show the raw name template: `{hero_name}BONES`. Bones are misc #0 (GDAT `(0x15, 0)`); their name starts with the `{hero_name}` macro, and misc `state` (bits 15:14) holds the champion they belong to (`records/misc.rs`). The engine names them after that champion so remains can be told apart for resurrection. ## Scope - `saveInventoryJson` / `saveContainerJson` (and the CLI) expand `{hero_name}` from the save's champion named by `state`. - Confirm from the engine source: which name field (`name1` alone?), separator before `BONES`, and how `state` maps to party slots. - Fallback when `state` points past the party: a name without the macro. ## Acceptance - A bones item created with `state` = n reads back named after champion n. Found while building jqueuniet/dm2-web-editor#15.
jqueuniet added this to the dm2-tools project 2026-10-25 22:47:11 +01:00
Sign in to join this conversation.
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#360
No description provided.