Skip to content

[BUG] Contained items dissappear when shift-right clicking deep storage cells. #49

@joshuafcole

Description

@joshuafcole

Describe the bug
All items stored on a particular tile disappear until the save is reloaded if the tile is shift right clicked with a pawn selected (as to queue an action).

To Reproduce
Steps to reproduce the behavior:

  1. Construct a Deep Storage building
  2. Store some stuff in it
  3. Select a pawn
  4. Shift right click a tile of the building which has stacks in it.

Expected behavior
The right click menu should show and nothing should disappear.

Additional context
Full log: https://gist.github.com/fbda84474710741c9b6767bf321dc72d

Exception thrown on shift right click:

Root level exception in OnGUI(): System.Reflection.TargetParameterCountException: Number of parameters specified does not match the expected number.
  at System.Reflection.MonoMethod.ConvertValues (System.Reflection.Binder binder, System.Object[] args, System.Reflection.ParameterInfo[] pinfo, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) [0x00016] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00011] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at DSGUI.DSGUI.Create (UnityEngine.Vector3 clickPosition, Verse.Pawn pawn, System.Boolean ordersOnly) [0x00221] in <ef00daaae3a3407cab0933f358d85c6c>:0 
  at DSGUI.HarmonyPatches+Selector_HandleMapClicks_Patch.Prefix () [0x0008f] in <ef00daaae3a3407cab0933f358d85c6c>:0 
  at (wrapper dynamic-method) RimWorld.Selector.RimWorld.Selector.HandleMapClicks_Patch3(RimWorld.Selector)
  at RimWorld.Selector.SelectorOnGUI () [0x00000] in <00638943358e4807bd44cd7bc8f572da>:0 
  at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <00638943358e4807bd44cd7bc8f572da>:0 
  at (wrapper dynamic-method) RimWorld.UIRoot_Play.RimWorld.UIRoot_Play.UIRootOnGUI_Patch2(RimWorld.UIRoot_Play)
  at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root) 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Original report I filed on LWM's DS GH: lilwhitemouse/RimWorld-LWM.DeepStorage#111

Happy to test any recommended configuration swaps that would help diagnose the issue at your leisure.

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions