边缘世界 RimWorld

边缘世界 RimWorld

Children, school and learning
Nabunturan 2021 年 8 月 12 日 下午 1:17
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
< >
正在显示第 1 - 9 条,共 9 条留言
Dylan  [开发者] 2021 年 8 月 12 日 下午 1:26 
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  [开发者] 2021 年 8 月 12 日 下午 1:31 
also does it work when you try to start a game with minimal mods? Like:

Harmony
Core
[Royalty]
[Ideology]
HugsLib
Children, school and learning
最后由 Dylan 编辑于; 2021 年 8 月 12 日 下午 1:32
Nabunturan 2021 年 8 月 12 日 下午 2:20 
Thanks for your quick response, but unfortunately, No, it doesnt work even with just that.
Nabunturan 2021 年 8 月 12 日 下午 2:20 
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  [开发者] 2021 年 8 月 13 日 上午 11:53 
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 2021 年 8 月 14 日 上午 6:02 
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 2021 年 8 月 15 日 上午 3:01 
I am getting this same error I will try reinstalling
Chronos 2021 年 8 月 15 日 上午 6:56 
Just did afresh install and it's working now again with no errors. Idk what happened
Dylan  [开发者] 2021 年 8 月 16 日 上午 6:33 
Good to hear! (It sadly is a required solution a good bunch of the times for weird issues ^^)
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50