RimWorld

RimWorld

Bulk Load For Transporters
red errors with some mods
Exception in CheckCurrentToilEndOrFail for pawn Plague driver=JobDriver_TendPatient (toilIndex=13) driver.job=( (Job_-1))
System.ArgumentException: SplitOff with count <= 0
Parameter name: count
[Ref E1B30E41]
at Verse.Thing.SplitOff (System.Int32 count) [0x00004] in <24d25868955f4df08b02c73b55f389fe>:0
at Verse.ThingWithComps.SplitOff (System.Int32 count) [0x00000] in <24d25868955f4df08b02c73b55f389fe>:0
at Verse.ThingOwner.TryDrop (Verse.Thing thing, Verse.IntVec3 dropLoc, Verse.Map map, Verse.ThingPlaceMode mode, System.Int32 count, Verse.Thing& resultingThing, System.Action`2[T1,T2] placedAction, System.Predicate`1[T] nearPlaceValidator) [0x000b4] in <24d25868955f4df08b02c73b55f389fe>:0
at Verse.ThingOwner.TryDrop (Verse.Thing thing, Verse.ThingPlaceMode mode, System.Int32 count, Verse.Thing& lastResultingThing, System.Action`2[T1,T2] placedAction, System.Predicate`1[T] nearPlaceValidator) [0x0004b] in <24d25868955f4df08b02c73b55f389fe>:0
at SmartMedicine.TendPatient_Notify_Starting_Patch.DropIt (Verse.Thing medicineToUse, System.Int32 needCount, Verse.Pawn healer, Verse.AI.Job job) [0x0002b] in <230987a481594ea5bb690eabcec1ea4c>:0
at SmartMedicine.TendPatient_Notify_Starting_Patch.Prefix (RimWorld.JobDriver_TendPatient __instance) [0x00087] in <230987a481594ea5bb690eabcec1ea4c>:0
at RimWorld.JobDriver_TendPatient.Notify_Starting () [0x00000] in <24d25868955f4df08b02c73b55f389fe>:0
- PREFIX uuugggg.rimworld.SmartMedicine.main: Void SmartMedicine.TendPatient_Notify_Starting_Patch:Prefix(JobDriver_TendPatient __instance)
at Verse.AI.Pawn_JobTracker.StartJob (Verse.AI.Job newJob, Verse.AI.JobCondition lastJobEndCondition, Verse.AI.ThinkNode jobGiver, System.Boolean resumeCurJobAfterwards, System.Boolean cancelBusyStances, Verse.ThinkTreeDef thinkTree, System.Nullable`1[T] tag, System.Boolean fromQueue, System.Boolean canReturnCurJobToPool, System.Nullable`1[T] keepCarryingThingOverride, System.Boolean continueSleeping, System.Boolean addToJobsThisTick, System.Boolean preToilReservationsCanFail) [0x00624] in <24d25868955f4df08b02c73b55f389fe>:0
- PREFIX Snues.AutoArm: Void AutoArm.Pawn_JobTracker_StartJob_Combined_Patch:Prefix(Job newJob, Pawn ___pawn)
- POSTFIX Snues.AutoArm: Void AutoArm.Pawn_JobTracker_StartJob_Combined_Patch:Postfix(Job newJob, Pawn ___pawn)
- POSTFIX Ilarion.BulkLoadForTransporters: Void BulkLoadForTransporters.HarmonyPatches.Pawn_JobTracker_StartJob_Patch:Postfix(Pawn_JobTracker __instance, Pawn ___pawn)
at TKS_PriorityTreatment.Pawn_JobTracker_Patches.TryFindAndStartJob_prefix (Verse.AI.Pawn_JobTracker& __instance) [0x00074] in F:\SteamLibrary\steamapps\common\RimWorld\Mods\PriorityTreatmentRessurected\Source\PriorityTreatmentRessurected.cs:673
at Verse.AI.Pawn_JobTracker.TryFindAndStartJob () [0x0000d] in <24d25868955f4df08b02c73b55f389fe>:0
- PREFIX TKS_PriorityTreatment: Boolean TKS_PriorityTreatment.Pawn_JobTracker_Patches:TryFindAndStartJob_prefix(Pawn_JobTracker& __instance)
at Verse.AI.Pawn_JobTracker.EndCurrentJob (Verse.AI.JobCondition condition, System.Boolean startNewJob, System.Boolean canReturnToPool) [0x002c2] in <24d25868955f4df08b02c73b55f389fe>:0
- PREFIX Troy_Alias.TacticalGroups: Void TacticalGroups.HarmonyPatches:EndCurrentJobPrefix(Pawn_JobTracker __instance, Pawn ___pawn, JobCondition condition, Boolean& startNewJob, Dictionary`2& __state, Boolean canReturnToPool)
- PREFIX Ilarion.BulkLoadForTransporters: Void BulkLoadForTransporters.HarmonyPatches.Pawn_JobTracker_EndCurrentJob_Patch:Prefix(Pawn_JobTracker __instance, JobCondition condition, Pawn ___pawn)
- PREFIX Snues.AutoArm: Void AutoArm.Pawn_JobTracker_EndCurrentJob_Patch:Prefix(Pawn ___pawn, JobCondition condition, Job ___curJob)
- POSTFIX Troy_Alias.TacticalGroups: Void TacticalGroups.HarmonyPatches:EndCurrentJobPostfix(Pawn ___pawn, Dictionary`2 __state)
at Verse.AI.JobDriver.EndJobWith (Verse.AI.JobCondition condition) [0x00028] in <24d25868955f4df08b02c73b55f389fe>:0
at Verse.AI.JobDriver.CheckCurrentToilEndOrFail () [0x0009a] in <24d25868955f4df08b02c73b55f389fe>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.AI.JobUtility:TryStartErrorRecoverJob (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
Verse.AI.JobDriver:CheckCurrentToilEndOrFail ()
Verse.AI.JobDriver:DriverTick ()
Verse.AI.Pawn_JobTracker:JobTrackerTick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Pawn.Tick_Patch1 (Verse.Pawn)
Verse.Thing:DoTick ()
Verse.TickList:Tick ()
Verse.TickManager:DoSingleTick ()
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
Verse.Root_Play:Update ()

Logs: https://gist.github.com/HugsLibRecordKeeper/8ac3680454b85693a07a18671fca8656
< >
Showing 1-13 of 13 comments
Ilarion  [developer] 3 Sep @ 5:09pm 
Hi, thanks for the report!
The SplitOff with count <= 0 error in SmartMedicine happens when it tries to take zero or a negative amount of an item from a stack. My BulkLoadForTransporters mod doesn't modify that specific logic. Have you tried disabling SmartMedicine or my mod individually to test if the issue persists?
Rovstam 4 Sep @ 4:54am 
SmartMedicine has been the culprit of many, many errors in the past for me, and it's author (not Uugg, he dead, his predecessor) is not actively updating it.
Rovstam 4 Sep @ 4:55am 
Also i have a lil question, i have a history of adding and removing mods mid save, now my save stutters a lot with lag, is there a way for me to know WHAT is causing this lag? I would like to fix it
Last edited by Rovstam; 4 Sep @ 5:08am
Ilarion  [developer] 4 Sep @ 6:23am 
Pinpointing the exact mod or cause of your lag is often quite challenging, and typically requires systematic troubleshooting to identify the root cause.

For instance, if you were to uninstall my BLFT mod from a save game with an active "bulk loading task" and then load that save, the game would freeze. That's why I've added a protective button in the settings interface for such situations. Other mods might also have similar issues but don't always inform the user.
Rovstam 4 Sep @ 6:27am 
Nah it was Sensible bed ownership, Priority treatment resurrected (this mod adds HUGE LAG because it has YandereDev code), Colony groups, Pharmacist and Common sense.

It stutters, but not as bad as before, and if i don't get red erros, am i fine to continue?
Rovstam 4 Sep @ 6:28am 
i re-enabled this mod since you seem active and competent dev, unlike the others which just systematically ignore these errors and continue bulking their "upgrades", adding even more incompabilities.
Rovstam 4 Sep @ 6:52am 
ALSO author, i know i'm being annoying but how could i fix this red error? Doesn't seem to be lethal, but always opens the log console

Failed to find Verse.JobDef named TakeToInventory. There are 354 defs of this type loaded.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.DefDatabase`1<Verse.JobDef>:GetNamed (string,bool)
Verse.GenDefDatabase:GetDef (System.Type,string,bool)
RimWorld.DefOfHelper:BindDefsFor (System.Type)
System.Threading.Tasks.Parallel/<>c__DisplayClass33_0`2<System.Type, object>:<ForEachWorker>b__0 (int)
System.Threading.Tasks.Parallel/<>c__DisplayClass19_0`1<object>:<ForWorker>b__1 (System.Threading.Tasks.RangeWorker&,int,bool&)
System.Threading.Tasks.TaskReplicator/Replica`1<System.Threading.Tasks.RangeWorker>:ExecuteAction (bool&)
System.Threading.Tasks.TaskReplicator/Replica:Execute ()
System.Threading.Tasks.TaskReplicator/Replica/<>c:<.ctor>b__4_0 (object)
System.Threading.Tasks.Task:InnerInvoke ()
System.Threading.Tasks.Task:Execute ()
System.Threading.Tasks.Task:ExecutionContextCallback (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.Tasks.Task:ExecuteWithThreadLocal (System.Threading.Tasks.Task&)
System.Threading.Tasks.Task:ExecuteEntry (bool)
System.Threading.Tasks.Task:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem ()
System.Threading.ThreadPoolWorkQueue:Dispatch ()
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()
Ilarion  [developer] 4 Sep @ 7:08am 
I've also been using Pharmacist and Common Sense in my saves, and their features are indeed very useful. Generally, if there are no red errors, it's usually fine to continue. In a way, you're trading a bit of lag for the useful functionalities these mods provide.
Ilarion  [developer] 4 Sep @ 7:32am 
This "TakeToInventory" error might be related to Pick Up And Haul or similar hauling mods(or BulkLoad). Could you try adjusting their load order?
Rovstam 4 Sep @ 9:09am 
i have PUAH + Bulk loader and Bulk load for transport pods. What should be the load order? I sort them with RimSort.
Ilarion  [developer] 4 Sep @ 7:21pm 
If the load order seems fine, you could try disabling mods one by one. After each disable, load your save to see which mod's removal makes the error disappear.
Rovstam 4 Sep @ 7:35pm 
(binary search)
< >
Showing 1-13 of 13 comments
Per page: 1530 50