saves: expand {hero_name} in champion bones names #360
Labels
No labels
area/ci-release
area/cli
area/docs
area/dungeon
area/ftl
area/graphics
area/gui
area/music
area/saves
area/tooling
port/amiga
port/dos
port/fm-towns
port/mac
port/pc98
port/sega-cd
priority/high
priority/low
priority/medium
type/bug
type/chore
type/docs
type/feature
type/research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jqueuniet/dm2-tools#360
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 miscstate(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 bystate.name1alone?), separator beforeBONES, and howstatemaps to party slots.statepoints past the party: a name without the macro.Acceptance
state= n reads back named after champion n.Found while building jqueuniet/dm2-web-editor#15.