RimWorld

RimWorld

Elite Bionics Framework
Wuldahfel 18 Dec, 2020 @ 11:14pm
Rim of Madness: Werewolves mod bug with the Metis form
Whenever a Metis werewolf transforms on a full moon, I get this red error constantly:


Exception in Verse.AI.ThinkNode_Priority TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object
at EBF.Util.ToolFinderUtils.ToolsAreComparable (Verse.Tool a, Verse.Tool b) [0x00006] in <cef0e940f64a411795f351cb45a0ff75>:0
at EBF.Util.ToolFinderUtils.FindCorrespondingOriginalToolInBaseBody (Verse.Tool attackingTool, Verse.Pawn attacker, Verse.BodyPartRecord attackingPart) [0x00017] in <cef0e940f64a411795f351cb45a0ff75>:0
at EBF.Util.ToolPowerAdjuster.CalculatePowerAdjustmentDueToToolUpgrade (Verse.Pawn attacker, Verse.BodyPartRecord attackingBodyPart, Verse.Tool attackingTool, System.Int32& linearAdjustment, System.Single& scalingAdjustment) [0x00015] in <cef0e940f64a411795f351cb45a0ff75>:0
at EBF.Patches.PostFix_VerbProperties_GetDamageFactorFor.PostFix (System.Single& __result, Verse.Tool tool, Verse.Pawn attacker, Verse.HediffComp_VerbGiver hediffCompSource) [0x000b4] in <cef0e940f64a411795f351cb45a0ff75>:0
at (wrapper dynamic-method) Verse.VerbProperties.Verse.VerbProperties.GetDamageFactorFor_Patch1(Verse.VerbProperties,Verse.Tool,Verse.Pawn,Verse.HediffComp_VerbGiver)
at Verse.VerbProperties.GetDamageFactorFor (Verse.Verb ownerVerb, Verse.Pawn attacker) [0x00033] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.Verb.IsStillUsableBy (Verse.Pawn pawn) [0x0001a] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.Pawn_MeleeVerbs.<GetUpdatedAvailableVerbsList>g__IsUsableMeleeVerb|18_0 (Verse.Verb v) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.Pawn_MeleeVerbs.GetUpdatedAvailableVerbsList (System.Boolean terrainTools) [0x001a6] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.Pawn_MeleeVerbs.ChooseMeleeVerb (Verse.Thing target) [0x00018] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.Pawn_MeleeVerbs.TryGetMeleeVerb (Verse.Thing target) [0x00047] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.Pawn.TryGetAttackVerb (Verse.Thing target, System.Boolean allowManualCastWeapons) [0x00080] in <d72310b4d8f64d25aee502792b58549f>:0
at Werewolf.JobGiver_WerewolfHunt.TryGiveJob (Verse.Pawn pawn) [0x00001] in <1cd1c32277b046698f110ea550770f0e>:0
at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <d72310b4d8f64d25aee502792b58549f>:0
Verse.Log:Error(String, Boolean)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Conditional:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_SubtreesByTag:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.Pawn_JobTracker:DetermineNextJob(ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick()
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()



And even though the werewolf is supposed to go berserk and attack people, he just walks around and does nothing, although everyone is treating him like a hostile (pawns run away, animals attack) he doesn't attack. And when the "moon fury" is over even though it's not supposed to be over until he transforms back, he stays transformed, and I can't move him around even after drafting him (note that I have to press R to draft him because he doesn't have a menu next to his description when I click on him, like he's not one of my faction.)

When I try to make him attack something by right clicking after drafting him with R in Metis form, I get this red error:

Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
at EBF.Util.ToolFinderUtils.ToolsAreComparable (Verse.Tool a, Verse.Tool b) [0x00006] in <cef0e940f64a411795f351cb45a0ff75>:0
at EBF.Util.ToolFinderUtils.FindCorrespondingOriginalToolInBaseBody (Verse.Tool attackingTool, Verse.Pawn attacker, Verse.BodyPartRecord attackingPart) [0x00017] in <cef0e940f64a411795f351cb45a0ff75>:0
at EBF.Util.ToolPowerAdjuster.CalculatePowerAdjustmentDueToToolUpgrade (Verse.Pawn attacker, Verse.BodyPartRecord attackingBodyPart, Verse.Tool attackingTool, System.Int32& linearAdjustment, System.Single& scalingAdjustment) [0x00015] in <cef0e940f64a411795f351cb45a0ff75>:0
at EBF.Patches.PostFix_VerbProperties_GetDamageFactorFor.PostFix (System.Single& __result, Verse.Tool tool, Verse.Pawn attacker, Verse.HediffComp_VerbGiver hediffCompSource) [0x000b4] in <cef0e940f64a411795f351cb45a0ff75>:0
at (wrapper dynamic-method) Verse.VerbProperties.Verse.VerbProperties.GetDamageFactorFor_Patch1(Verse.VerbProperties,Verse.Tool,Verse.Pawn,Verse.HediffComp_VerbGiver)
at Verse.VerbProperties.GetDamageFactorFor (Verse.Verb ownerVerb, Verse.Pawn attacker) [0x00033] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.Verb.IsStillUsableBy (Verse.Pawn pawn) [0x0001a] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.Pawn_MeleeVerbs.<GetUpdatedAvailableVerbsList>g__IsUsableMeleeVerb|18_0 (Verse.Verb v) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.Pawn_MeleeVerbs.GetUpdatedAvailableVerbsList (System.Boolean terrainTools) [0x001a6] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.Pawn_MeleeVerbs.ChooseMeleeVerb (Verse.Thing target) [0x00018] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.Pawn_MeleeVerbs.TryGetMeleeVerb (Verse.Thing target) [0x00047] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.FloatMenuUtility.GetMeleeAttackAction (Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String& failStr) [0x0010b] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.FloatMenuMakerMap.AddDraftedOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts) [0x00182] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.FloatMenuMakerMap.ChoicesAtFor (UnityEngine.Vector3 clickPos, Verse.Pawn pawn) [0x00077] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x00056] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.Selector.HandleMapClicks () [0x000af] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.Selector.SelectorOnGUI () [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000d3] in <d72310b4d8f64d25aee502792b58549f>:0
at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
Verse.Log:Error(String, Boolean)
Verse.Root:Verse.Root.OnGUI_Patch1(Root)



The odd part is, the rest of the werewolf forms are fine, they work the way they should, it's only the Metis form that behaves strangely (kinda in character but I digress lol.) Also I ran this test with no mods installed other than Rim of Madness: Werewolves, EBF, and EdB Prepare Carefully (to give one of the pawns Metis trait.)
< >
Showing 1-1 of 1 comments
Vectorial1024  [developer] 28 Dec, 2020 @ 6:26pm 
Hi there, thanks for reporting this error! I'll be rolling out a test-fix later to see if it fixes this null-ref error.
< >
Showing 1-1 of 1 comments
Per page: 1530 50