RimWorld

RimWorld

Xenobionic Patcher
TurtleShroom 30 Sep, 2021 @ 5:18pm
Bug Reports
Good evening.

As there is no central place to deposit Error Logs and run proper tests for OP to fix, I am creating this Discussion page as a repository for that.


Thank you.
-TURTLESHROOM
< >
Showing 1-15 of 29 comments
TurtleShroom 30 Sep, 2021 @ 5:23pm 
[XenobionicPatcher] Add new body parts to surgeries: took 0.0000s; 0 additions UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Message (string) HugsLib.Utils.ModLogger:Message (string,object[]) XenobionicPatcher.DefInjectors:InjectSurgeryRecipes (System.Collections.Generic.List`1<Verse.RecipeDef>,System.Collections.Generic.List`1<Verse.ThingDef>) XenobionicPatcher.Base:DefsLoaded () HugsLib.HugsLibController:OnDefsLoaded () (wrapper dynamic-method) HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch1 (HugsLib.HugsLibController) Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 () System.Threading.ThreadHelper:ThreadStart_Context (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.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) System.Threading.ThreadHelper:ThreadStart ()

[XenobionicPatcher] Add new surgeries to pawns: took 0.0000s; 0 additions UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Message (string) HugsLib.Utils.ModLogger:Message (string,object[]) XenobionicPatcher.DefInjectors:InjectSurgeryRecipes (System.Collections.Generic.List`1<Verse.RecipeDef>,System.Collections.Generic.List`1<Verse.ThingDef>) XenobionicPatcher.Base:DefsLoaded () HugsLib.HugsLibController:OnDefsLoaded () (wrapper dynamic-method) HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch1 (HugsLib.HugsLibController) Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 () System.Threading.ThreadHelper:ThreadStart_Context (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.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) System.Threading.ThreadHelper:ThreadStart ()

[HugsLib][ERR] XenobionicPatcher caused an exception during OnDefsLoaded: System.NullReferenceException: Object reference not set to an instance of an object at XenobionicPatcher.DefInjectors.CleanupSurgeryRecipes (System.Collections.Generic.List`1[T] surgeryList, System.Collections.Generic.List`1[T] pawnList) [0x002c5] in <51b55d89af12431fa6285344fe3583b2>:0 at XenobionicPatcher.Base.DefsLoaded () [0x0102f] in <51b55d89af12431fa6285344fe3583b2>:0 at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <a56dbe2cf5184fe991f5fb736b3081b0>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string) HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string) HugsLib.HugsLibController:OnDefsLoaded () (wrapper dynamic-method) HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch1 (HugsLib.HugsLibController) Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 () System.Threading.ThreadHelper:ThreadStart_Context (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.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) System.Threading.ThreadHelper:ThreadStart ()

I know not why I am getting all of this, but for some reason, the Xeno-Bionic Patch Mod is not crossing the surgeries on all Species. Creatures that SHOULD be getting things from Human Pawns, like the "Among Us" Spaceman from the Amogus Mod and the Jeub from the Storytime Mod, are not getting these. Likewise, things designed for specialized claw-based hands like the Harpy Mod cannot be transplanted either.

Here is my Hugs Library Log: https://gist.github.com/b9f18d9f8d714d0359a20e772aed01bd .

Thank you for any assistance you may render.
TurtleShroom 8 Oct, 2021 @ 10:30am 
[HugsLib][ERR] XenobionicPatcher caused an exception during OnDefsLoaded: System.NullReferenceException: Object reference not set to an instance of an object at XenobionicPatcher.DefInjectors.InjectSurgeryRecipes (System.Collections.Generic.List`1[T] surgeryList, System.Collections.Generic.List`1[T] pawnList) [0x0105c] in <51b55d89af12431fa6285344fe3583b2>:0 at XenobionicPatcher.Base.DefsLoaded () [0x008e2] in <51b55d89af12431fa6285344fe3583b2>:0 at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <a56dbe2cf5184fe991f5fb736b3081b0>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string) HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string) HugsLib.HugsLibController:OnDefsLoaded () (wrapper dynamic-method) HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch1 (HugsLib.HugsLibController) Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 () System.Threading.ThreadHelper:ThreadStart_Context (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.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) System.Threading.ThreadHelper:ThreadStart ()

