SineSwiper / RimWorld-XenobionicPatcher

Fix surgical operations to work with all of your bionics, implants, animals, humans, aliens
Artistic License 2.0
4 stars 3 forks source link

Mod Compatibility Issue: Rim-Robots! causes error during surgery setup #18

Closed slippycheeze closed 4 weeks ago

slippycheeze commented 2 years ago

Only required mods are Rim-Robots! and Xenobionic Patcher, and their dependencies. I checked the C# code for Rim-Robots! and it doesn't look like it'd be doing something that would break things here... but who knows?

Anyway, thanks for making the mod :)

logs: https://gist.github.com/HugsLibRecordKeeper/faeaba32ab8b1fe103e903df3524833d

[HugsLib] initializing XenobionicPatcher
[XenobionicPatcher] Prep work / pre-caching (took 0.0070s; 236 defs)
[XenobionicPatcher] Injected animal surgical recipes into other animals (took 0.0160s; 0 combinations)
[XenobionicPatcher] Injected humanlike surgical recipes into other humanlikes (took 0.0030s; 78 combinations)
[HugsLib][ERR] XenobionicPatcher caused an exception during OnDefsLoaded: System.NullReferenceException: Object reference not set to an instance of an object
  at XenobionicPatcher.DefInjectors+<>c__DisplayClass1_1.<InjectSurgeryRecipes>b__12 (Verse.RecipeDef s) [0x00000] in <51b55d89af12431fa6285344fe3583b2>:0 
  at System.Linq.Enumerable+SelectListIterator`2[TSource,TResult].MoveNext () [0x00048] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at Verse.GenCollection.AddRange[T] (System.Collections.Generic.HashSet`1[T] hashSet, System.Collections.Generic.IEnumerable`1[T] enumerable) [0x00018] in <99518a644a3e4a7ea3fde566568df84a>:0 
  at XenobionicPatcher.DefInjectors.InjectSurgeryRecipes (System.Collections.Generic.List`1[T] surgeryList, System.Collections.Generic.List`1[T] pawnList) [0x0029b] 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)
SineSwiper commented 2 years ago

Can you turn on debug logging within the config and try it again? That should isolated it down to a certain section of InjectSurgeryRecipes.