RimWorld

RimWorld

RPG Traits+
Panthercat64 Aug 18, 2024 @ 4:20pm
1.5 bug: lost contact with pawn
Yeah there's a bug right now where pawn's lose the ability to be controlled due to their gizmos vanishing, this is just an error I'm putting up in case it helps it get fix and the error does't always actually happen:

System.ArgumentNullException: Value cannot be null.
Parameter name: key
[Ref 49F6D57A]
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.ModContentHolder`1[T].Get (System.String path) [0x00000] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.ContentFinder`1[T].Get (System.String itemPath, System.Boolean reportFailure) [0x00065] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at RPGTraits.Comp_RPGTraits.CreateVerbTargetCommand (RPGTraits.Verb_Trait verb) [0x00005] in <f6d5a13adaa84bb0a36f6ccd3226d794>:0
at RPGTraits.Comp_RPGTraits+<CompGetGizmosExtra>d__20.MoveNext () [0x00115] in <f6d5a13adaa84bb0a36f6ccd3226d794>:0
at Verse.ThingWithComps+<GetGizmos>d__35.MoveNext () [0x000f3] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at StyleChangeAnytime.AddOptionToThings+<Postfix>d__1.MoveNext () [0x00068] in <15e0a651fb22494885f428ae75409655>:0
at Verse.Pawn+<GetGizmos>d__301.MoveNext () [0x000f9] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- TRANSPILER rimworld.divineDerivative.romance: IEnumerable`1 BetterRomance.HarmonyPatches.Pawn_GetGizmos:Transpiler(IEnumerable`1 instructions)
at System.Linq.Enumerable+ConcatIterator`1[TSource].MoveNext () [0x0002b] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at AnimalBehaviours.Pawn_GetGizmos_Patch+<Postfix>d__1.MoveNext () [0x00133] in <2850e6c874d941c5bcff1392a7bae6c2>:0
at VFEEmpire.HarmonyPatches.Patch_HonorsMisc+<GetGizmos_Postfix>d__6.MoveNext () [0x00089] in <c5c7b6d244d44877896d77b800b6511c>:0
at AnimalTab.Patch_InjectTrainerSettingsGizmo+<Postfix>d__0.MoveNext () [0x0006b] in <88a6dd436e5145bdae37c18ae193814f>:0
at VFEAncients.HarmonyPatches.AbilityPatches+<AddGizmos>d__1.MoveNext () [0x0006b] in <55918b90ec774323acd1618830eff70a>:0
at PeteTimesSix.SimpleSidearms.Intercepts.Pawn_GetGizmos_Postfix+<Postfix>d__0.MoveNext () [0x00288] in <dc82cdb6b9334d83863d30bb0311d892>:0
at Tacticowl.Patch_PawnGetGizmos+<Postfix>d__1.MoveNext () [0x000a5] in <5285b5c175ff47acb4e14a42e2b368e4>:0
at BetterRomance.HarmonyPatches.Pawn_GetGizmos+<Postfix>d__1.MoveNext () [0x00093] in <ca7f0f42b98149128617d91cc863fe17>:0
at MVCF.PatchSets.PatchSet_Animals+<Pawn_GetGizmos_Postfix>d__1.MoveNext () [0x000ba] in <199f32c7d1454275a7b8e2821f5b1d59>:0
at <0x11109ca83b0 + 0x002c9> <unknown method>
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00018] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at PerformanceOptimizer.Optimization_InspectGizmoGrid_DrawInspectGizmoGridFor.GetGizmosFast (Verse.ISelectable selectable) [0x00015] in <5e8f6256eaf94cb4b7e74584595b5bd8>:0
at RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable`1[T] selectedObjects, Verse.Gizmo& mouseoverGizmo) [0x00101] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- TRANSPILER PerformanceOptimizer.Main: IEnumerable`1 PerformanceOptimizer.Optimization_InspectGizmoGrid_DrawInspectGizmoGridFor:InspectGizmoGrid_DrawInspectGizmoGridForTranspiler(IEnumerable`1 instructions)
- TRANSPILER fluffy.blueprints: IEnumerable`1 Blueprints.Patch_InspectGizmoGrid_DrawInspectGizmoGridFor:Transpiler(IEnumerable`1 _instructions) currentSelectable: null
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch5 (string)
Verse.Log:ErrorOnce (string,int)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0 (System.Collections.Generic.IEnumerable`1<object>,Verse.Gizmo&)
RimWorld.MainTabWindow_Inspect:DrawInspectGizmos ()
RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane)
RimWorld.MainTabWindow_Inspect:ExtraOnGUI ()
Verse.WindowStack:WindowStackOnGUI ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.UIRoot_Play.UIRootOnGUI_Patch4 (RimWorld.UIRoot_Play)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.OnGUI_Patch2 (Verse.Root)
< >
Showing 1-3 of 3 comments
Unforgiven Nov 17, 2024 @ 1:25pm 
I've been experiencing the same issue with the same error, here's how it looks on my end:

System.ArgumentNullException: Value cannot be null.
Parameter name: key
[Ref EB9E0F1D]
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.ModContentHolder`1[T].Get (System.String path) [0x00000] in <2a40c3593b334f29ac3cb3d32d652351>:0
at Verse.ContentFinder`1[T].Get (System.String itemPath, System.Boolean reportFailure) [0x0004d] in <2a40c3593b334f29ac3cb3d32d652351>:0
at RPGTraits.Comp_RPGTraits.CreateVerbTargetCommand (RPGTraits.Verb_Trait verb) [0x00005] in <f6d5a13adaa84bb0a36f6ccd3226d794>:0
at RPGTraits.Comp_RPGTraits+<CompGetGizmosExtra>d__20.MoveNext () [0x00115] in <f6d5a13adaa84bb0a36f6ccd3226d794>:0
at Verse.ThingWithComps+<GetGizmos>d__35.MoveNext () [0x000f3] in <2a40c3593b334f29ac3cb3d32d652351>:0
at Verse.Pawn+<GetGizmos>d__301.MoveNext () [0x000f9] in <2a40c3593b334f29ac3cb3d32d652351>:0
- TRANSPILER rimworld.divineDerivative.romance: IEnumerable`1 BetterRomance.HarmonyPatches.Pawn_GetGizmos:Transpiler(IEnumerable`1 instructions)
at AnimalBehaviours.Pawn_GetGizmos_Patch+<Postfix>d__1.MoveNext () [0x00142] in <fd5badff12414a0d9e2ec8e5c8f4ee50>:0
- TRANSPILER PerformanceOptimizer.Main: IEnumerable`1 PerformanceOptimizer.Optimization_FasterGetCompReplacement:Transpiler(IEnumerable`1 instructions, MethodBase method)
at BetterRomance.HarmonyPatches.Pawn_GetGizmos+<Postfix>d__1.MoveNext () [0x000ce] in <bdefeeac9a694fd98d230ba72b9612d9>:0
- TRANSPILER PerformanceOptimizer.Main: IEnumerable`1 PerformanceOptimizer.Optimization_FasterGetCompReplacement:Transpiler(IEnumerable`1 instructions, MethodBase method)
at <0x2827503ba90 + 0x002c9> <unknown method>
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00018] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at PerformanceOptimizer.Optimization_InspectGizmoGrid_DrawInspectGizmoGridFor.GetGizmosFast (Verse.ISelectable selectable) [0x00015] in <5e8f6256eaf94cb4b7e74584595b5bd8>:0
at RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable`1[T] selectedObjects, Verse.Gizmo& mouseoverGizmo) [0x000f7] in <2a40c3593b334f29ac3cb3d32d652351>:0
- TRANSPILER UnlimitedHugs.AllowTool: IEnumerable`1 AllowTool.Patches.InspectGizmoGrid_DrawInspectGizmoGridFor_Patch:ClearReverseDesignators(IEnumerable`1 instructions)
- TRANSPILER PerformanceOptimizer.Main: IEnumerable`1 PerformanceOptimizer.Optimization_InspectGizmoGrid_DrawInspectGizmoGridFor:InspectGizmoGrid_DrawInspectGizmoGridForTranspiler(IEnumerable`1 instructions) currentSelectable: null
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
FFG-46 Feb 3 @ 6:10am 
Same issue here. Shame to have to ditch this, one of my favorite mods. Worked perfectly fine for me in 1.4 last week, but 1.5 is a no-go.
Argyuile Apr 5 @ 12:00am 
Ya I just spent a couple hours tracking this down and I'm having the same issue. The pawn in question doesn't look like it has an RPG+ trait either at least it's not on their bio, but they do have the mental power visual so I'm not sure whats going on. I've used this mod before with 0 problems.


Hugs Lib error log link here https://gist.github.com/HugsLibRecordKeeper/7dcd25115e3d388c6a60bdb580f2b64a


My debugger log is below but it looks just like everyone else's

system.ArgumentNullException: Value cannot be null.
Parameter name: key
[Ref 16C595C1]
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.ModContentHolder`1[T].Get (System.String path) [0x00000] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.ContentFinder`1[T].Get (System.String itemPath, System.Boolean reportFailure) [0x0004d] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at RPGTraits.Comp_RPGTraits.CreateVerbTargetCommand (RPGTraits.Verb_Trait verb) [0x00005] in <f6d5a13adaa84bb0a36f6ccd3226d794>:0
at RPGTraits.Comp_RPGTraits+<CompGetGizmosExtra>d__20.MoveNext () [0x00115] in <f6d5a13adaa84bb0a36f6ccd3226d794>:0
at Verse.ThingWithComps+<GetGizmos>d__35.MoveNext () [0x000f3] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.Pawn+<GetGizmos>d__301.MoveNext () [0x000f6] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at System.Collections.Generic.List`1[T].InsertRange (System.Int32 index, System.Collections.Generic.IEnumerable`1[T] collection) [0x000db] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.List`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] collection) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable`1[T] selectedObjects, Verse.Gizmo& mouseoverGizmo) [0x000d9] in <630e2863bc9a4a3493f2eff01e3a9556>:0 currentSelectable: null
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Log:ErrorOnce (string,int)
RimWorld.InspectGizmoGrid:DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable`1<object>,Verse.Gizmo&)
RimWorld.MainTabWindow_Inspect:DrawInspectGizmos ()
RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane)
RimWorld.MainTabWindow_Inspect:ExtraOnGUI ()
Verse.WindowStack:WindowStackOnGUI ()
RimWorld.UIRoot_Play:UIRootOnGUI ()
Verse.Root:OnGUI ()
< >
Showing 1-3 of 3 comments
Per page: 1530 50