Could not instantiate inspector tab of type : System.ArgumentNullException: Value cannot be null. Parameter name: key at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 at Verse.InspectTabManager.GetSharedInstance (System.Type tabType) [0x00000] in <b64badbf3c3d41018b3ca5d3e8c77771>:0 at Verse.ThingDef.ResolveReferences () [0x00100] in <b64badbf3c3d41018b3ca5d3e8c77771>:0 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39) [XenobionicPatcher] Prep work / pre-caching (took 1.1970s; 971 defs) [XenobionicPatcher] Injecting animal surgical recipes into other animals [XenobionicPatcher] PawnSurgeriesByBioType cache: took 0.0060s; 1/406 keys/recipes [XenobionicPatcher] RaceBodyParts cache: took 0.0010s; 2,161 BPRs [XenobionicPatcher] DoesPawnHaveSurgery + BodyPart caches: took 0.0480s; 65,592 + 7,689 strings [XenobionicPatcher] Static part loop: took 0.0550s; 67/100 PartToPartMapper keys/BPDs [XenobionicPatcher] Part-to-part mapping: took 0.0020s; 193/1,343 PartToPartMapper keys/BPDs [XenobionicPatcher] Surgery-to-part mapping: took 0.0010s; 193/1,343 PartToPartMapper keys/BPDs [XenobionicPatcher] Empty list cleanup: took 0.0000s; 193/1,343 PartToPartMapper keys/BPDs [XenobionicPatcher] Add new body parts to surgeries: took 0.0010s; 16 additions [XenobionicPatcher] Add new surgeries to pawns: took 0.0060s; 1,610 additions [XenobionicPatcher] Injected animal surgical recipes into other animals (took 0.1370s; 5,192 combinations) [XenobionicPatcher] Injecting humanlike surgical recipes into other humanlikes [XenobionicPatcher] PawnSurgeriesByBioType cache: took 0.0010s; 1/370 keys/recipes [XenobionicPatcher] RaceBodyParts cache: took 0.0000s; 1,469 BPRs [XenobionicPatcher] DoesPawnHaveSurgery + BodyPart caches: took 0.0070s; 10,610 + 1,243 strings [XenobionicPatcher] Static part loop: took 0.0350s; 45/56 PartToPartMapper keys/BPDs [XenobionicPatcher] Part-to-part mapping: took 0.0000s; 59/117 PartToPartMapper keys/BPDs [XenobionicPatcher] Surgery-to-part mapping: took 0.0000s; 59/117 PartToPartMapper keys/BPDs [XenobionicPatcher] Empty list cleanup: took 0.0000s; 59/117 PartToPartMapper keys/BPDs [XenobionicPatcher] Add new body parts to surgeries: took 0.0000s; 8 additions [XenobionicPatcher] Add new surgeries to pawns: took 0.0000s; 47 additions [XenobionicPatcher] Injected humanlike surgical recipes into other humanlikes (took 0.0460s; 120 combinations) [XenobionicPatcher] Injecting artificial part surgical recipes into mechs [XenobionicPatcher] PawnSurgeriesByBioType cache: took 0.0000s; 1/377 keys/recipes [XenobionicPatcher] RaceBodyParts cache: took 0.0000s; 703 BPRs [XenobionicPatcher] DoesPawnHaveSurgery + BodyPart caches: took 0.0030s; 3,721 + 651 strings [XenobionicPatcher] Static part loop: took 0.0160s; 48/62 PartToPartMapper keys/BPDs [XenobionicPatcher] Part-to-part mapping: took 0.0000s; 91/459 PartToPartMapper keys/BPDs [XenobionicPatcher] Surgery-to-part mapping: took 0.0000s; 91/459 PartToPartMapper keys/BPDs [XenobionicPatcher] Empty list cleanup: took 0.0000s; 91/459 PartToPartMapper keys/BPDs [HugsLib][ERR] XenobionicPatcher caused an exception during OnDefsLoaded: System.NullReferenceException: Object reference not set to an instance of an object at XenobionicPatcher.DefInjectors.InjectSurgeryRecipes (System.Collections.Generic.List`1[T] surgeryList, System.Collections.Generic.List`1[T] pawnList) [0x0105c] in <51b55d89af12431fa6285344fe3583b2>:0 at XenobionicPatcher.Base.DefsLoaded () [0x008e2] in <51b55d89af12431fa6285344fe3583b2>:0 at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <a56dbe2cf5184fe991f5fb736b3081b0>:0 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

I am continuing to experience this problem. Please help me if you can.


