RimWorld

RimWorld

Extended Storage
Pesky Pixie Oct 22, 2018 @ 12:29pm
Bug with clothing racks
Hey, there seems to be a bug with the clothing rack - my pawns are unable to equip or interact with items in them, and right clicking to force wear gives the following error:


Root level exception in OnGUI(): System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
at System.Collections.Generic.List`1<Verse.FloatMenuOption>.CheckIndex (int) <0x0006c>
at System.Collections.Generic.List`1<Verse.FloatMenuOption>.InsertRange (int,System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>) <0x00047>
at ExtendedStorage.Patches.FloatMenuMakerMap_AddHumanlikeOrders.Postfix (UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>) <0x0037a>
at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch3 (UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>) <0x09544>
at RimWorld.FloatMenuMakerMap.ChoicesAtFor (UnityEngine.Vector3,Verse.Pawn) <0x002c9>
at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn) <0x001e2>
at RimWorld.Selector.HandleMapClicks () <0x00287>
at RimWorld.Selector.SelectorOnGUI () <0x0001c>
at RimWorld.MapInterface.HandleLowPriorityInput () <0x0006d>
at RimWorld.UIRoot_Play.UIRootOnGUI () <0x002f9>
at Verse.Root.OnGUI () <0x00112>

Verse.Log:Error(String, Boolean)
Verse.Root:OnGUI()


I've also encountered a bug when trying to deconstruct the clothing rack, though it doesn't happen every time. When right clicking to prioritise deconstructing the UI flickers so you are unable to prioritise it, and gives this error message.


Exception filling window for Verse.FloatMenuMap: System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
at System.Collections.Generic.List`1<Verse.FloatMenuOption>.CheckIndex (int) <0x0006c>
at System.Collections.Generic.List`1<Verse.FloatMenuOption>.InsertRange (int,System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>) <0x00047>
at ExtendedStorage.Patches.FloatMenuMakerMap_AddHumanlikeOrders.Postfix (UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>) <0x0037a>
at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch3 (UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>) <0x09544>
at RimWorld.FloatMenuMakerMap.ChoicesAtFor (UnityEngine.Vector3,Verse.Pawn) <0x002c9>
at Verse.FloatMenuMap.StillValid (Verse.FloatMenuOption,System.Collections.Generic.List`1<Verse.FloatMenuOption>,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>&,UnityEngine.Vector3&) <0x001a0>
at Verse.FloatMenuMap.DoWindowContents (UnityEngine.Rect) <0x001eb>
at Verse.Window/<WindowOnGUI>c__AnonStorey0.<>m__0 (int) <0x00882>

Verse.Log:Error(String, Boolean)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)


Having no issues with any of the other storage units, just the clothing racks. I am running other mods so it could be an incompatibility of some kind, but the errors seem to be related to this mod so I thought I'd let you know. Many thanks!
< >
Showing 1-4 of 4 comments
TerraggosaurusRex Oct 22, 2018 @ 3:20pm 
Glad to see it wasn't just me. There is some custom code that nomally handles generating the contextual menu because the game normally can't concieve of stacks of stacks of things. I think that the translation updates between b19 and r1.0 may have changed the internal call to get the strings the custom code needs, but the custom code doesn't know and keeps doing things wrong.

I thnink it only effects the GUI though, because the pawns grab, put, and equip thing as normal - so long as you don't try to do anything through the contextual menu.

SO I avoid the contextual menu whenever possible - click on the single peice of apparel, then use the select-thing-below-the-current-selection-triangle in the info box and then operate on the clothings rack via the GUI buttons.
TerraggosaurusRex Oct 22, 2018 @ 3:21pm 
I posted an issue on github about this: https://github.com/DoctorVanGogh/ExtendedStorage/issues/18
Savoyard Oct 23, 2018 @ 12:25pm 
I have the same issue. I just work around it by having a shelf with higher priority so there's always a single stack of gear for my colonists to grab. They'll haul, but won't always equip and can't manually equip from an Extended Storage rack. Weapons can only be taken if they're the top item on a stack, so if you have a Legendary below a Good, you can only force-equip the Good weapon.
TerraggosaurusRex Nov 11, 2018 @ 10:13pm 
This issue is resolved in the non-steam realease: 3.4.1.1[github.com]
< >
Showing 1-4 of 4 comments
Per page: 1530 50