Skip to content

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

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

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.

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 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
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