feat: SaveGame party position #485
No reviewers
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!485
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/483-party-position"
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?
Closes #483.
SaveGame.partyPosition()→{map, x, y, dir}andsetPartyPosition(map, x, y, dir)(wasm, FFI, Python).0x1c) and formation cell (0x1d);set_party_positionnow turns both as an in-game turn does (skprojectROTATE_SQUAD). Fixes the flipped ranks the oracle showed; the CLI warning and the doc caveat are gone.SaveDump::set_party_positionchecks the live dungeon (#482) and refuses walls, map exits, closed doors and trick walls, open pits (the engine's step rule), stairs, open teleporters, and any creature (the not-solid flag lives in the executable). The CLI path (SaveFileFull) keeps bounds checks only.In-game check pending: DOS
sksave0turned west → east in place.Known gaps: Mac dump path untested (the turn is per byte); binding args wrap when out of range, as the
level_*ones do; the Python README omits these and #482's methods.