RimWorld

RimWorld

Caravans Rest Before Arrival
SlippyCheeze 13 May, 2022 @ 12:48pm
[BUG] Pawns without a rest need can't enter a map
I can give you the full hugslib logs and all if you want, but: some mods, such as the IG-88 or 4-LOM droid mods, have pawns that do not have a "rest" need at all. Also, hunger is not assured.

You should make sure you check that the need exists before testing it; if it is absent assume the pawn is just fine™ and carry on.

Specific failure:
System.NullReferenceException: Object reference not set to an instance of an object at CaravansRestBeforeArrival.CaravanTools.CheckIfAutoRestNeeded (RimWorld.Planet.Caravan caravan, System.Boolean& shouldNotify) [0x00047] in <7aace55efb7a482183ab4109db0cf271>:0 at CaravansRestBeforeArrival.Patch_Caravan_PathFollower_TryEnterNextPathTile.Prefix (RimWorld.Planet.Caravan_PathFollower __instance) [0x0004e] in <7aace55efb7a482183ab4109db0cf271>:0 at (wrapper dynamic-method) RimWorld.Planet.Caravan_PathFollower.RimWorld.Planet.Caravan_PathFollower.TryEnterNextPathTile_Patch1(RimWorld.Planet.Caravan_PathFollower) at (wrapper dynamic-method) RimWorld.Planet.Caravan_PathFollower.RimWorld.Planet.Caravan_PathFollower.PatherTick_Patch1(RimWorld.Planet.Caravan_PathFollower) at (wrapper dynamic-method) RimWorld.Planet.Caravan.RimWorld.Planet.Caravan.Tick_Patch3(RimWorld.Planet.Caravan) at RimWorld.Planet.WorldObjectsHolder.WorldObjectsHolderTick () [0x00029] in <99518a644a3e4a7ea3fde566568df84a>:0 at (wrapper dynamic-method) RimWorld.Planet.World.RimWorld.Planet.World.WorldTick_Patch1(RimWorld.Planet.World) at (wrapper dynamic-method) Verse.TickManager.Verse.TickManager.DoSingleTick_Patch5(Verse.TickManager) (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)