[A13] Savegame cant be saved anymore

Started by Perlex, June 05, 2016, 12:06:45 PM

Previous topic - Next topic

Perlex

Hey,
I have a savegame that cant be saved anymore. Everytime I try to save it it tells me that it was saved sucessfully but the savegame is nowhere to be found.
Autosaves also don't work with this save. I transfered the savegame to my laptop and tried to save the game but it didn't work either. I also started a new colony and was able to save it without a problem, so it's definitely the savegame that is somehow broken.

I think it has something to do with a caravan that isn't leaving. I sold them a prisoner that isn't capable of walking and now they just wait outside for the prisoner to come out.
One of them is already dead and the others are just sitting there while starving. I think this is another bug but maybe I'm missing something.

I'll attach the savefiles. The savegame is called "Colwyn".

[attachment deleted by admin - too old]

milon

For anyone else downloading: the relevant World is Kornephoros Zaurak.

I was able to reproduce the issue, and I can verify there are no mods requested by the save.

Steps I took:

  • Downloaded files, extracted appropriately
  • Loaded colony Colwyn
  • Played for a few minutes
  • Saved, got the "successfully saved" popup, quit to Main Menu
  • Loaded colony Colwyn, and it loaded the colony from step 2 (did not reflect any of my playing it)

I checked the file, and it is not Read Only on my system.  The output log (line 50) indicates saving failed.  Just prior to that is a "Could not resolve reference to object" error.  Output log:

Code (output_log.txt) Select
Initialize engine version: 4.6.3f1 (4753d8b6ef2b)
GfxDevice: creating device client; threaded=1
Direct3D:
    Version:  Direct3D 9.0c [igdumdx32.dll 8.15.10.2302]
    Renderer: Intel(R) G41 Express Chipset
    Vendor:   Intel
    VRAM:     879 MB (via DXGI)
    Caps:     Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=1 INTZ=1 RAWZ=0 NULL=0 RESZ=1 SlowINTZ=0
Begin MonoManager ReloadAssembly
Platform assembly: D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\UnityEngine.dll (this message is harmless)
Loading D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\UnityEngine.dll into Unity Child Domain
Platform assembly: D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\Assembly-CSharp-firstpass.dll (this message is harmless)
Loading D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\Assembly-CSharp-firstpass.dll into Unity Child Domain
Platform assembly: D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\Assembly-CSharp.dll (this message is harmless)
Loading D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\Assembly-CSharp.dll into Unity Child Domain
Platform assembly: D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\Assembly-UnityScript-firstpass.dll (this message is harmless)
Loading D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\Assembly-UnityScript-firstpass.dll into Unity Child Domain
Platform assembly: D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\UnityEngine.UI.dll (this message is harmless)
Loading D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\UnityEngine.UI.dll into Unity Child Domain
- Completed reload, in  0.701 seconds
<RI> Initializing input.

XInput1_3.dll not found. Trying XInput9_1_0.dll instead...
<RI> Input initialized.

desktop: 1280x1024 75Hz; virtual: 1280x1024 at 0,0
Platform assembly: D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\System.dll (this message is harmless)
Platform assembly: D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\System.Core.dll (this message is harmless)
Platform assembly: D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\System.Xml.dll (this message is harmless)
RimWorld 0.13.1135 rev816

(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)

Platform assembly: D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\System.Xml.Linq.dll (this message is harmless)
UnloadTime: 2.008921 ms
Unloading 4 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 24 unused Assets to reduce memory usage. Loaded Objects now: 5524.
Total: 24.201494 ms (FindLiveObjects: 0.686074 ms CreateObjectMapping: 0.332228 ms MarkObjects: 22.379925 ms  DeleteObjects: 0.150944 ms)

Platform assembly: D:\Tim\Games\RimWorld1135Win\RimWorld1135Win_Data\Managed\Boo.Lang.dll (this message is harmless)
Initializing map from file Colwyn with mods Core

(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)

Could not resolve reference to object with loadID Thing_Components783072 of type Verse.Thing. Was it compressed away, destroyed, had no ID number, or not saved/loaded right?

(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)