ThIs is my Hugs Library Log: https://gist.github.com/c0ce6f1e0bf0a7c967f0bdc39718feff .
Last edited by TurtleShroom; 8 Oct, 2021 @ 10:55am
bagelhe 8 Jan, 2022 @ 4:35am 
hey i got this report

[HugsLib][ERR] XenobionicPatcher caused an exception during OnDefsLoaded: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.Dictionary`2+KeyCollection+Enumerator[TKey,TValue].MoveNext () [0x00013] in <eae584ce26bc40229c1b1aa476bfa589>:0
at XenobionicPatcher.DefInjectors.InjectSurgeryRecipes (System.Collections.Generic.List`1[T] surgeryList, System.Collections.Generic.List`1[T] pawnList) [0x00f36] in <51b55d89af12431fa6285344fe3583b2>:0
at (wrapper dynamic-method) XenobionicPatcher.Base.XenobionicPatcher.Base.DefsLoaded_Patch2(XenobionicPatcher.Base)
at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <a56dbe2cf5184fe991f5fb736b3081b0>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string)
HugsLib.HugsLibController:OnDefsLoaded ()
(wrapper dynamic-method) HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch2 (HugsLib.HugsLibController)
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (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.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()
Inglix 2 Feb, 2022 @ 5:29pm 
Xenobionic Patcher causes the following error on startup if you also have:
  • Ultratech: Altered Carbon Remastered
  • Harvest Everything! OR Harvest Every Body Parts
[HugsLib][ERR] XenobionicPatcher caused an exception during OnDefsLoaded: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.Dictionary`2+KeyCollection+Enumerator[TKey,TValue].MoveNext () [0x00013] in <eae584ce26bc40229c1b1aa476bfa589>:0 at XenobionicPatcher.DefInjectors.InjectSurgeryRecipes (System.Collections.Generic.List`1[T] surgeryList, System.Collections.Generic.List`1[T] pawnList) [0x00f36] in <51b55d89af12431fa6285344fe3583b2>:0 at XenobionicPatcher.Base.DefsLoaded () [0x007c2] in <51b55d89af12431fa6285344fe3583b2>:0 at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <a56dbe2cf5184fe991f5fb736b3081b0>:0

This only occurs if you have the Altered Carbon mod and one of the other two installed alongside Xenobionic Patcher.

Here are my two HugsLib logs, one for each of the body part harvesting mods installed.

Harvest Everything! and Ultratech: Altered Carbon Remastered
https://gist.github.com/HugsLibRecordKeeper/fe8e79e8bf9d7184aa2a709018c007a8

Harvest Every Body Parts and Ultratech: Altered Carbon Remastered
https://gist.github.com/HugsLibRecordKeeper/4286c8d02e147de3d1c6454e4766651a
Last edited by Inglix; 2 Feb, 2022 @ 5:30pm
chuck 18 Feb, 2022 @ 8:43pm 
Large mod list: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2756226301

Sorry~

[HugsLib][ERR] XenobionicPatcher caused an exception during OnDefsLoaded: System.NullReferenceException: Object reference not set to an instance of an object
at XenobionicPatcher.DefInjectors.CleanupSurgeryRecipes (System.Collections.Generic.List`1[T] surgeryList, System.Collections.Generic.List`1[T] pawnList) [0x002c5] in <51b55d89af12431fa6285344fe3583b2>:0
at (wrapper dynamic-method) XenobionicPatcher.Base.XenobionicPatcher.Base.DefsLoaded_Patch2(XenobionicPatcher.Base)
at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <a56dbe2cf5184fe991f5fb736b3081b0>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string)
HugsLib.HugsLibController:OnDefsLoaded ()
(wrapper dynamic-method) HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch1 (HugsLib.HugsLibController)
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (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.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()

[[XenobionicPatcher] Prep work / pre-caching (took 4.6440s; 1,397 defs)
[XenobionicPatcher] Injected animal surgical recipes into other animals (took 0.3410s; 11,936 combinations)
[XenobionicPatcher] Injected humanlike surgical recipes into other humanlikes (took 0.2400s; 17,557 combinations)
[XenobionicPatcher] Injected artificial part surgical recipes into mechs (took 0.1130s; 37,490 combinations)
[XenobionicPatcher] Injected animal surgical recipes into humanlikes (took 0.2430s; 5,792 combinations)
[XenobionicPatcher] Injected humanlike surgical recipes into animals (took 0.2880s; 36,181 combinations)
[XenobionicPatcher][warn] Mapping a large set of body parts from "Install fake tail":
Surgery parts: Moyo_Tail, Tail, MorphTail, SlugTail, NagaTail, RB_RabbitTail, TailLeg, AA_TailLeg, DR_Tail, Silkiera_Tail, Andalite_Tail, Kurin_Tail, RS_UpperTail, Upper_Tailbone, Upper_BellyScale, RS_LowerTail, Lower_Tailbone, Lower_BellyScale, RS_Rattle, Catgirl_Tail, MG_Dragon_Tail, Foxgirl_Tail, MG_Thrumbogirl_Tail, Wolfgirl_Tail, BunTail, CuteboldTail, MQT_MiqoteTail, AURA_AuRaTail, DTail, PNTail, AA_InsectTail, VFEI_InsectTail, IG_Tail
Current mapper parts: DTail ==>
New mapper parts: Catgirl_Tail, Wolfgirl_Tail, Foxgirl_Tail, MG_Thrumbogirl_Tail, MG_Dragon_Tail, Tail, MorphTail, SlugTail, NagaTail, RB_RabbitTail, TailLeg, AA_TailLeg, DR_Tail, Silkiera_Tail, Andalite_Tail, Moyo_Tail, Kurin_Tail, RS_UpperTail, Upper_Tailbone, Upper_BellyScale, RS_LowerTail, Lower_Tailbone, Lower_BellyScale, RS_Rattle, BunTail, CuteboldTail, MQT_MiqoteTail, AURA_AuRaTail, DTail, PNTail, AA_InsectTail, VFEI_InsectTail, IG_Tail
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[XenobionicPatcher] Injected fleshlike surgical recipes into fleshlikes (took 1.1640s; 400,803 combinations)
[XenobionicPatcher] Cleaning up hand/foot surgical recipes (took 0.0010s)
[HugsLib][ERR] XenobionicPatcher caused an exception during OnDefsLoaded: System.NullReferenceException: Object reference not set to an instance of an object
at XenobionicPatcher.DefInjectors.CleanupSurgeryRecipes (System.Collections.Generic.List`1[T] surgeryList, System.Collections.Generic.List`1[T] pawnList) [0x002c5] in <51b55d89af12431fa6285344fe3583b2>:0
at (wrapper dynamic-method) XenobionicPatcher.Base.XenobionicPatcher.Base.DefsLoaded_Patch2(XenobionicPatcher.Base)
at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <a56dbe2cf5184fe991f5fb736b3081b0>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
Last edited by chuck; 18 Feb, 2022 @ 8:44pm
Ivoo13 10 Apr, 2022 @ 5:00am 
I recently started getting these and apparently they occur when I have 'Apini playable race, Continued!' enabled. What is odd, is that neither this patcher nor that race mod were recently updated. Last month I had similar problem with 'Orassans'. Of course the patcher is at the end of the mod list.

Just in case I redownloaded the game and all mods, but nothing changed.


[HugsLib][ERR] XenobionicPatcher caused an exception during OnDefsLoaded: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.Dictionary`2+KeyCollection+Enumerator[TKey,TValue].MoveNext () [0x00013] in <eae584ce26bc40229c1b1aa476bfa589>:0
at XenobionicPatcher.DefInjectors.InjectSurgeryRecipes (System.Collections.Generic.List`1[T] surgeryList, System.Collections.Generic.List`1[T] pawnList) [0x00f36] in <51b55d89af12431fa6285344fe3583b2>:0
at XenobionicPatcher.Base.DefsLoaded () [0x007c2] in <51b55d89af12431fa6285344fe3583b2>:0
at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <a56dbe2cf5184fe991f5fb736b3081b0>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string)
HugsLib.HugsLibController:OnDefsLoaded ()
HugsLib.HugsLibController:LoadReloadInitialize ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (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.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()
Zovc 19 Apr, 2022 @ 3:52pm 
Hey, I ran into an issue with this and Android Tiers, I already reported this to them as well.

Part of how Android Tiers works by default is they need 'nanokits' for healing in place of medicine for humans. So, surgeries will ask for [x] medicine and whatever else. Say, "2 Medicine, 1 Advanced Bionic Leg."

I couldn't figure out why I couldn't operate on my T1, besides with a makeshift leg replacement that cost 30 steel. After a lot of tinkering and enabling and disabling mods and settings I figured out that the game was actually asking me for 2 Nanokits in place of Medicine.

I'm guessing tinkering would have to be done with how Android Tiers works, but I figured I would mention this to you in case there's a fix that can happen on your end as well. There's a setting in Android Tiers that is supposed to make 'androids use organic medicine', and it works as intended for general gameplay. Which added a lot to my confusion because I didn't even realize nanokits were a thing.
bagelhe 31 May, 2022 @ 9:29am 
hey i face this when i load up the game

[HugsLib][ERR] XenobionicPatcher caused an exception during OnDefsLoaded: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.Dictionary`2+KeyCollection+Enumerator[TKey,TValue].MoveNext () [0x00013] in <eae584ce26bc40229c1b1aa476bfa589>:0
at XenobionicPatcher.DefInjectors.InjectSurgeryRecipes (System.Collections.Generic.List`1[T] surgeryList, System.Collections.Generic.List`1[T] pawnList) [0x00f36] in <51b55d89af12431fa6285344fe3583b2>:0
at XenobionicPatcher.Base.DefsLoaded () [0x007c2] in <51b55d89af12431fa6285344fe3583b2>:0
at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <a56dbe2cf5184fe991f5fb736b3081b0>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string)
HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string)
HugsLib.HugsLibController:OnDefsLoaded ()
(wrapper dynamic-method) HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch1 (HugsLib.HugsLibController)
(wrapper dynamic-method) Verse.LongEventHandler:Verse.LongEventHandler.RunEventFromAnotherThread_Patch0 (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (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.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()
TurtleShroom 31 May, 2022 @ 1:31pm 
Originally posted by bagelhe:
hey i face this when i load up the game

I get this EXACT SAME ERROR.
Inglix 1 Jun, 2022 @ 4:54am 
Originally posted by TurtleShroom:
Originally posted by bagelhe:
hey i face this when i load up the game

I get this EXACT SAME ERROR.
Scroll up and look at my post from back on February 2nd. Check and see if you have the mods I mentioned. No guarantee that your errors are being caused by the same issue as mine, but they look like the exact same error. If you do have those mods you can try removing one of them to see if that resolves the issue.
TurtleShroom 10 Jun, 2022 @ 11:03am 
Originally posted by Inglix:
Scroll up and look at my post from back on February 2nd. Check and see if you have the mods I mentioned. No guarantee that your errors are being caused by the same issue as mine, but they look like the exact same error. If you do have those mods you can try removing one of them to see if that resolves the issue.

I don't have either of those Mods.

Mine seems to be a problem with "cleaning up recipes".
SineSwiper  [developer] 4 Jul, 2022 @ 8:44am 
Okay, I've been going through a lot of these NREs, since I've been able to better pinpoint the code locations. I did find the bug for "System.InvalidOperationException: Collection was modified; enumeration operation may not execute.", at least the one in InjectSurgeryRecipes [0x00f36].

I'll see about getting a fix published for today or tomorrow.
SineSwiper  [developer] 4 Jul, 2022 @ 8:56am 
Originally posted by Zovc:
Part of how Android Tiers works by default is they need 'nanokits' for healing in place of medicine for humans. So, surgeries will ask for [x] medicine and whatever else. Say, "2 Medicine, 1 Advanced Bionic Leg."

I couldn't figure out why I couldn't operate on my T1, besides with a makeshift leg replacement that cost 30 steel. After a lot of tinkering and enabling and disabling mods and settings I figured out that the game was actually asking me for 2 Nanokits in place of Medicine.

By default, XP comes with humanlike/mech part mapping turned off (and visa-versa). You might want to check those settings.

Although, I thought higher-level Androids had "meat" on them, so they might be classified as humanlikes at that point. Yes, I did specifically exclude those, since they would normally use the same surgery options as real humans.

Do androids like T4s now require Nanokits to fix?
Last edited by SineSwiper; 4 Jul, 2022 @ 8:59am
SineSwiper  [developer] 4 Jul, 2022 @ 9:37am 
All of the above exceptions should be fixed. If you are still receiving errors, please repost the exception and stack trace.
Not really a bug, but a possible incompatibility with medical system expansion 2. When installing a bionic leg (completed) on a hoofed creature (like an elephant or thrumbo) it doesn't install the subparts, like the foot.
< >
Showing 1-15 of 29 comments
Per page: 1530 50