RimWorld

RimWorld

[LTO] Colony Groups
caravan cant enter any tile
when my caravan tries to enter a map willt get a error

Exception filling window for Verse.FloatMenuWorld: System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object
at TacticalGroups.ColonistGroup.<Sort>b__70_0 (Verse.Pawn x) [0x00000] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at Verse.GenCollection+<>c__DisplayClass30_0`2[T,TSortByDescending].<SortByDescending>b__0 (T a, T b) [0x0000d] in <95de19971c5d40878d8742747904cdcd>:0
at System.Collections.Generic.ArraySortHelper`1[T].PickPivotAndPartition (T[] keys, System.Int32 lo, System.Int32 hi, System.Comparison`1[T] comparer) [0x0003d] 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) [0x00069] 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.SortByDescending[T,TSortByDescending] (System.Collections.Generic.List`1[T] list, System.Func`2[T,TResult] selector) [0x00017] in <95de19971c5d40878d8742747904cdcd>:0
at TacticalGroups.ColonistGroup.Sort () [0x00009] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.ColonistGroup.Add (Verse.Pawn pawn) [0x00078] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.ColonistGroup.Add (System.Collections.Generic.List`1[T] newPawns) [0x00011] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.TacticalGroups.CreateOrJoinColony (System.Collections.Generic.List`1[T] pawns, Verse.Map map) [0x0004b] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.HarmonyPatches.CaravanEnter (RimWorld.Planet.Caravan caravan, Verse.Map map, System.Func`2[T,TResult] spawnCellGetter, RimWorld.Planet.CaravanDropInventoryMode dropInventoryMode, System.Boolean draftColonists) [0x00016] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at (wrapper dynamic-method) RimWorld.Planet.CaravanEnterMapUtility.RimWorld.Planet.CaravanEnterMapUtility.Enter_Patch2(RimWorld.Planet.Caravan,Verse.Map,System.Func`2<Verse.Pawn, Verse.IntVec3>,RimWorld.Planet.CaravanDropInventoryMode,bool)
at RimWorld.Planet.CaravanEnterMapUtility.Enter (RimWorld.Planet.Caravan caravan, Verse.Map map, RimWorld.Planet.CaravanEnterMode enterMode, RimWorld.Planet.CaravanDropInventoryMode dropInventoryMode, System.Boolean draftColonists, System.Predicate`1[T] extraCellValidator) [0x00073] in <95de19971c5d40878d8742747904cdcd>:0
at RimWorld.Planet.CaravanArrivalAction_Enter.Arrived (RimWorld.Planet.Caravan caravan) [0x000b8] in <95de19971c5d40878d8742747904cdcd>:0
at RimWorld.Planet.Caravan_PathFollower.PatherArrived () [0x0002e] in <95de19971c5d40878d8742747904cdcd>:0
at RimWorld.Planet.Caravan_PathFollower.StartPath (System.Int32 destTile, RimWorld.Planet.CaravanArrivalAction arrivalAction, System.Boolean repathImmediately, System.Boolean resetPauseStatus) [0x000da] in <95de19971c5d40878d8742747904cdcd>:0
at RimWorld.Planet.CaravanArrivalActionUtility+<>c__DisplayClass0_0`1[T].<GetFloatMenuOptions>b__0 () [0x00031] in <95de19971c5d40878d8742747904cdcd>:0
at Verse.FloatMenuOption.Chosen (System.Boolean colonistOrdering, Verse.FloatMenu floatMenu) [0x00030] in <95de19971c5d40878d8742747904cdcd>:0
at Verse.FloatMenuOption.DoGUI (UnityEngine.Rect rect, System.Boolean colonistOrdering, Verse.FloatMenu floatMenu) [0x00535] in <95de19971c5d40878d8742747904cdcd>:0
at Verse.FloatMenu.DoWindowContents (UnityEngine.Rect rect) [0x000fb] in <95de19971c5d40878d8742747904cdcd>:0
at Verse.FloatMenuWorld.DoWindowContents (UnityEngine.Rect inRect) [0x0009b] in <95de19971c5d40878d8742747904cdcd>:0
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001d3] in <95de19971c5d40878d8742747904cdcd>: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)


and

Root level exception in OnGUI(): System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object
at TacticalGroups.ColonistGroup.<Sort>b__70_0 (Verse.Pawn x) [0x00000] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at Verse.GenCollection+<>c__DisplayClass30_0`2[T,TSortByDescending].<SortByDescending>b__0 (T a, T b) [0x0000d] in <95de19971c5d40878d8742747904cdcd>:0
at System.Collections.Generic.ArraySortHelper`1[T].PickPivotAndPartition (T[] keys, System.Int32 lo, System.Int32 hi, System.Comparison`1[T] comparer) [0x0003d] 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) [0x00069] 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.SortByDescending[T,TSortByDescending] (System.Collections.Generic.List`1[T] list, System.Func`2[T,TResult] selector) [0x00017] in <95de19971c5d40878d8742747904cdcd>:0
at TacticalGroups.ColonistGroup.Sort () [0x00009] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.ColonistGroup.Disband (Verse.Pawn pawn) [0x00028] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.ColonyGroup.Disband (Verse.Pawn pawn) [0x00000] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.TacticalGroups.AddCaravanGroup (RimWorld.Planet.Caravan caravan) [0x00054] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.TacticalColonistBar.CheckRecacheEntries () [0x00468] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.TacticalColonistBar.get_Entries () [0x00000] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.TacticalColonistBar.ColonistBarOnGUI () [0x00019] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.HarmonyPatches.ColonistBarOnGUI () [0x00000] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at (wrapper dynamic-method) RimWorld.ColonistBar.RimWorld.ColonistBar.ColonistBarOnGUI_Patch1(RimWorld.ColonistBar)
at RimWorld.WorldInterface.WorldInterfaceOnGUI () [0x00044] in <95de19971c5d40878d8742747904cdcd>: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_Patch2(Verse.Root)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch2 (Verse.Root)
< >
Näytetään 1-2 / 2 kommentista
Black_moons  [kehittäjä] 3.7.2024 klo 0.27 
Some further reproduction info after helping someone who also had this same error: It occurs after merging caravans on the world map.
GVLT 10.10.2024 klo 14.03 
I have somewhat simillar problem. Caravans made via droppods or VVE aerial vehicles end up lost right before landing.
< >
Näytetään 1-2 / 2 kommentista
Sivua kohden: 1530 50