RimWorld
Elite Bionics Framework
Dit topic is gesloten
Found A Bug
Exception ticking Yakov (at (108, 0, 209)): System.NullReferenceException: Object reference not set to an instance of an object
at EliteBionicsFramework.Util.ToolFinderUtils.ToolIsOriginalToolOfPawn (Verse.Tool tool, Verse.Pawn pawn) [0x00000] in <cb0f2144001c4700a8b9523e277ee264>:0
at EliteBionicsFramework.Patches.PostFix_VerbProperties_GetDamageFactorFor.PostFix (System.Single& __result, Verse.Tool tool, Verse.Pawn attacker, Verse.HediffComp_VerbGiver hediffCompSource) [0x0000e] in <cb0f2144001c4700a8b9523e277ee264>:0
at (wrapper dynamic-method) Verse.VerbProperties.DMD<DMD<GetDamageFactorFor_Patch1>?832119936::GetDamageFactorFor_Patch1>(Verse.VerbProperties,Verse.Tool,Verse.Pawn,Verse.HediffComp_VerbGiver)
at Verse.VerbProperties.GetDamageFactorFor (Verse.Verb ownerVerb, Verse.Pawn attacker) [0x00033] in <8d0b3a569e0c4b80aa92d37ff9ce138c>:0
at Verse.Verb.IsStillUsableBy (Verse.Pawn pawn) [0x0001a] in <8d0b3a569e0c4b80aa92d37ff9ce138c>:0
at RimWorld.InteractionUtility.HasAnyVerbForSocialFight (Verse.Pawn p) [0x0002f] in <8d0b3a569e0c4b80aa92d37ff9ce138c>:0
at RimWorld.Pawn_InteractionsTracker.SocialFightChance (RimWorld.InteractionDef interaction, Verse.Pawn initiator) [0x00032] in <8d0b3a569e0c4b80aa92d37ff9ce138c>:0
at RimWorld.Pawn_InteractionsTracker.CheckSocialFightStart (RimWorld.InteractionDef interaction, Verse.Pawn initiator) [0x00030] in <8d0b3a569e0c4b80aa92d37ff9ce138c>:0
at (wrapper dynamic-method) RimWorld.Pawn_InteractionsTracker.DMD<DMD<TryInteractWith_Patch2>?-1391239552::TryInteractWith_Patch2>(RimWorld.Pawn_InteractionsTracker,Verse.Pawn,RimWorld.InteractionDef)
at RimWorld.Pawn_InteractionsTracker.TryInteractRandomly () [0x000d7] in <8d0b3a569e0c4b80aa92d37ff9ce138c>:0
at RimWorld.Pawn_InteractionsTracker.InteractionsTrackerTick () [0x000ac] in <8d0b3a569e0c4b80aa92d37ff9ce138c>:0
at (wrapper dynamic-method) Verse.Pawn.DMD<DMD<Tick_Patch2>?-2109959680::Tick_Patch2>(Verse.Pawn)
at Verse.TickList.Tick () [0x0015c] in <8d0b3a569e0c4b80aa92d37ff9ce138c>:0
Verse.Log:Error(String, Boolean)
Verse.TickList:Tick()
Verse.TickManager:DMD<DMD<DoSingleTick_Patch1>?-284496512::DoSingleTick_Patch1>(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:DMD<DMD<Update_Patch1>?1713809408::Update_Patch1>(Root_Play)
< >
1-15 van 17 reacties weergegeven
Vectorial1024  [ontwikkelaar] 9 apr 2020 om 5:30 
Sorry for the late reply, I somehow opted out of the mod notifications myself...

Still, thanks for reporting the bug! With the "tool replacement" feature being a WIP, there may be some bugs.
Vectorial1024  [ontwikkelaar] 18 apr 2020 om 3:15 
This hopefully is fixed in v2.1.0 beta 3, please try again.
hi, i just met bug that broke game

Exception filling window for RimWorld.Page_ConfigureStartingPawns: System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) Verse.HealthUtility.Verse.HealthUtility.GetPartConditionLabel_Patch0(intptr,Verse.Pawn,Verse.BodyPartRecord)
at (wrapper dynamic-method) RimWorld.HealthCardUtility.RimWorld.HealthCardUtility.DrawHediffRow_Patch0(UnityEngine.Rect,Verse.Pawn,System.Collections.Generic.IEnumerable`1<Verse.Hediff>,single&)
at RimWorld.HealthCardUtility.DrawHediffListing (UnityEngine.Rect rect, Verse.Pawn pawn, System.Boolean showBloodLoss) [0x000ef] in <ca976c8abc6e45028f2c77bb2bf37153>:0
at RimWorld.Page_ConfigureStartingPawns.DrawPortraitArea (UnityEngine.Rect rect) [0x00106] in <ca976c8abc6e45028f2c77bb2bf37153>:0
at (wrapper dynamic-method) RimWorld.Page_ConfigureStartingPawns.RimWorld.Page_ConfigureStartingPawns.DoWindowContents_Patch1(RimWorld.Page_ConfigureStartingPawns,UnityEngine.Rect)
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <ca976c8abc6e45028f2c77bb2bf37153>:0
Verse.Log:Error(String, Boolean)
Verse.Window:InnerWindowOnGUI(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)


playing on x32 version of the game, it appears like empty heddif window in character health bar, and debug log starts spaming with this mesages
and log also displays this


Mouse position stack is not empty. There were more calls to BeginScrollView than EndScrollView. Fixing.
Verse.Log:Error(String, Boolean)
Verse.Widgets:EnsureMousePositionStackEmpty()
Verse.Root:Verse.Root.Update_Patch1(Root)
Verse.Root_Entry:Update()

if i disable this mod this errors desapear
Laatst bewerkt door eUndun; 21 dec 2020 om 10:12
Vectorial1024  [ontwikkelaar] 21 dec 2020 om 20:37 
Origineel geplaatst door eUndun:
and log also displays this


Mouse position stack is not empty. There were more calls to BeginScrollView than EndScrollView. Fixing.
Verse.Log:Error(String, Boolean)
Verse.Widgets:EnsureMousePositionStackEmpty()
Verse.Root:Verse.Root.Update_Patch1(Root)
Verse.Root_Entry:Update()

if i disable this mod this errors desapear

This error is a derived error from your above error, and is not really relevant, so Imma skip it.



Origineel geplaatst door eUndun:
hi, i just met bug that broke game

Exception filling window for RimWorld.Page_ConfigureStartingPawns: System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) Verse.HealthUtility.Verse.HealthUtility.GetPartConditionLabel_Patch0(intptr,Verse.Pawn,Verse.BodyPartRecord)
at (wrapper dynamic-method) RimWorld.HealthCardUtility.RimWorld.HealthCardUtility.DrawHediffRow_Patch0(UnityEngine.Rect,Verse.Pawn,System.Collections.Generic.IEnumerable`1<Verse.Hediff>,single&)
at RimWorld.HealthCardUtility.DrawHediffListing (UnityEngine.Rect rect, Verse.Pawn pawn, System.Boolean showBloodLoss) [0x000ef] in <ca976c8abc6e45028f2c77bb2bf37153>:0
at RimWorld.Page_ConfigureStartingPawns.DrawPortraitArea (UnityEngine.Rect rect) [0x00106] in <ca976c8abc6e45028f2c77bb2bf37153>:0
at (wrapper dynamic-method) RimWorld.Page_ConfigureStartingPawns.RimWorld.Page_ConfigureStartingPawns.DoWindowContents_Patch1(RimWorld.Page_ConfigureStartingPawns,UnityEngine.Rect)
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <ca976c8abc6e45028f2c77bb2bf37153>:0
Verse.Log:Error(String, Boolean)
Verse.Window:InnerWindowOnGUI(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)


