Skip to content

fix waypoint order save/load and giveOrder priority scale#77

Open
Goober5000 wants to merge 1 commit intoFSO-Scripters:masterfrom
Goober5000:saveloadx_waypoint
Open

fix waypoint order save/load and giveOrder priority scale#77
Goober5000 wants to merge 1 commit intoFSO-Scripters:masterfrom
Goober5000:saveloadx_waypoint

Conversation

@Goober5000
Copy link
Copy Markdown
Contributor

@Goober5000 Goober5000 commented Apr 18, 2026

Waypoint orders are now captured and restored via the WaypointList, WaypointIndex, and WaypointsInReverse virtvars, so ships resume from the specific waypoint they were heading to instead of losing the order on reload. Priority is also now divided by 100 before being passed to ship:giveOrder, which expects a 0.0-1.0 scale rather than the canonical 0-100 integer.

In draft pending testing. Tested by Shiv.

@Goober5000 Goober5000 added enhancement New feature or request fix A fix for a bug, mistake, or oversight labels Apr 18, 2026
@Goober5000 Goober5000 marked this pull request as draft April 18, 2026 05:08
Waypoint orders are now captured and restored via the WaypointList,
WaypointIndex, and WaypointsInReverse virtvars, so ships resume from
the specific waypoint they were heading to instead of losing the order
on reload. Priority is also now divided by 100 before being passed to
ship:giveOrder, which expects a 0.0-1.0 scale rather than the canonical
0-100 integer.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Goober5000 Goober5000 force-pushed the saveloadx_waypoint branch from 9272b6d to e1f797d Compare May 7, 2026 19:13
@Goober5000 Goober5000 marked this pull request as ready for review May 7, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request fix A fix for a bug, mistake, or oversight

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant