RimWorld

RimWorld

Designator Shapes
Ta 31 Jul @ 9:45am
Bug with "Auto-select shape" when selecting workbenches
Hello,

I'd like to report a bug with Designator Shapes.

With the "Auto-select shape" feature turned on, I get an error in the debug log whenever I select certain buildings, like a workbench. This doesn't seem to happen for other items like walls or power conduits.

Here is the error log:

Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
[Ref EEF0F25B]
at Merthsoft.DesignatorShapes.Patches.DesignatorManager_Select.Postfix (Verse.DesignatorManager __instance, Verse.Designator& __state) [0x0004f] in <ab3d8ebca22d4915a5c385e578dd287e>:0
at Verse.DesignatorManager.Select (Verse.Designator des) [0x00085] in <ed371ab4349b419183d9be3af652e6dc>:0
- PREFIX Merthsoft.DesignatorShapes: Void Merthsoft.DesignatorShapes.Patches.DesignatorManager_Select:Prefix(Designator& __state)
- POSTFIX Merthsoft.DesignatorShapes: Void Merthsoft.DesignatorShapes.Patches.DesignatorManager_Select:Postfix(DesignatorManager __instance, Designator& __state)
at Verse.Designator.ProcessInput (UnityEngine.Event ev) [0x00015] in <ed371ab4349b419183d9be3af652e6dc>:0
at RimWorld.Designator_Build.ProcessInput (UnityEngine.Event ev) [0x00041] in <ed371ab4349b419183d9be3af652e6dc>:0
- TRANSPILER Uuugggg.rimworld.TD_Enhancement_Pack.main: IEnumerable`1 TD_Enhancement_Pack.BlueprintAnyStuff:Transpiler(IEnumerable`1 instructions)
at Verse.GizmoGridDrawer.DrawGizmoGrid (System.Collections.Generic.IEnumerable`1[T] gizmos, System.Single startX, Verse.Gizmo& mouseoverGizmo, System.Func`2[T,TResult] customActivatorFunc, System.Func`2[T,TResult] highlightFunc, System.Func`2[T,TResult] lowlightFunc, System.Boolean multipleSelected) [0x007aa] in <ed371ab4349b419183d9be3af652e6dc>:0
at RimWorld.ArchitectCategoryTab.DesignationTabOnGUI (Verse.Designator forceActivatedCommand) [0x0007a] in <ed371ab4349b419183d9be3af652e6dc>:0
at RimWorld.MainTabWindow_Architect.ExtraOnGUI () [0x00010] in <ed371ab4349b419183d9be3af652e6dc>:0
at Verse.WindowStack.WindowStackOnGUI () [0x00038] in <ed371ab4349b419183d9be3af652e6dc>:0
at RimWorld.UIRoot_Play.UIRootOnGUI () [0x0008e] in <ed371ab4349b419183d9be3af652e6dc>:0
- PREFIX Dubwise.PerformanceAnalyzer: Void Analyzer.H_KeyPresses:OnGUI()
at Verse.Root.OnGUI () [0x00040] in <ed371ab4349b419183d9be3af652e6dc>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch5 (string)
Verse.Root:OnGUI ()

Thanks for the great mod, and I hope this helps.