playing on x32 version of the game, it appears like empty heddif window in character health bar, and debug log starts spaming with this mesages

This is the main error. Thanks for reporting! Will check them later.

btw there is only x32/x86 version of RimWorld as far as I can tell.
Could you please fix the Metis werewolf and Cults tentacle limb issues as well? I really like this mod and using it in my weird technologically advanced cults with monstrosities but the errors make certain features unavailable.

Someone else posted in the comments about the tentacle limb error, I made a different thread about the Metis werewolf error, don't want to copy-paste here to avoid spam.
Vectorial1024  [ontwikkelaar] 28 dec 2020 om 18:48 
Origineel geplaatst door ruined your game:
Could you please fix the Metis werewolf and Cults tentacle limb issues as well? I really like this mod and using it in my weird technologically advanced cults with monstrosities but the errors make certain features unavailable.

Someone else posted in the comments about the tentacle limb error, I made a different thread about the Metis werewolf error, don't want to copy-paste here to avoid spam.
I've just released an update, hopefully the problem has gone away. Please check again!
Yes, both the issues are gone. Thank you so much for the update! :)
Hi! I've been having an odd error with this mod (it seems to delete UI buttons when a pawn with a lot of bionic parts is drafted), which is suprisingly similar to the one at the beginning of this thread.

