Loading a save empties every auto-assigned tank on a craft that has a fuel line

Laurens

New Member
Messages
7
Reaction score
10

Game Version​

2026.11.16.5901

Operating System​

Windows 11 Home (10.0.26300)

What Happened​

After loading a save, a craft that has at least one fuel line comes back with every automatically assigned tank empty. My station had 3 fuel lines and 143 tanks holding 591,720 kg of propellant; after the load all 143 tanks hold nothing. In the saved universe.xml the craft's TankData elements have no Mole children at all. Craft without fuel lines in the same save are unaffected.

What Was Expected​

Tank contents after loading should match what was saved, whether or not the craft has fuel lines.

Reproduction Steps​

  1. Start the game with only Core enabled.
  2. Have a save containing a craft with at least one fuel line and propellant in its tanks (attached: TankTest).
  3. Open the console and run load TankTest.
  4. Look at the tanks on "RCS Tanker Deux", or run save TankTestOut and compare the two universe.xml files.

Reproduction Rate​

Always. 3 out of 3 loads of the save emptied the craft. A control copy of the same save with only the three FuelLink lines deleted loaded with all 591,720 kg intact.

Additional Info​

  • Save File: TankTest.zip (before) and TankTestOut.zip (after) attached
  • Other Notes:
    • Reproduced with KSA.exe started directly, no mod loader, only Core enabled.
    • It affects every non-manually-assigned tank on the craft, not only the tanks the fuel lines connect.
    • Likely cause, from reading the code and not confirmed: Vehicle.DeserializeSave restores tank contents and then calls FuelLinks.ApplySaveData. With at least one link this reaches PartTree.ReconfigureTanks (via MarkResourceGraphsDirty and ResetCachesAndReconfigureTanks), which calls tank.Assign(PickAutoMix(tank)) on every non-manual tank. The resource managers are not built yet at that point, so PickAutoMix finds no consumers and returns null, and Tank.Assign(null) calls RemoveAllMoles. AssignUnsavedTanks then skips the tanks because HasSavedContents is true. ApplyTankAssignments and AssignUnsavedTanks call EnsureResourceManagersBuilt first; this path does not.
 

Attachments

Upvote 1
Back
Top