RimWorld

RimWorld

Preemptive Strike (Fork)
PlayerEmers Aug 21, 2020 @ 12:42pm
possibly another bug: ghost caravans and ghost encounters
i'm not sure if its related to preemptive strike, but it looks that way

when getting a random fight encounter on a caravan, you instantly win the encounter (no enemies) and a ghost caravan is created on the world map
no pawns are on this ghost caravan, and this caravan is forever resting
things getting weird sometimes with the hud, specially if you merge a real caravan with the ghost ones

this is the error i get

Root level exception in OnGUI(): System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <567df3e0919241ba98db88bec4c6696f>:0 at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 at RimWorld.ColonistBarDrawLocsFinder.CalculateColonistsInGroup () [0x0006e] in <7b345446a85d4ed599f9c604ae61854b>:0 at RimWorld.ColonistBarDrawLocsFinder.CalculateDrawLocs (System.Collections.Generic.List`1[T] outDrawLocs, System.Single& scale) [0x00020] in <7b345446a85d4ed599f9c604ae61854b>:0 at RimWorld.ColonistBar.CheckRecacheEntries () [0x00340] in <7b345446a85d4ed599f9c604ae61854b>:0 at RimWorld.ColonistBar.get_Entries () [0x00000] in <7b345446a85d4ed599f9c604ae61854b>:0 at RimWorld.ColonistBar.ColonistBarOnGUI () [0x00019] in <7b345446a85d4ed599f9c604ae61854b>:0 at RimWorld.WorldInterface.WorldInterfaceOnGUI () [0x00041] in <7b345446a85d4ed599f9c604ae61854b>:0 at RimWorld.UIRoot_Play.UIRootOnGUI () [0x00015] in <7b345446a85d4ed599f9c604ae61854b>:0 at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root) Verse.Log:Error(String, Boolean) Verse.Root:Verse.Root.OnGUI_Patch1(Root)

again, im not sure if it's related to this mod, but it feels that way since preemptive strike is one of a few mods that im using that changes world map/caravan stuff

i will test a game without the mod to see if its fixed or at least stops from happening
Last edited by PlayerEmers; Aug 21, 2020 @ 12:43pm
< >
Showing 1-1 of 1 comments
ric Aug 24, 2020 @ 12:43pm 
I'm getting similar error. Happened when caravan was going to doctor request opportunity (which turned into an ambush they immediately won) and then on the way to the next quest the caravan got ambushed by tribespeople and they instantly won this battle as well.

Basically when caravan gets ambushed they win the battle instantly and no enemy pawns are spawned. You get an empty map while the game autopauses but when you unpause that map disappears and caravan is left to move on.

Here are my error logs:
Exception from long event: System.NullReferenceException: Object reference not set to an instance of an object at RimWorld.Planet.CaravansBattlefield.PostMapGenerate () [0x0000c] in <21250a2d5b57462795280bd438c2da78>:0 at (wrapper dynamic-method) Verse.MapGenerator.Verse.MapGenerator.GenerateMap_Patch1(Verse.IntVec3,RimWorld.Planet.MapParent,Verse.MapGeneratorDef,System.Collections.Generic.IEnumerable`1<Verse.GenStepWithParams>,System.Action`1<Verse.Map>) at Verse.GetOrGenerateMapUtility.GetOrGenerateMap (System.Int32 tile, Verse.IntVec3 size, RimWorld.WorldObjectDef suggestedMapParentDef) [0x0006c] in <21250a2d5b57462795280bd438c2da78>:0 at RimWorld.Planet.CaravanIncidentUtility.GetOrGenerateMapForIncident (RimWorld.Planet.Caravan caravan, Verse.IntVec3 size, RimWorld.WorldObjectDef suggestedMapParentDef) [0x00012] in <21250a2d5b57462795280bd438c2da78>:0 at RimWorld.Planet.CaravanIncidentUtility.SetupCaravanAttackMap (RimWorld.Planet.Caravan caravan, System.Collections.Generic.List`1[T] enemies, System.Boolean sendLetterIfRelatedPawns) [0x0001d] in <21250a2d5b57462795280bd438c2da78>:0 at RimWorld.IncidentWorker_CaravanDemand+<>c__DisplayClass19_0.<ActionFight>b__0 () [0x00000] in <21250a2d5b57462795280bd438c2da78>:0 at Verse.LongEventHandler.UpdateCurrentSynchronousEvent (System.Boolean& sceneChanged) [0x0001d] in <21250a2d5b57462795280bd438c2da78>:0 Verse.Log:Error(String, Boolean) Verse.LongEventHandler:UpdateCurrentSynchronousEvent(Boolean&) Verse.LongEventHandler:LongEventsUpdate(Boolean&) Verse.Root:Verse.Root.Update_Patch1(Root) Verse.Root_Play:Update()

Root level exception in Update(): System.NullReferenceException: Object reference not set to an instance of an object at Verse.MapDrawer.SectionAt (Verse.IntVec3 loc) [0x00008] in <21250a2d5b57462795280bd438c2da78>:0 at Verse.MapDrawer.MapMeshDirty (Verse.IntVec3 loc, Verse.MapMeshFlag dirtyFlags, System.Boolean regenAdjacentCells, System.Boolean regenAdjacentSections) [0x00009] in <21250a2d5b57462795280bd438c2da78>:0 at Verse.MapDrawer.MapMeshDirty (Verse.IntVec3 loc, Verse.MapMeshFlag dirtyFlags) [0x0000e] in <21250a2d5b57462795280bd438c2da78>:0 at Verse.GlowGrid.MarkGlowGridDirty (Verse.IntVec3 loc) [0x00007] in <21250a2d5b57462795280bd438c2da78>:0 at Verse.GlowGrid.RecalculateAllGlow () [0x00027] in <21250a2d5b57462795280bd438c2da78>:0 at Verse.GlowGrid.GlowGridUpdate_First () [0x00008] in <21250a2d5b57462795280bd438c2da78>:0 at (wrapper dynamic-method) Verse.Map.Verse.Map.MapUpdate_Patch2(Verse.Map) at Verse.Game.UpdatePlay () [0x00031] in <21250a2d5b57462795280bd438c2da78>:0 at Verse.Root_Play.Update () [0x00026] in <21250a2d5b57462795280bd438c2da78>:0 Verse.Log:Error(String, Boolean) Verse.Root_Play:Update()
< >
Showing 1-1 of 1 comments
Per page: 1530 50