RimWorld

RimWorld

Combat Shields
Earthfire 15 Oct, 2021 @ 4:45pm
Bug in connection with styling station
I have found a bug with the styling station. If you try to change the colour of a pawn wearing a shield (at least the kite shield in my case), the styling station menu bugs out and the dev mode gives out the following error:

Exception filling window for RimWorld.Dialog_StylingStation: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0
at RimWorld.Dialog_StylingStation.DrawApparelColor (UnityEngine.Rect rect) [0x00082] in <b64badbf3c3d41018b3ca5d3e8c77771>:0
at RimWorld.Dialog_StylingStation.DrawTabs (UnityEngine.Rect rect) [0x00309] in <b64badbf3c3d41018b3ca5d3e8c77771>:0
at RimWorld.Dialog_StylingStation.DoWindowContents (UnityEngine.Rect inRect) [0x000fd] in <b64badbf3c3d41018b3ca5d3e8c77771>:0
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001ce] in <b64badbf3c3d41018b3ca5d3e8c77771>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

If the pawn does unequipts the shield, the styling station works as intended. So i assume that it is connected with this mod.