RimWorld

RimWorld

Xenobionic Patcher
This topic has been locked
RutraNickers 12 Feb, 2021 @ 1:36pm
Error in launch, can't patch anything
So today I'm getting a new error...

Races I'm playing:
-Kurin HAR Edition; Bun Race; Drow; Garam, the Single Tailed Furry; Astoriel; Moyo.

The error I'm getting:

[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__8 (Verse.RecipeDef s) [0x00000] in <b538e4473fd143b78013f4716f95b49c>: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 <c36f9493c9844ddaa7fb5c788416098f>:0
at XenobionicPatcher.DefInjectors.InjectSurgeryRecipes (System.Collections.Generic.List`1[T] surgeryList, System.Collections.Generic.List`1[T] pawnList) [0x00277] in <b538e4473fd143b78013f4716f95b49c>:0
at (wrapper dynamic-method) XenobionicPatcher.Base.XenobionicPatcher.Base.DefsLoaded_Patch2(XenobionicPatcher.Base)
at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <e4b32d84f714481f906e5eea5e560e3b>:0
Verse.Log:Error(String, Boolean)
HugsLib.Utils.ModLogger:ReportException(Exception, String, Boolean, String)
HugsLib.HugsLibController:OnDefsLoaded()
HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch2(HugsLibController)
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.<>c:<UpdateCurrentAsynchronousEvent>b__27_0()
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart()
Last edited by RutraNickers; 12 Feb, 2021 @ 1:45pm
< >
Showing 1-9 of 9 comments
The Raven 3 Mar, 2021 @ 10:37am 
did you find a solution? I'm getting a similar error only race overlap being Moyo.

[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) [0x002c1] in <b538e4473fd143b78013f4716f95b49c>:0
at (wrapper dynamic-method) XenobionicPatcher.Base.XenobionicPatcher.Base.DefsLoaded_Patch2(XenobionicPatcher.Base)
at HugsLib.HugsLibController.OnDefsLoaded () [0x0001a] in <e4b32d84f714481f906e5eea5e560e3b>:0
Verse.Log:Verse.Log.Error_Patch1(String, Boolean)
HugsLib.Utils.ModLogger:ReportException(Exception, String, Boolean, String)
HugsLib.HugsLibController:OnDefsLoaded()
HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch2(HugsLibController)
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.<>c:<UpdateCurrentAsynchronousEvent>b__27_0()
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart()
RutraNickers 4 Mar, 2021 @ 11:06am 
@BluePittGames

after some tests I think I discovered the source: It is now incompatible with Garam Framework and this breaks the xeno patcher to oblivion. When I removed it my game loaded with no problems
Last edited by RutraNickers; 4 Mar, 2021 @ 11:06am
SineSwiper  [developer] 18 Apr, 2021 @ 7:46am 
Garam Framework tends to break a lot of stuff. Not sure why the author didn't choose to just use HAR2.0 like everybody else. (Yep, that pretty much sums it up.)

I can try to debug it, though.
Last edited by SineSwiper; 18 Apr, 2021 @ 7:55am
RutraNickers 18 Apr, 2021 @ 8:19am 
Originally posted by SineSwiper:
Not sure why the author didn't choose to just use HAR2.0 like everybody else.

probably because they wanted facial animations, that's the only diference I see.

If you could debug it would be nice, but if it's a problem in their code it's alright. I'll copy-paste this in their mod to see if they can do something about it.
SineSwiper  [developer] 30 May, 2021 @ 9:31am 
I might have a fix for the first NRE above. I'll push it out in a bit.

I'm currently using Moyo, so that might have already been fixed a while ago.
Starfield 10 Jun, 2021 @ 5:12am 
Originally posted by SineSwiper:
I might have a fix for the first NRE above. I'll push it out in a bit.

I'm currently using Moyo, so that might have already been fixed a while ago.
Moyo got updated so now it uses its own Race Framework, so now theres 3 race frameworks.
Edit: Technically 4 because theres another Garam like framework by the author.
Last edited by Starfield; 10 Jun, 2021 @ 5:13am
RutraNickers 10 Jun, 2021 @ 9:04am 
Originally posted by Miffy Starfield:
Moyo got updated so now it uses its own Race Framework, so now theres 3 race frameworks.
Edit: Technically 4 because theres another Garam like framework by the author.

nah, MoyoHAR is more like a pluging. If it were it's own race framework it wouldn't need HAR too to play with then.
SineSwiper  [developer] 19 Jun, 2021 @ 7:41am 
SineSwiper  [developer] 19 Jun, 2021 @ 4:51pm 
New update v1.2.0 will likely fix these issues.
< >
Showing 1-9 of 9 comments
Per page: 1530 50