jptrrs / HumanResources

A technology overhaul for RimWorld
MIT License
17 stars 12 forks source link

Throwing errors- unknown cause #158

Closed XenosTiger closed 3 years ago

XenosTiger commented 3 years ago

I'm getting this error with my ResearchPal research menu. No clue what's happening, but heavily modded game. No mods changed since last time things worked, but now the text in-game is oddly sized and I'm getting this error when I look at certain things on the research tree- all the boxes go invisible, and all the text aligns to the right side of the screen? Exception filling window for ResearchPal.MainTabWindow_ResearchTree: System.ArgumentNullException: Value cannot be null. Parameter name: source at System.Linq.Enumerable.Contains[TSource] (System.Collections.Generic.IEnumerable1[T] source, TSource value, System.Collections.Generic.IEqualityComparer1[T] comparer) [0x00017] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.Contains[TSource] (System.Collections.Generic.IEnumerable`1[T] source, TSource value) [0x0000a] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at HumanResources.Extension_Research.DrawStorageMarker (Verse.ResearchProjectDef tech, UnityEngine.Rect rect, System.Boolean highlighted) [0x001e4] in <0c41e38115884f6a987f66d0268ef952>:0 at HumanResources.Extension_Research.DrawExtras (Verse.ResearchProjectDef tech, UnityEngine.Rect rect, System.Boolean highlighted) [0x00000] in <0c41e38115884f6a987f66d0268ef952>:0 at HumanResources.ResearchTree_Patches.HandleDragging_Prefix (System.Object instance, System.Boolean mouseOver, System.Boolean __available) [0x0002d] in <0c41e38115884f6a987f66d0268ef952>:0 at (wrapper dynamic-method) ResearchPal.ResearchNode.ResearchPal.ResearchNode.HandleDragging_Patch1(ResearchPal.ResearchNode,bool) at ResearchPal.ResearchNode.Draw (UnityEngine.Rect visibleRect, ResearchPal.Painter painter) [0x0004c] in :0 at ResearchPal.Tree.Draw (UnityEngine.Rect visibleRect) [0x000fb] in :0 at (wrapper dynamic-method) ResearchPal.MainTabWindow_ResearchTree.ResearchPal.MainTabWindow_ResearchTree.DoWindowContents_Patch1(ResearchPal.MainTabWindow_ResearchTree,UnityEngine.Rect) at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <7927e938de4c4089b4add4215e58d5b1>:0 Verse.Log:Verse.Log.Error_Patch3(String, Boolean) Verse.Window:InnerWindowOnGUI(Int32) UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Just putting this here while I troubleshoot. No mods listed as incompatible, but I'm going to do the ol' half-and-half anyway.

XenosTiger commented 3 years ago

additional info: When I mouse over my researcher colonist, EVERYTHING vanishes and I get this error spamming in console

Exception filling window for ResearchPal.MainTabWindow_ResearchTree: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary2[TKey,TValue].get_Item (TKey key) [0x0001e] in <567df3e0919241ba98db88bec4c6696f>:0 at HumanResources.ResearchTree_Patches.ReflectKnowledge (System.Object instance, HumanResources.CompKnowledge techComp, System.Collections.Generic.IEnumerable1[System.Object]& expertiseDisplay) [0x000b2] in <0c41e38115884f6a987f66d0268ef952>:0 at HumanResources.ResearchTree_Patches.DrawQueue_Prefix (System.Object __instance, UnityEngine.Rect canvas) [0x00146] in <0c41e38115884f6a987f66d0268ef952>:0 at (wrapper dynamic-method) ResearchPal.Queue.ResearchPal.Queue.DrawQueue_Patch1(UnityEngine.Rect,bool) at ResearchPal.MainTabWindow_ResearchTree.DrawTopBar (UnityEngine.Rect canvas) [0x00055] in <8a17f14e26bd435fbb9a56d188fc7723>:0 at (wrapper dynamic-method) ResearchPal.MainTabWindow_ResearchTree.ResearchPal.MainTabWindow_ResearchTree.DoWindowContents_Patch1(ResearchPal.MainTabWindow_ResearchTree,UnityEngine.Rect) at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <7927e938de4c4089b4add4215e58d5b1>:0 Verse.Log:Verse.Log.Error_Patch3(String, Boolean) Verse.Window:InnerWindowOnGUI(Int32) UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

jptrrs commented 3 years ago

Thx for reporting. Please follow this: https://steamcommunity.com/workshop/filedetails/discussion/2119687603/2295094308095765898/ and send me the full error log.