RimWorld

RimWorld

Misc. Robots
Silent_lord 30. nov. 2020 kl. 21:55
Hauling bot issue, not sure if its a conflict or not
been using the mod for days now and along time in game. but last night getting a huge lag spike and the game moves at a snails pace.
opening the log and its a wall of red text thats getting spammed over and over.

only solution is to destroy the bots, even building new fresh ones, within minutes they get this same issue and just lock in place doing nothing but spamming errors.
my mods and mod loader hasnt changed since i started, but that still doesnt rule out a mod conflict.


these are the two recurring red errors that spam constantly. first spams 11 times then switches the second red error once before going back to the first for 11 times, etc, etc....

First red error;


Couldn't find any cell in region Region(id=21422, mapIndex=0, center=(86, 0, 165), links=5, cells=15)
Verse.Log:Error(String, Boolean)
Verse.Region:get_AnyCell()
Verse.Region:get_RandomCell()
Verse.AI.RegionCostCalculator:RegionMedianPathCost(Region)
Verse.AI.RegionCostCalculator:GetRegionDistance(Region, RegionLink&)
Verse.AI.RegionCostCalculator:GetRegionBestDistances(Region, RegionLink&, RegionLink&, Int32&)
Verse.AI.RegionCostCalculatorWrapper:GetPathCostFromDestToRegion(Int32)
Verse.AI.PathFinder:Verse.AI.PathFinder.FindPath_Patch2(PathFinder, IntVec3, LocalTargetInfo, TraverseParms, PathEndMode)
Verse.AI.PathFinder:FindPath(IntVec3, LocalTargetInfo, Pawn, PathEndMode)
Verse.AI.Pawn_PathFollower:GenerateNewPath()
Verse.AI.Pawn_PathFollower:TrySetNewPath()
Verse.AI.Pawn_PathFollower:Verse.AI.Pawn_PathFollower.TryEnterNextPathCell_Patch1(Pawn_PathFollower)
Verse.AI.Pawn_PathFollower:PatherTick()
Verse.Pawn:Verse.Pawn.Tick_Patch3(Pawn)
AIRobot.X2_AIRobot:Tick()
Verse.TickList:Verse.TickList.Tick_Patch2(TickList)
Verse.TickManager:Verse.TickManager.DoSingleTick_Patch4(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:Verse.Game.UpdatePlay_Patch2(Game)
Verse.Root_Play:Verse.Root_Play.Update_Patch1(Root_Play)


Second error;

Exception ticking HaulingBot 11 (at (77, 0, 170)): System.NullReferenceException: Object reference not set to an instance of an object
at Verse.AI.RegionCostCalculator.GetRegionDistance (Verse.Region region, Verse.RegionLink& minLink) [0x000e9] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.AI.RegionCostCalculator.GetRegionBestDistances (Verse.Region region, Verse.RegionLink& bestLink, Verse.RegionLink& secondBestLink, System.Int32& secondBestCost) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.AI.RegionCostCalculatorWrapper.GetPathCostFromDestToRegion (System.Int32 cellIndex) [0x00046] in <d72310b4d8f64d25aee502792b58549f>:0
at (wrapper dynamic-method) Verse.AI.PathFinder.Verse.AI.PathFinder.FindPath_Patch2(Verse.AI.PathFinder,Verse.IntVec3,Verse.LocalTargetInfo,Verse.TraverseParms,Verse.AI.PathEndMode)
at Verse.AI.PathFinder.FindPath (Verse.IntVec3 start, Verse.LocalTargetInfo dest, Verse.Pawn pawn, Verse.AI.PathEndMode peMode) [0x00028] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.AI.Pawn_PathFollower.GenerateNewPath () [0x0002c] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.AI.Pawn_PathFollower.TrySetNewPath () [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
at (wrapper dynamic-method) Verse.AI.Pawn_PathFollower.Verse.AI.Pawn_PathFollower.TryEnterNextPathCell_Patch1(Verse.AI.Pawn_PathFollower)
at Verse.AI.Pawn_PathFollower.PatherTick () [0x001c8] in <d72310b4d8f64d25aee502792b58549f>:0
at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch3(Verse.Pawn)
at AIRobot.X2_AIRobot.Tick () [0x00072] in <6521b30f0fbd497a880973798b25d52a>:0
at (wrapper dynamic-method) Verse.TickList.Verse.TickList.Tick_Patch2(Verse.TickList)
Verse.Log:Error(String, Boolean)
Verse.TickList:Verse.TickList.Tick_Patch2(TickList)
Verse.TickManager:Verse.TickManager.DoSingleTick_Patch4(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:Verse.Game.UpdatePlay_Patch2(Game)
Verse.Root_Play:Verse.Root_Play.Update_Patch1(Root_Play)
< >
Viser 1-5 af 5 kommentarer
Haplo_X1  [udvikler] 1. dec. 2020 kl. 12:12 
Hmm, both errors show a problem with the pather (the guy who calculates the way for the robot). It seems it wants to find a way to a cell that doesn't exist or something like that.
Unfortunately the pather is a part of Vanilla RimWorld and I have no influence on it :(
I did an update yesterday, but that should not have anything even remotely to do with this..
But to be 100% sure I'll rebuild it once more and push it again. Maybe something did go wrong? I don't know.. But that is all I can do about this, sorry. If that doesn't work... :(
Silent_lord 1. dec. 2020 kl. 14:26 
thank you for the reply. its okay.
im playing with SoS2 so dunno if its because it doesnt like all the switching maps or something.
its okay. the cleaning bot is fine, so atleast i can keep it all clean. :D
Silent_lord 2. dec. 2020 kl. 8:12 
well been testing, had to force steam to redownload the mod as it was updated.

my bots now have a new button, incident map activate.
before couldnt activate as that button was greyed, forcing to use the activate all button instead.

since using the new button to turn on, on the same save on my SoS2 starship, not had anymore errors of the above. (fingers crossed, touch wood.)
Haplo_X1  [udvikler] 29. dec. 2020 kl. 13:30 
Strange, but this button only activtates the 'activate' button on non-main-base-maps. It shouldn't really solve this issues as it has absolutely nothing to do with that.. strange
BioDiesel112™ 28. feb. 2021 kl. 1:20 
got some problems too, my hauling bots try to cut down trees and they will cook
< >
Viser 1-5 af 5 kommentarer
Per side: 1530 50