Exception ticking Jewsh (at (133, 0, 92)): System.NullReferenceException: Object reference not set to an instance of an object
at EBF.Patches.PostFix_VerbProperties_GetDamageFactorFor.PostFix (System.Single& __result, Verse.Tool tool, Verse.Pawn attacker, Verse.HediffComp_VerbGiver hediffCompSource) [0x0004e] in <ad26e1e222284fa2a4b91d3ca09fc3b5>: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 <c36f9493c9844ddaa7fb5c788416098f>:0
at Verse.Verb.IsStillUsableBy (Verse.Pawn pawn) [0x0001a] in <c36f9493c9844ddaa7fb5c788416098f>:0
at RimWorld.InteractionUtility.HasAnyVerbForSocialFight (Verse.Pawn p) [0x0002f] in <c36f9493c9844ddaa7fb5c788416098f>:0
at (wrapper dynamic-method) RimWorld.Pawn_InteractionsTracker.RimWorld.Pawn_InteractionsTracker.SocialFightChance_Patch1(RimWorld.Pawn_InteractionsTracker,RimWorld.InteractionDef,Verse.Pawn)
at RimWorld.Pawn_InteractionsTracker.CheckSocialFightStart (RimWorld.InteractionDef interaction, Verse.Pawn initiator) [0x00030] in <c36f9493c9844ddaa7fb5c788416098f>:0
at (wrapper dynamic-method) RimWorld.Pawn_InteractionsTracker.RimWorld.Pawn_InteractionsTracker.TryInteractWith_Patch3(RimWorld.Pawn_InteractionsTracker,Verse.Pawn,RimWorld.InteractionDef)
at RimWorld.Pawn_InteractionsTracker.TryInteractRandomly () [0x000d7] in <c36f9493c9844ddaa7fb5c788416098f>:0
at (wrapper dynamic-method) RimWorld.Pawn_InteractionsTracker.RimWorld.Pawn_InteractionsTracker.InteractionsTrackerTick_Patch1(RimWorld.Pawn_InteractionsTracker)
at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch6(Verse.Pawn)
at DTimeControl.TCTickList.TickThing (Verse.Thing thing) [0x00032] in <60d5ee13bd6b49e0aad5eb8b68d8d984>:0
Verse.Log:Verse.Log.Error_Patch1(String, Boolean)
DTimeControl.TCTickList:TickThing(Thing)
DTimeControl.TCTickList:DoTick(Double, Boolean)
DTimeControl.TimeControlBase:TickManagerTick(TickManager, Boolean)
DTimeControl.Core_Patches.Patch_DoSingleTick_Prefix:Prefix(TickManager)
Verse.TickManager:Verse.TickManager.DoSingleTick_Patch4(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:Verse.Game.UpdatePlay_Patch2(Game)
Verse.Root_Play:Verse.Root_Play.Update_Patch1(Root_Play)


I *think* it is caused by an error with the Time Control mod (which comes pretty much entirely from 'hey, I see Time Control showing up a lot in this error report, that's probably indicative of something'. I'll be removing that mod from my mod list to see if that fixes things, and if so I'll say so here.
Vectorial1024  [ontwikkelaar] 4 jul 2021 om 0:16 
Hi all, it has been a long while. I have pushed an update that hopefully will remove most of the NullReferenceExceptions related to the attack power adjustor. Please have a look again.
Hadn't seen this error prior to today:

[V1024-EBF][ERR] Failed to apply Harmony patches for V1024.EBFramework. Exception was: HarmonyLib.HarmonyException: Patching exception in method virtual System.Void Verse.DamageWorker_Blunt::ApplySpecialEffectsToPart(Verse.Pawn pawn, System.Single totalDamage, Verse.DamageInfo dinfo, Verse.DamageResult result) ---> System.FormatException: Method virtual System.Void Verse.DamageWorker_Blunt::ApplySpecialEffectsToPart(Verse.Pawn pawn, System.Single totalDamage, Verse.DamageInfo dinfo, Verse.DamageResult result) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) Verse.DamageWorker_Blunt:Verse.DamageWorker_Blunt.ApplySpecialEffectsToPart_Patch0 (Verse.DamageWorker_Blunt,Verse.Pawn,single,Verse.DamageInfo,Verse.DamageWorker/DamageResult): IL_02b6: call 0x000000af


at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x0008c] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000bb] in <c38a8c3281a047488dac8c9d063b7abb>:0
--- End of inner exception stack trace ---
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0010f] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x00082] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HugsLib.ModBase.ApplyHarmonyPatches () [0x0009a] in <a56dbe2cf5184fe991f5fb736b3081b0>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
HugsLib.Utils.ModLogger:Error (string,object[])
HugsLib.ModBase:ApplyHarmonyPatches ()
HugsLib.HugsLibController:EnumerateChildMods (bool)
HugsLib.HugsLibController:LoadReloadInitialize ()
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 ()
Origineel geplaatst door Vectorial1024:
Opening up a new issue for this

