RimWorld

RimWorld

Pharmacist - 1.5 Unofficial (+ Blood Rot & Lung Rot fix)
Blacksoul 27. okt. 2024 kl. 13:48
Possible incompatibility with anomaly entities requiring tending and pharmacist
When setting a sightstealer's allowed medicine to something more than just doctor care, no pawn can tend to it. When right clicking on the entity, no list of actions is shown, and an error is thrown :

Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
[Ref C84F23E8]
at Pharmacist.HealthAIUtility_FindBestMedicine.Prefix (Verse.Pawn healer, Verse.Pawn patient, System.Boolean onlyUseInventory, Verse.Thing& __result) [0x00094] in <49c3509d28ae426bb512fc241b3823a0>:0
at RimWorld.HealthAIUtility.FindBestMedicine (Verse.Pawn healer, Verse.Pawn patient, System.Boolean onlyUseInventory) [0x00025] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
- PREFIX fluffy.pharmacist: Boolean Pharmacist.HealthAIUtility_FindBestMedicine:Prefix(Pawn healer, Pawn patient, Boolean onlyUseInventory, Thing& __result)
- PREFIX uuugggg.rimworld.SmartMedicine.main: Boolean SmartMedicine.FindBestMedicine:Prefix(Pawn healer, Pawn patient, Thing& __result, Boolean onlyUseInventory)
- POSTFIX Neronix17.TabulaRasa.RimWorld: Void TabulaRasa.HealthAIUtility_FindBestMedicine:Postfix(Pawn healer, Pawn patient, Thing& __result)
at RimWorld.WorkGiver_TendEntity.JobOnThing (Verse.Pawn pawn, Verse.Thing t, System.Boolean forced) [0x0000d] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
at RimWorld.FloatMenuMakerMap.AddJobGiverWorkOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts, System.Boolean drafted) [0x0020b] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
- TRANSPILER KB_Prioritize_Research: IEnumerable`1 KB_Prioritize_Research.FloatMenuMakerMap_Patches+FloatMenuMakerMap_AddJobGiverWorkOrders:Transpiler(IEnumerable`1 instructions)
- TRANSPILER net.pardeike.rimworld.mods.achtung: IEnumerable`1 AchtungMod.FloatMenuMakerMap_AddJobGiverWorkOrders_Patch:Transpiler(IEnumerable`1 instructions, ILGenerator generator)
- PREFIX net.pardeike.rimworld.mods.achtung: Void AchtungMod.FloatMenuMakerMap_AddJobGiverWorkOrders_Patch:Prefix(Pawn pawn, ForcedWork& __state)
- PREFIX OskarPotocki.VFECore: Boolean AnimalBehaviours.VanillaExpandedFramework_FloatMenuMakerMap_AddJobGiverWorkOrders_Patch:SkipIfAnimal(Pawn pawn)
- PREFIX VanillaExpanded.VFEA: Void VFEAncients.PowerWorker_NoPrioritize:StoreOpts(List`1 opts, List`1& __state, Pawn pawn)
- PREFIX NAT_Patch: Boolean NAT.Patch_RemoveWorkFromSoldiers:SkipIfAnimal(Pawn pawn)
- POSTFIX VanillaExpanded.VFEA: Void VFEAncients.PowerWorker_NoPrioritize:DisableOpts(List`1 opts, List`1 __state, Pawn pawn)
- POSTFIX net.pardeike.rimworld.mods.achtung: Void AchtungMod.FloatMenuMakerMap_AddJobGiverWorkOrders_Patch:Postfix(Pawn pawn, ForcedWork __state)
at RimWorld.FloatMenuMakerMap.AddUndraftedOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts) [0x00024] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
at RimWorld.FloatMenuMakerMap.ChoicesAtFor (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Boolean suppressAutoTakeableGoto) [0x00126] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
- POSTFIX OskarPotocki.VFECore: Void VFE.Mechanoids.HarmonyPatches.FloatMenuMakerMap_ChoicesAtFor_Patch:Postfix(List`1& __result, Vector3 clickPos, Pawn pawn, Boolean suppressAutoTakeableGoto)
- POSTFIX net.pardeike.rimworld.mods.achtung: Void AchtungMod.FloatMenuMakerMap_ChoicesAtFor_Postfix:Postfix(List`1 __result, Vector3 clickPos, Pawn pawn)
- POSTFIX GiddyUp: Void GiddyUp.Harmony.FloatMenuMakerMap_ChoicesAtFor:Postfix(Vector3 clickPos, Pawn pawn, List`1 __result)
at AchtungMod.MultiActions.AddColonist (AchtungMod.Colonist colonist) [0x0001f] in <c48846fe21134b1d9cad8f1931a7d35c>:0
at AchtungMod.Tools.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <c48846fe21134b1d9cad8f1931a7d35c>:0
at <0x43283b20 + 0x0022b> <unknown method>
at AchtungMod.Controller.MouseDown (UnityEngine.Vector3 pos, System.Int32 button, System.Boolean longPress) [0x000be] in <c48846fe21134b1d9cad8f1931a7d35c>:0
- TRANSPILER pathfinding.framework: IEnumerable`1 PathfindingFramework.Patches.ModCompatibility.Achtung.Controller_MouseDown_Patch:Transpiler(IEnumerable`1 instructions)
at AchtungMod.Controller.HandleEvents () [0x000cf] in <c48846fe21134b1d9cad8f1931a7d35c>:0
at AchtungMod.Selector_HandleMapClicks_Patch.Prefix () [0x00005] in <c48846fe21134b1d9cad8f1931a7d35c>:0
at RimWorld.Selector.HandleMapClicks () [0x0000e] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
- PREFIX net.pardeike.rimworld.mods.achtung: Boolean AchtungMod.Selector_HandleMapClicks_Patch:Prefix()
- PREFIX net.littlewhitemouse.LWM.DeepStorage: Boolean LWM.DeepStorage.Patch_HandleMapClicks:Prefix(Selector __instance, List`1 ___selected)
- PREFIX SmashPhil.VehicleFramework: Boolean Vehicles.Extra:MultiSelectFloatMenu(List`1 ___selected)
- PREFIX net.pardeike.reversecommands: Boolean ReverseCommands.Selector_HandleMapClicks_Patch:Prefix()
at RimWorld.Selector.SelectorOnGUI () [0x00000] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000f0] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
- PREFIX SmashPhil.SmashTools: Void SmashTools.MainMenuKeyBindHandler:HandleKeyInputs()
- PREFIX Dubwise.PerformanceAnalyzer: Void Analyzer.H_KeyPresses:OnGUI()
- POSTFIX Krkr.RocketMan: Void RocketMan.KeyBinder:OnGUI()
at Verse.Root.OnGUI () [0x00046] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
- POSTFIX UnlimitedHugs.HugsLib: Void HugsLib.Patches.Root_OnGUI_Patch:OnGUIHookUnfiltered()
- POSTFIX DevModeHotkey: Void DevModeHotkey.Patch_UIRoot_Play:AddHookForDevHotkey()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch7 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.OnGUI_Patch2 (Verse.Root)

My huglib report:
https://gist.github.com/HugsLibRecordKeeper/4e6ba61383b5e18f1d4203e54b8afdcc