RimWorld

RimWorld

Children, school and learning
Nabunturan 12 Aug, 2021 @ 1:17pm
Error when activating this mod
I encounter this error everytime I activate this mod,

[HugsLib][ERR] Children.ChildrenController caused an exception during child mod instantiation: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

and everytime I start a new game, when generating the world. ai factions dont spawn. this only happens when I have this mod for the current version
< >
Showing 1-9 of 9 comments
Dylan  [developer] 12 Aug, 2021 @ 1:26pm 
hmm, could you see if there is more text for the error, when you click it in the log (with development mode) to get a hint on what is exactly happening.

did it work for you before / since when did it not work

make sure to also check your Rimworld files with Steam (Library->Right click->Properties->Local Files->Verify ..) and maybe unsub/resub to the mod here
Dylan  [developer] 12 Aug, 2021 @ 1:31pm 
also does it work when you try to start a game with minimal mods? Like:

Harmony
Core
[Royalty]
[Ideology]
HugsLib
Children, school and learning
Last edited by Dylan; 12 Aug, 2021 @ 1:32pm
Nabunturan 12 Aug, 2021 @ 2:20pm 
Thanks for your quick response, but unfortunately, No, it doesnt work even with just that.
Nabunturan 12 Aug, 2021 @ 2:20pm 
heres the full error message

[HugsLib][ERR] Children.ChildrenController caused an exception during child mod instantiation: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method null ---> System.NullReferenceException: Object reference not set to an instance of an object
at HarmonyLib.PatchTools.GetOriginalMethod (HarmonyLib.HarmonyMethod attr) [0x00087] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x0001c] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x00057] in <c38a8c3281a047488dac8c9d063b7abb>:0
--- End of inner exception stack trace ---
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00127] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x00082] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <c38a8c3281a047488dac8c9d063b7abb>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <c38a8c3281a047488dac8c9d063b7abb>:0
at Children.ChildrenController..ctor () [0x000ba] in <440732fde9534206a5c71d1f40d276b2>:0
at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <eae584ce26bc40229c1b1aa476bfa589>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00014] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x000a8] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00020] in <eae584ce26bc40229c1b1aa476bfa589>:0
at HugsLib.HugsLibController.EnumerateChildMods (System.Boolean earlyInitMode) [0x000f8] in <4dd8a30b2ddc479e878b55ffe02db6e8>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string)
HugsLib.HugsLibController:EnumerateChildMods (bool)
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 ()
Dylan  [developer] 13 Aug, 2021 @ 11:53am 
it sounds pretty strange, especially if it does not work with minimal mods this is the current game version it shows for me in the top left main menu (maybe something is stuck updating etc.):

Version 1.3.3087
Compiled Aug 10 2021

Harmony: Lib v2.1.1.0 Mod v1.1.1.0

and my mod should be on version 1.7.1.9 (in the modlist or in the about.xml file)

(it has to be some some kind of weird issue like this, because I have not seen anything like it recently or even at all really)
Nabunturan 14 Aug, 2021 @ 6:02am 
Hi, sorry for the late reply. I've reinstalled my rimworld, and its working now. my guess is that i've not updated my game when i played it.
Chronos 15 Aug, 2021 @ 3:01am 
I am getting this same error I will try reinstalling
Chronos 15 Aug, 2021 @ 6:56am 
Just did afresh install and it's working now again with no errors. Idk what happened
Dylan  [developer] 16 Aug, 2021 @ 6:33am 
Good to hear! (It sadly is a required solution a good bunch of the times for weird issues ^^)
< >
Showing 1-9 of 9 comments
Per page: 1530 50