https://github.com/Vectorial1024/EliteBionicsFramework/issues/13
I have the same bug, but my log is very slightly different. In my log, instead of

"HugsLib.HugsLibController:EnumerateChildMods (bool)
HugsLib.HugsLibController:LoadReloadInitialize ()"

I got

"(wrapper dynamic-method) HugsLib.HugsLibController:HugsLib.HugsLibController.EnumerateChildMods_Patch1 (HugsLib.HugsLibController,bool)
(wrapper dynamic-method) HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch1 (HugsLib.HugsLibController)"

No idea if it helps, but there you go.
Just today i'm starting to get this issue:
Error in static constructor of EliteBionicsFrameworkLegacy.Patches.QualityBionicsRemastered.EBF_QualityBionics_CollectTypes: System.TypeInitializationException: The type initializer for 'EliteBionicsFrameworkLegacy.Patches.QualityBionicsRemastered.EBF_QualityBionics_CollectTypes' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
[Ref 92395FC9]
<0x198abf2c950 + 0x00111> <unknown method>
--- End of inner exception stack trace ---
[Ref 90BB0A7A]
(wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00028] in <cb53cd4422904947932d33f561ad8d15>:0
- POSTFIX ChooseYourRecipe.patch: Void ChooseYourRecipe.StaticConstructorOnStartupUtilityPatch:Postfix()
- POSTFIX LunarFramework.Bootstrap: Void LunarFramework.Internal.Patches.Patch_Verse_StaticConstructorOnStartupUtility:CallAll_Postfix()
- POSTFIX PerformanceOptimizer.Main: Void PerformanceOptimizer.InitializeMod:Postfix()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.StaticConstructorOnStartupUtility.CallAll_Patch3 ()
Verse.PlayDataLoader/<>c:<DoPlayLoad>b__4_4 ()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Entry:Update ()
I don't have QualityBionics mod installed. Issue appeared after recent update.
< >
1-15 van 17 reacties weergegeven
Per pagina: 1530 50