边缘世界 RimWorld

边缘世界 RimWorld

Pharmacist
EmGooser 2021 年 8 月 16 日 下午 8:23
Bug report: context menu on bleeding pawn in bed
When I pair this with Archtug! I get issues in the context menu. The message seems to be a Null Reference error and Archtug! is catching that thrown error and placing it in the menu itself with a message.

I can not confirm who is actually throwing the error but I can confirm that when I disable only this mod I no longer get the error
< >
正在显示第 1 - 14 条,共 14 条留言
Vis 2021 年 8 月 17 日 上午 1:52 
This is the stack trace I get while using the two mods together:

Exception in RimWorld.FloatMenuMakerMap.ChoicesAtFor: System.InvalidOperationException: Sequence contains no elements at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector, System.Collections.Generic.IComparer`1[T] comparer) [0x00039] in <00638943358e4807bd44cd7bc8f572da>:0 at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x00007] in <00638943358e4807bd44cd7bc8f572da>:0 at Pharmacist.HealthAIUtility_FindBestMedicine.Prefix (Verse.Pawn healer, Verse.Pawn patient, System.Boolean onlyUseInventory, Verse.Thing& __result) [0x00057] in <60f543b514a84700bb9fdd05e7dc9499>:0 at RimWorld.HealthAIUtility.FindBestMedicine (Verse.Pawn healer, Verse.Pawn patient, System.Boolean onlyUseInventory) [0x00024] in <00638943358e4807bd44cd7bc8f572da>:0 - prefix fluffy.pharmacist: Boolean Pharmacist.HealthAIUtility_FindBestMedicine:Prefix(Pawn healer, Pawn patient, Boolean onlyUseInventory, Thing& __result) at RimWorld.WorkGiver_Tend.JobOnThing (Verse.Pawn pawn, Verse.Thing t, System.Boolean forced) [0x00007] in <00638943358e4807bd44cd7bc8f572da>:0 at RimWorld.FloatMenuMakerMap.AddJobGiverWorkOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts, System.Boolean drafted) [0x00206] in <00638943358e4807bd44cd7bc8f572da>:0 - transpiler net.pardeike.rimworld.mods.achtung: IEnumerable`1 AchtungMod.FloatMenuMakerMap_AddJobGiverWorkOrders_Patch:Transpiler(IEnumerable`1 instructions, MethodBase original) - prefix net.pardeike.rimworld.mods.achtung: Void AchtungMod.FloatMenuMakerMap_AddJobGiverWorkOrders_Patch:Prefix(Pawn pawn, ForcedWork& __state) - 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) [0x00085] in <00638943358e4807bd44cd7bc8f572da>:0 at RimWorld.FloatMenuMakerMap.ChoicesAtFor (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Boolean suppressAutoTakeableGoto) [0x000ee] in <00638943358e4807bd44cd7bc8f572da>:0 - postfix net.pardeike.rimworld.mods.achtung: Void AchtungMod.FloatMenuMakerMap_ChoicesAtFor_Postfix:Postfix(List`1 __result, Vector3 clickPos, Pawn pawn) - finalizer net.pardeike.rimworld.mods.achtung: Exception AchtungMod.FloatMenuMakerMap_ChoicesAtFor_Finalizer:Finalizer(Exception __exception, List`1& __result)

Alien_Halls 2021 年 8 月 18 日 下午 1:43 
This issue is happening with me either and not only when the pawn is bleeding, it seens i can't treat any health problem he has while he is in bed.
stephan-79 2021 年 8 月 19 日 上午 1:23 
Hi, the same thing happens to me in the game.
tantanoid 2021 年 8 月 19 日 下午 11:03 
Same for me and I am not using Achtung!
https://gist.github.com/6bba87203f4f03d3dd516bde2813c878
imperfectionistimp 2021 年 8 月 19 日 下午 11:13 
I have a similar issue - pawns cannot be tended to when in bed, irrespective of wound or pawn type. I do not have Achtung though, so it must be another mod conflict or simply a bug with this one.
tantanoid 2021 年 8 月 19 日 下午 11:27 
I don't get the exception when using https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2558369439 however others have reported that they still do
beast 2021 年 8 月 21 日 下午 8:53 
Same here and without Achtung. Cannot tend minor cuts when they are set to receive herbal medicine or worse. Problem is solved when I set them to industrial-tech or worse. Also cannot tend to wounds with drafted pawns. This is solved when I remove Pharmacist from my modlist.
I blame Earthshaker 2021 年 8 月 22 日 下午 12:49 
For some reason, setting medical to treat with no medicine seems to sidestep being unable to treat someone in bed, but it clearly an imperfect solution.
Mostwood 2021 年 8 月 23 日 下午 4:49 
It seems that I have a similar problem as I can't treat anyone with anything other than bare hands, only in my case I don't even use Achtung!

Root level exception in OnGUI(): System.InvalidOperationException: Sequence contains no elements at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector, System.Collections.Generic.IComparer`1[T] comparer) [0x00039] in <00638943358e4807bd44cd7bc8f572da>:0 at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x00007] in <00638943358e4807bd44cd7bc8f572da>:0 at Pharmacist.HealthAIUtility_FindBestMedicine.Prefix (Verse.Pawn healer, Verse.Pawn patient, System.Boolean onlyUseInventory, Verse.Thing& __result) [0x00057] in <60f543b514a84700bb9fdd05e7dc9499>:0 at (wrapper dynamic-method) RimWorld.HealthAIUtility.RimWorld.HealthAIUtility.FindBestMedicine_Patch2(Verse.Pawn,Verse.Pawn,bool) at (wrapper dynamic-method) RimWorld.WorkGiver_Tend.RimWorld.WorkGiver_Tend.JobOnThing_Patch1(RimWorld.WorkGiver_Tend,Verse.Pawn,Verse.Thing,bool) at RimWorld.FloatMenuMakerMap.AddJobGiverWorkOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts, System.Boolean drafted) [0x001ba] in <00638943358e4807bd44cd7bc8f572da>:0 at RimWorld.FloatMenuMakerMap.AddUndraftedOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts) [0x00085] in <00638943358e4807bd44cd7bc8f572da>:0 at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.ChoicesAtFor_Patch1(UnityEngine.Vector3,Verse.Pawn,bool) at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x000a1] in <00638943358e4807bd44cd7bc8f572da>:0 at (wrapper dynamic-method) RimWorld.Selector.RimWorld.Selector.HandleMapClicks_Patch1(RimWorld.Selector) at RimWorld.Selector.SelectorOnGUI () [0x00000] in <00638943358e4807bd44cd7bc8f572da>:0 at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <00638943358e4807bd44cd7bc8f572da>:0 at (wrapper dynamic-method) RimWorld.UIRoot_Play.RimWorld.UIRoot_Play.UIRootOnGUI_Patch1(RimWorld.UIRoot_Play) at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root) UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) (wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)
MadMarbleHead 2021 年 8 月 24 日 上午 7:45 
Me as well.
Root level exception in OnGUI(): System.InvalidOperationException: Sequence contains no elements at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector, System.Collections.Generic.IComparer`1[T] comparer) [0x00039] in <00638943358e4807bd44cd7bc8f572da>:0 at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x00007] in <00638943358e4807bd44cd7bc8f572da>:0 at Pharmacist.HealthAIUtility_FindBestMedicine.Prefix (Verse.Pawn healer, Verse.Pawn patient, System.Boolean onlyUseInventory, Verse.Thing& __result) [0x00057] in <60f543b514a84700bb9fdd05e7dc9499>:0 at (wrapper dynamic-method) RimWorld.HealthAIUtility.RimWorld.HealthAIUtility.FindBestMedicine_Patch1(Verse.Pawn,Verse.Pawn,bool) at RimWorld.WorkGiver_Tend.JobOnThing (Verse.Pawn pawn, Verse.Thing t, System.Boolean forced) [0x00007] in <00638943358e4807bd44cd7bc8f572da>:0 at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddJobGiverWorkOrders_Patch0(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>,bool) at RimWorld.FloatMenuMakerMap.AddUndraftedOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts) [0x00085] in <00638943358e4807bd44cd7bc8f572da>:0 at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.ChoicesAtFor_Patch2(UnityEngine.Vector3,Verse.Pawn,bool) at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x000a1] in <00638943358e4807bd44cd7bc8f572da>:0 at (wrapper dynamic-method) RimWorld.Selector.RimWorld.Selector.HandleMapClicks_Patch1(RimWorld.Selector) at RimWorld.Selector.SelectorOnGUI () [0x00000] in <00638943358e4807bd44cd7bc8f572da>:0 at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <00638943358e4807bd44cd7bc8f572da>:0 at (wrapper dynamic-method) RimWorld.UIRoot_Play.RimWorld.UIRoot_Play.UIRootOnGUI_Patch2(RimWorld.UIRoot_Play) at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root) UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string) (wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)
Jestin' Jae™ 2021 年 8 月 24 日 上午 10:25 
Same issue, I originally thought it was another mod, but it seems its an issue here from all of the error posts. Just like others I get the "sequence contains no elements error"
DickHardly 2021 年 8 月 25 日 下午 5:01 
Glad it wasn't just me. Been fiddling with mods for like 4 hours.
I blame Earthshaker 2021 年 8 月 25 日 下午 5:34 
Someone posted on main comment thread that treating doctor pawn needs to actually be CARRYING the medicine now for treatment to work/show up as a drop down menu option... some issue with how Tynan changed vanilla to I guess prefer using the medicine a treating pawn carries... and I guess this mod's logic.
Mr. Night 2021 年 8 月 27 日 下午 11:04 
Just to add another to the issue. I have the same issue. i just went through all ~30 of my mods, rebuilding the list from the ground up. found this was my issue (as i was rebuilding from the letter Z to A it was actually a early add) I do not have any other achtung mods so its not a conflict with the two.
< >
正在显示第 1 - 14 条,共 14 条留言
每页显示数: 1530 50