RimWorld

RimWorld

Animal Simple Command
Scorpio Sep 12, 2021 @ 12:13pm
Bug latest patch
something broke this mod with the new update

Exception ticking Wolf_Arctic141348 (at (457, 0, 272)): System.ArgumentNullException: Value cannot be null.
Parameter name: key
at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch3(Verse.Pawn)
at (wrapper dynamic-method) Verse.TickList.Verse.TickList.Tick_Patch0(Verse.TickList)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
(wrapper dynamic-method) Verse.TickList:Verse.TickList.Tick_Patch0 (Verse.TickList)
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch5 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
(wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch0 (Verse.Root_Play)

https://gist.github.com/98aceb9697025dcd9603a5508ba92ef3
Last edited by Scorpio; Sep 12, 2021 @ 12:14pm
< >
Showing 1-2 of 2 comments
tanyfilina Sep 14, 2021 @ 8:38am 
I have another error, I'll leave it here in case if it can help

Tried to use an uninitialized DefOf of type KeyBindingDefOf. DefOfs are initialized right after all defs all loaded. Uninitialized DefOfs will return only nulls. (hint: don't use DefOfs as default field values in Defs, try to resolve them in ResolveReferences() instead) Debug info: DirectXmlToObject is currently instantiating an object of type AnimalSimpleCommand.ASC_CompProperties_Stay
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Warning (string)
RimWorld.DefOfHelper:EnsureInitializedInCtor (System.Type)
RimWorld.KeyBindingDefOf:.cctor ()
AnimalSimpleCommand.ASC_CompProperties_Base:.ctor ()
AnimalSimpleCommand.ASC_CompProperties_Stay:.ctor ()
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
System.RuntimeType:CreateInstanceMono (bool)
System.RuntimeType:CreateInstanceSlow (bool,bool,bool,System.Threading.StackCrawlMark&)
System.RuntimeType:CreateInstanceDefaultCtor (bool,bool,bool,System.Threading.StackCrawlMark&)
System.Activator:CreateInstance (System.Type,bool)
System.Activator:CreateInstance (System.Type)
Verse.DirectXmlToObject:ObjectFromXml<Verse.CompProperties> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ListFromXml<Verse.CompProperties> (System.Xml.XmlNode)
Verse.DirectXmlToObject:ListFromXmlReflection<Verse.CompProperties> (System.Xml.XmlNode)
Verse.DirectXmlToObject:ObjectFromXml<System.Collections.Generic.List`1<Verse.CompProperties>> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXmlReflection<System.Collections.Generic.List`1<Verse.CompProperties>> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXml<Verse.ThingDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXmlReflection<Verse.ThingDef> (System.Xml.XmlNode,bool)
(wrapper dynamic-method) Verse.DirectXmlLoader:Verse.DirectXmlLoader.DefFromNode_Patch1 (System.Xml.XmlNode,Verse.LoadableXmlAsset)
Verse.LoadedModManager:ParseAndProcessXML (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>)
Verse.LoadedModManager:LoadAllActiveMods ()
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>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 ()
Dester Dec 5, 2022 @ 6:25pm 
The move command is not working on animals for a game which has playing for even 15 minutes. I am using the setting which forces the animal to be trained,,, so hopefully that will help identify and help you fix the bug.
< >
Showing 1-2 of 2 comments
Per page: 1530 50