RW-NodeTree / RW_ModularizationWeapon

Apache License 2.0
2 stars 0 forks source link

Latest Update errors on Save Load #3

Closed TheLoneTec closed 1 year ago

TheLoneTec commented 1 year ago

It happens with just bare minimum mods too. But here is my hugslib log anyway.

https://gist.github.com/HugsLibRecordKeeper/47d3acb0151dac54586fb091f41ea7b9

And here are the 2 main errors.

You need to provide working lists for the keys and values in order to be able to load such dictionary. label=targetPartsWithId UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string) Verse.Scribe_Collections:Look<string, Verse.LocalTargetInfo> (System.Collections.Generic.Dictionary2<string, Verse.LocalTargetInfo>&,string,Verse.LookMode,Verse.LookMode) RW_ModularizationWeapon.CompModularizationWeapon:PostExposeData () (wrapper dynamic-method) Verse.ThingWithComps:Verse.ThingWithComps.ExposeData_Patch3 (Verse.ThingWithComps) Verse.ScribeExtractor:SaveableFromNode<Verse.Thing> (System.Xml.XmlNode,object[]) Verse.Scribe_Deep:Look<Verse.Thing> (Verse.Thing&,bool,string,object[]) Verse.Scribe_Deep:Look<Verse.Thing> (Verse.Thing&,string,object[]) RW_NodeTree.NodeContainer:ExposeData () Verse.ScribeExtractor:SaveableFromNode<RW_NodeTree.NodeContainer> (System.Xml.XmlNode,object[]) Verse.Scribe_Deep:Look<RW_NodeTree.NodeContainer> (RW_NodeTree.NodeContainer&,bool,string,object[]) Verse.Scribe_Deep:Look<RW_NodeTree.NodeContainer> (RW_NodeTree.NodeContainer&,string,object[]) RW_NodeTree.CompChildNodeProccesser:PostExposeData () (wrapper dynamic-method) Verse.ThingWithComps:Verse.ThingWithComps.ExposeData_Patch3 (Verse.ThingWithComps) Verse.ScribeExtractor:SaveableFromNode<Verse.ThingWithComps> (System.Xml.XmlNode,object[]) Verse.Scribe_Collections:Look<Verse.ThingWithComps> (System.Collections.Generic.List1&,bool,string,Verse.LookMode,object[]) Verse.ThingOwner1<Verse.ThingWithComps>:ExposeData () Verse.ScribeExtractor:SaveableFromNode<Verse.ThingOwner1> (System.Xml.XmlNode,object[]) Verse.Scribe_Deep:Look<Verse.ThingOwner1<Verse.ThingWithComps>> (Verse.ThingOwner1&,bool,string,object[]) Verse.Scribe_Deep:Look<Verse.ThingOwner1<Verse.ThingWithComps>> (Verse.ThingOwner1&,string,object[]) Verse.Pawn_EquipmentTracker:ExposeData () Verse.ScribeExtractor:SaveableFromNode (System.Xml.XmlNode,object[]) Verse.Scribe_Deep:Look (Verse.Pawn_EquipmentTracker&,bool,string,object[]) Verse.Scribe_Deep:Look (Verse.Pawn_EquipmentTracker&,string,object[]) (wrapper dynamic-method) Verse.Pawn:Verse.Pawn.ExposeData_Patch2 (Verse.Pawn) Verse.ScribeExtractor:SaveableFromNode (System.Xml.XmlNode,object[]) Verse.Scribe_Collections:Look (System.Collections.Generic.List1<Verse.Pawn>&,bool,string,Verse.LookMode,object[]) Verse.Scribe_Collections:Look<Verse.Pawn> (System.Collections.Generic.HashSet1&,bool,string,Verse.LookMode) Verse.Scribe_Collections:Look (System.Collections.Generic.HashSet`1&,string,Verse.LookMode) RimWorld.Planet.WorldPawns:ExposeData () Verse.ScribeExtractor:SaveableFromNode (System.Xml.XmlNode,object[]) Verse.Scribe_Deep:Look (RimWorld.Planet.WorldPawns&,bool,string,object[]) Verse.Scribe_Deep:Look (RimWorld.Planet.WorldPawns&,string,object[]) RimWorld.Planet.World:ExposeComponents () (wrapper dynamic-method) RimWorld.Planet.WorldGenStep_Components:RimWorld.Planet.WorldGenStep_Components.GenerateFromScribe_Patch1 (RimWorld.Planet.WorldGenStep_Components,string) (wrapper dynamic-method) RimWorld.Planet.WorldGenerator:RimWorld.Planet.WorldGenerator.GenerateFromScribe_Patch3 (string) (wrapper dynamic-method) RimWorld.Planet.World:RimWorld.Planet.World.ExposeData_Patch1 (RimWorld.Planet.World) (wrapper dynamic-method) Verse.Game:Verse.Game.LoadGame_Patch10 (Verse.Game) (wrapper dynamic-method) Verse.SavedGameLoaderNow:Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow_Patch1 (string) Verse.Root_Play/<>c:b__1_1 () Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:b__27_0 () System.Threading.ThreadHelper:ThreadStart_Context (object) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) System.Threading.ThreadHelper:ThreadStart ()

and

Cannot fill dictionary because there are no keys. label=targetPartsWithId UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string) Verse.Scribe_Collections:Look<string, Verse.LocalTargetInfo> (System.Collections.Generic.Dictionary2<string, Verse.LocalTargetInfo>&,string,Verse.LookMode,Verse.LookMode,System.Collections.Generic.List1&,System.Collections.Generic.List1<Verse.LocalTargetInfo>&,bool) Verse.Scribe_Collections:Look<string, Verse.LocalTargetInfo> (System.Collections.Generic.Dictionary2<string, Verse.LocalTargetInfo>&,string,Verse.LookMode,Verse.LookMode) RW_ModularizationWeapon.CompModularizationWeapon:PostExposeData () (wrapper dynamic-method) Verse.ThingWithComps:Verse.ThingWithComps.ExposeData_Patch3 (Verse.ThingWithComps) (wrapper dynamic-method) Verse.CrossRefHandler:Verse.CrossRefHandler.ResolveAllCrossReferences_Patch1 (Verse.CrossRefHandler) (wrapper dynamic-method) Verse.ScribeLoader:Verse.ScribeLoader.FinalizeLoading_Patch1 (Verse.ScribeLoader) (wrapper dynamic-method) Verse.Game:Verse.Game.LoadGame_Patch10 (Verse.Game) (wrapper dynamic-method) Verse.SavedGameLoaderNow:Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow_Patch1 (string) Verse.Root_Play/<>c:b__1_1 () Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:b__27_0 () System.Threading.ThreadHelper:ThreadStart_Context (object) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) System.Threading.ThreadHelper:ThreadStart ()

Cn-mjt44 commented 1 year ago

This is a loading probram of the save of old version mod to new version. I removed some unused data, that make this loading in different orders. So is not bugs if this is not append after you save and load.

Cn-mjt44 commented 1 year ago

OK, I found it, thanks.

TheLoneTec commented 1 year ago

yup, was fixed, thanks!