RimWorld

RimWorld

Priority Treatment Ressurected
This topic has been locked
moo 24 Jun @ 8:26pm
1.6 - Possible conflict w/ Choose Your Medicine
Exception in CheckCurrentToilEndOrFail for pawn Genocidal Maniac driver=JobDriver_TendPatient (toilIndex=3) driver.job=( (Job_-1))
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
[Ref 12C9FE91]
[0x0000c] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <51fded79cd284d4d911c5949aff4cb21>:0
at ChooseYourMedicine.Utility_GetList.GetTheCorrectMedicalCareCategory (Verse.Pawn patient, System.Boolean& useDetailed) [0x000a8] in <836b82b53d1f4ae385c9cb31021d1b2e>:0
at ChooseYourMedicine.FindBestMedicine_Prefix.Prefix (Verse.Pawn healer, Verse.Pawn patient, System.Boolean onlyUseInventory, Verse.Thing& __result) [0x00001] in <836b82b53d1f4ae385c9cb31021d1b2e>:0
at RimWorld.HealthAIUtility.FindBestMedicine (Verse.Pawn healer, Verse.Pawn patient, System.Boolean onlyUseInventory) [0x00025] in <78bd3c897ba748f7a6d21cc5498c054e>:0
- PREFIX kopp.rimworld.chooseyourmedicine: Boolean ChooseYourMedicine.FindBestMedicine_Prefix:Prefix(Pawn healer, Pawn patient, Boolean onlyUseInventory, Thing& __result)
at TKS_PriorityTreatment.TKS_PriorityTreatment.MakePriorityTreatmentJob (Verse.Pawn pawn, Verse.Pawn& sickPawn, Verse.AI.Job& queuedJob, System.String callingFunction) [0x003e2] in F:\SteamLibrary\steamapps\common\RimWorld\Mods\PriorityTreatmentRessurected\Source\PriorityTreatmentRessurected.cs:497
at TKS_PriorityTreatment.Pawn_JobTracker_Patches.TryFindAndStartJob_prefix (Verse.AI.Pawn_JobTracker& __instance) [0x0003c] in F:\SteamLibrary\steamapps\common\RimWorld\Mods\PriorityTreatmentRessurected\Source\PriorityTreatmentRessurected.cs:667
at Verse.AI.Pawn_JobTracker.TryFindAndStartJob () [0x00021] in <78bd3c897ba748f7a6d21cc5498c054e>:0
- PREFIX TKS_Ragdoll: Boolean TKS_Ragdoll.Pawn_JobTracker_patches:TryFindAndStartJob_Prefix(Pawn_JobTracker __instance)
- 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) [0x001f7] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.AI.JobDriver.EndJobWith (Verse.AI.JobCondition condition) [0x00028] in <78bd3c897ba748f7a6d21cc5498c054e>:0
at Verse.AI.JobDriver.CheckCurrentToilEndOrFail () [0x0009a] in <78bd3c897ba748f7a6d21cc5498c054e>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.AI.JobUtility:TryStartErrorRecoverJob (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
Verse.AI.JobDriver:CheckCurrentToilEndOrFail ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.JobDriver.DriverTick_Patch1 (Verse.AI.JobDriver)
Verse.AI.Pawn_JobTracker:JobTrackerTick ()
Verse.Pawn:Tick ()
Verse.Thing:DoTick ()
Verse.TickList:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch6 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.TickManagerUpdate_Patch0 (Verse.TickManager)
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()
< >
Showing 1-5 of 5 comments
-=JkJkLoL=- tk421storm  [developer] 28 Jun @ 8:28am 
lol'd at "Exception in CheckCurrentToilEndOrFail for pawn Genocidal Maniac"
moo 28 Jun @ 11:10am 
Oh! That guy monosword rage quit the whole colony and he was the sole remaining colonist, so he got a name
-=JkJkLoL=- tk421storm  [developer] 9 Jul @ 12:11pm 
what was the tend in question that caused this error? just tested on a mostly clean save with choose your medicine and they don't seem to interact (though choose your medicine is very complex so there could be a setting somewhere causing an issue). could this have been relating to psychology, curing a mental issue like anxiety?
moo 9 Jul @ 12:23pm 
I don't remember. So many mod updates since then
-=JkJkLoL=- tk421storm  [developer] 9 Jul @ 12:35pm 
kk locking this thread then, please re-open with context and i'll take a look
< >
Showing 1-5 of 5 comments
Per page: 1530 50