5949: The saved Rocket loses control after an in-process system switch

Maxi

Member
Messages
216
Reaction score
167
(bug found by me, analyzed and post written by both me and llms)

Game Version
v2026.11.25.5949. Only Core loaded in both menu tests. StarMap 0.5.4 provided isolated profiles. The game and save were unmodified apart from the display name of the attached save.

Operating System
Windows 10 Pro x64 (build 19045), NVIDIA GeForce RTX 5080, driver 617.14. Tested the system switch at 1280 x 720 with texture streaming enabled and at 3840 x 2160 with it disabled.

What Happened
Loading a Solar System save from Earth and Moon switches systems in the same process and returns to flight with the camera still following Rocket. The HUD says "Control not active for the followed vehicle", the controls are disabled and the staging panel shows 0 m/s total delta-v. Pressing R no longer toggles the visible RCS state. The simulation continues to run.

What Was Expected
After the save loads, the game follows and controls the Rocket from the save, as it does when loading the same save within Solar System.

Reproduction Steps
  1. Extract the Sol System Switch folder from ksa-5949-sol-system-switch.zip into the profile's saves folder. Start Earth and Moon (SolLite) with the default stock Rocket in Orbit view and only Core loaded.
  2. Press R to confirm that the RCS indicator switches state. Press it again to restore the initial state.
  3. Press F7, double-click Sol System Switch and confirm. The System column shows Solar System in yellow before the switch. Wait until the saved flight view returns.
  4. Press R again. The indicator stays disabled, the inactive-control warning remains and the staging panel shows 0 m/s total delta-v.
Reproduction Rate
2 of 2 menu runs reproduced the control loss, once with texture streaming on and once with it off. Both runs switched from SolLite to Sol in the same process and shut down normally after testing. In a control run, reloading the identical save from the menu while already in Sol kept control on the saved Rocket and R worked.

Workaround
Press F11 to open Universe Manifest, expand Earth if needed, and double-click Rocket under Earth. Close the manifest. In both runs the warning disappeared, the staging panel returned to about 14.99 km/s total delta-v, and R toggled RCS again. There was no need to load the save again.

Additional Info
Attachments are the exact tested save ksa-5949-sol-system-switch.zip and an excerpt from a separate instrumented run, stale-vehicle-control-forum.txt. The menu runs above used only Core and the standard Save/Load UI. The separate diagnostic plug-in provided exact object identities for the sequence below.

Technical Analysis (decompiled 5949 and separate diagnostic trace)
  1. SaveSystemSwap.OnFrame calls Program.SwapSystem before invoking the deferred save callback. During the switch, Universe.OnLoaded queues a control event with a reference to the temporary startup Rocket in the new system (object #4 in the trace).
  2. The callback runs UncompressedSave.ApplyLoaded. Universe.DeserializeSave disposes the temporary Rocket and restores the saved Rocket (object #6). The camera and control both initially point to #6. The queued event still points to #4.
  3. At the next InputEvents.ApplyInputEvents drain, VehicleResourcesChangeData.Apply sets Program.ControlledVehicle to #4. The camera remains on #6. Both objects have the ID Rocket, so the log line Controlling 'Rocket' alone cannot tell which object received control. The diagnostic still found the disposed reference after 181 rendered frames.
  4. The Manifest double-click follows the live Rocket again. UniverseManifest calls Camera.SetFollow, which also updates Program.ControlledVehicle.
Suggested Fix
Invalidate the queued startup control event when the save replaces its vehicle, or validate that the target is still the live registered instance before applying the control event. Preserve legitimate control commands for a live vehicle and unrelated queued resource operations. A regression check should assert that the saved Rocket remains controlled after the next input drain even when the temporary Rocket has the same ID.

Related Thread
Texture upload crash during an early system switch uses the same save and system pair. The control loss here occurred after successful load with the game still running, in both texture streaming configurations.
 

Attachments

Upvote 1
Back
Top