RimWorld

RimWorld

Allow Tool
AerosAtar 27 Mar, 2024 @ 12:59am
Possible bug in 1.5Unstable
I'm seeing an issue when attempting to Reform my caravan at sites. Posting here because Allow Tool is specifically mentioned in the stack trace.

Here is the error I am getting on selecting the site once Reform Caravan is supposed to be possible.

System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object at Verse.GizmoGridDrawer+<>c.<.cctor>b__13_0 (Verse.Gizmo lhs, Verse.Gizmo rhs) [0x00000] in <4aee7b719ae7440d8cf86cb7506a32d0>:0 at Verse.GenCollection+<>c__DisplayClass36_0`1[T].<SortStable>b__0 (Verse.Pair`2[T1,T2] lhs, Verse.Pair`2[T1,T2] rhs) [0x00014] in <4aee7b719ae7440d8cf86cb7506a32d0>:0 at System.Collections.Generic.ArraySortHelper`1[T].InsertionSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Comparison`1[T] comparer) [0x0002a] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.ArraySortHelper`1[T].IntroSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Int32 depthLimit, System.Comparison`1[T] comparer) [0x0004b] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.ArraySortHelper`1[T].IntrospectiveSort (T[] keys, System.Int32 left, System.Int32 length, System.Comparison`1[T] comparer) [0x00015] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.ArraySortHelper`1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison`1[T] comparer) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 --- End of inner exception stack trace --- at System.Collections.Generic.ArraySortHelper`1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison`1[T] comparer) [0x00020] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.List`1[T].Sort (System.Comparison`1[T] comparison) [0x00012] in <eae584ce26bc40229c1b1aa476bfa589>:0 at Verse.GenCollection.SortStable[T] (System.Collections.Generic.IList`1[T] list, System.Func`3[T1,T2,TResult] comparator) [0x0006e] in <4aee7b719ae7440d8cf86cb7506a32d0>:0 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) [0x00026] in <4aee7b719ae7440d8cf86cb7506a32d0>:0 at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0(System.Collections.Generic.IEnumerable`1<object>,Verse.Gizmo&) currentSelectable: null at RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable`1[T] selectedObjects, Verse.Gizmo& mouseoverGizmo) [0x00000] in <4aee7b719ae7440d8cf86cb7506a32d0>:0 - TRANSPILER UnlimitedHugs.AllowTool: IEnumerable`1 AllowTool.Patches.InspectGizmoGrid_DrawInspectGizmoGridFor_Patch:ClearReverseDesignators(IEnumerable`1 instructions) at RimWorld.Planet.WorldInspectPane.DrawInspectGizmos () [0x00000] in <4aee7b719ae7440d8cf86cb7506a32d0>:0 at RimWorld.InspectPaneUtility.ExtraOnGUI (RimWorld.IInspectPane pane) [0x00000] in <4aee7b719ae7440d8cf86cb7506a32d0>:0 at RimWorld.Planet.WorldInspectPane.ExtraOnGUI () [0x00000] in <4aee7b719ae7440d8cf86cb7506a32d0>:0 at Verse.WindowStack.WindowStackOnGUI () [0x00000] in <4aee7b719ae7440d8cf86cb7506a32d0>:0 at RimWorld.UIRoot_Play.UIRootOnGUI () [0x00000] in <4aee7b719ae7440d8cf86cb7506a32d0>:0 at Verse.Root.OnGUI () [0x00000] in <4aee7b719ae7440d8cf86cb7506a32d0>:0 - POSTFIX UnlimitedHugs.HugsLib: Void HugsLib.Patches.Root_OnGUI_Patch:OnGUIHookUnfiltered()
< >
Showing 1-1 of 1 comments
Ocatio 27 Mar, 2024 @ 1:21pm 
Exception ticking Blauer Bison (at (131, 0, 138)): System.MissingMethodException: bool Verse.AI.ReservationUtility.Reserve(Verse.Pawn,Verse.LocalTargetInfo,Verse.AI.Job,int,int,Verse.ReservationLayerDef,bool)
at Verse.AI.Pawn_JobTracker.StartJob (Verse.AI.Job newJob, Verse.AI.JobCondition lastJobEndCondition, Verse.AI.ThinkNode jobGiver, System.Boolean resumeCurJobAfterwards, System.Boolean cancelBusyStances, Verse.ThinkTreeDef thinkTree, System.Nullable`1[T] tag, System.Boolean fromQueue, System.Boolean canReturnCurJobToPool, System.Nullable`1[T] keepCarryingThingOverride, System.Boolean continueSleeping, System.Boolean addToJobsThisTick, System.Boolean preToilReservationsCanFail) [0x00363] in <4aee7b719ae7440d8cf86cb7506a32d0>:0
at Verse.AI.Pawn_JobTracker.TryFindAndStartJob () [0x00099] in <4aee7b719ae7440d8cf86cb7506a32d0>:0
at Verse.AI.Pawn_JobTracker.EndCurrentJob (Verse.AI.JobCondition condition, System.Boolean startNewJob, System.Boolean canReturnToPool) [0x001b2] in <4aee7b719ae7440d8cf86cb7506a32d0>:0
at Verse.AI.Pawn_JobTracker.JobTrackerTick () [0x001a1] in <4aee7b719ae7440d8cf86cb7506a32d0>:0
at Verse.Pawn.Tick () [0x000c7] in <4aee7b719ae7440d8cf86cb7506a32d0>:0
at Verse.TickList.Tick () [0x0015c] in <4aee7b719ae7440d8cf86cb7506a32d0>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)


This bug also appears when selection "Haul urgent" in the job priority window to some pawns
Last edited by Ocatio; 27 Mar, 2024 @ 1:22pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50