Exception while saving map: System.NullReferenceException: Object reference not set to an instance of an object

  at Verse.AI.Group.Lord.<ExposeData>m__45F (Verse.Thing x) [0x00000] in <filename unknown>:0

  at System.Collections.Generic.List`1[Verse.Thing].RemoveAll (System.Predicate`1 match) [0x00000] in <filename unknown>:0

  at Verse.AI.Group.Lord.ExposeData () [0x00000] in <filename unknown>:0

  at Verse.Scribe_Deep.LookDeep[Lord] (Verse.AI.Group.Lord& target, Boolean saveDestroyedThings, System.String label, System.Object[] ctorArgs) [0x00000] in <filename unknown>:0

  at Verse.Scribe_Collections.LookList[Lord] (System.Collections.Generic.List`1& list, Boolean saveDestroyedThings, System.String label, LookMode lookMode, System.Object[] ctorArgs) [0x00000] in <filename unknown>:0

  at Verse.Scribe_Collections.LookList[Lord] (System.Collections.Generic.List`1& list, System.String label, LookMode lookMode, System.Object[] ctorArgs) [0x00000] in <filename unknown>:0

  at Verse.AI.Group.LordManager.ExposeData () [0x00000] in <filename unknown>:0

  at Verse.Scribe_Deep.LookDeep[LordManager] (Verse.AI.Group.LordManager& target, Boolean saveDestroyedThings, System.String label, System.Object[] ctorArgs) [0x00000] in <filename unknown>:0

  at Verse.Scribe_Deep.LookDeep[LordManager] (Verse.AI.Group.LordManager& target, System.String label, System.Object[] ctorArgs) [0x00000] in <filename unknown>:0

  at Verse.Map.ExposeComponents () [0x00000] in <filename unknown>:0

  at Verse.Map.ExposeData () [0x00000] in <filename unknown>:0

  at Verse.Scribe_Deep.LookDeep[Map] (Verse.Map& target, Boolean saveDestroyedThings, System.String label, System.Object[] ctorArgs) [0x00000] in <filename unknown>:0

  at Verse.Scribe_Deep.LookDeep[Map] (Verse.Map& target, System.String label, System.Object[] ctorArgs) [0x00000] in <filename unknown>:0

  at Verse.GameDataSaver+<SaveGame>c__AnonStorey3CF.<>m__735 () [0x00000] in <filename unknown>:0

  at Verse.SafeSaver.Save (System.String path, System.String documentElementName, System.Action saveAction) [0x00000] in <filename unknown>:0

(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)

UnloadTime: 8.014068 ms
Unloading 2 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 18 unused Assets to reduce memory usage. Loaded Objects now: 16522.
Total: 495.052612 ms (FindLiveObjects: 4.099762 ms CreateObjectMapping: 5.290628 ms MarkObjects: 484.280579 ms  DeleteObjects: 0.218451 ms)

UnloadTime: 7.632916 ms
Unloading 1 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 8815 unused Assets to reduce memory usage. Loaded Objects now: 7664.
Total: 419.854004 ms (FindLiveObjects: 3.602936 ms CreateObjectMapping: 3.384105 ms MarkObjects: 380.354431 ms  DeleteObjects: 31.885229 ms)

Initializing map from file Colwyn with mods Core

(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)

Could not resolve reference to object with loadID Thing_Components783072 of type Verse.Thing. Was it compressed away, destroyed, had no ID number, or not saved/loaded right?

(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)




Quote from: Perlex on June 05, 2016, 12:06:45 PMI sold them a prisoner that isn't capable of walking and now they just wait outside for the prisoner to come out.
One of them is already dead and the others are just sitting there while starving. I think this is another bug but maybe I'm missing something.

That's definitely a bug.  A very exploitable bug.  But it shouldn't be the cause of the broken save file itself.

Related bugs:
1. Unreferenceable object (may be the "root" bug)
2. Saving fails, but reports as success
3a. You can sell a prisoner who can't walk and the caravan will simply wait forever & starve, rather than "rescue" or pick up their prisoner
3b. You can capture/rescue incap'd prisoners that have already been sold
3c. Upon recovering, a pawn that was sold and rescued and treated will wander off on their own (not recovered by the caravan they were sold to)

ison

Thanks milon and Perlex. All bugs are fixed.