SmashPhil / Vehicle-Framework

Core mod for Vehicles
Other
57 stars 30 forks source link

Caravan does not move if carrying prisoner #183

Closed RedStarM closed 3 months ago

RedStarM commented 3 months ago

Describe the bug Upon capturing a prisoner and reforming the caravan, vehicle will not move until said prisoner is dropped off/banished.

To Reproduce Steps to reproduce the behavior:

  1. Acquire Prisoner in Raid.
  2. Reform Caravan and include prisoner in pawn selection menu.
  3. Attempt to depart.
  4. Caravan will not move, debug log overflows with errors, included below.

Logs System.NullReferenceException: Object reference not set to an instance of an object [Ref 31DF73C6] at Vehicles.VehiclePawn.TrySatisfyPawnNeeds (Verse.Pawn pawn) [0x0013a] in <68fd1c8400aa41059cc058a596cc7921>:0 at Vehicles.VehicleCaravan.TrySatisfyPawnsNeeds () [0x0002f] in <68fd1c8400aa41059cc058a596cc7921>:0 at Vehicles.CaravanHandling.TrySatisfyVehicleCaravanNeeds (RimWorld.Planet.Caravan_NeedsTracker __instance) [0x0000f] in <68fd1c8400aa41059cc058a596cc7921>:0 at RimWorld.Planet.Caravan_NeedsTracker.TrySatisfyPawnsNeeds () [0x0000e] in :0

SmashPhil commented 3 months ago

Known bug, you'll need to remove the prisoner from the caravan in order to continue onward. It's not broken permanently, but the exception does interrupt the flow of things. You can instant-travel or split the prisoners into a normal caravan to continue

SmashPhil commented 3 months ago

Fixed on unstable branch