RimWorld

RimWorld

Custom Pawn Generation
McFunk Jul 28, 2021 @ 8:24am
1.3 bug reporting
Hey, made this so the normal comment section doesn't get clogged with spam. First, thank you for the 1.3 update! This is an essential mod for me. However, enabling the mod gives this error: Exception in Verse.StaticConstructorOnStartupUtility.CallAll: System.TypeInitializationException: The type initializer for 'RW_CustomPawnGeneration.RW_CustomPawnGeneration' threw an exception. ---> HarmonyLib.HarmonyException: Patching exception in method null ---> System.ArgumentException: Undefined target method for patch method static System.Void RW_CustomPawnGeneration.Patch_PawnGenerator_GenerateBodyType_NewTemp::Patch(Verse.Pawn pawn, Verse.PawnGenerationRequest request)
at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] 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 RW_CustomPawnGeneration.RW_CustomPawnGeneration..cctor () [0x00081] in <f753ded69dc74914ad2c7ef930c25a8d>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x0001d] in <f81f052e138344458cc870569c2ab66f>:0
- transpiler net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.RunloopExceptionHandler:Transpiler(IEnumerable`1 instructions)


I don't know near anything about coding, so I can't make heads or tails of it, but perhaps it's useful to someone else?
< >
Showing 1-3 of 3 comments
Simonova Jul 28, 2021 @ 9:48am 
I had the same error; fixed it by unsubscribing from the mod, waiting a few seconds to let it fully uninstall, then resubscribing to the mod.
My best guess, there's an old DLL from the previous version that's not getting cleaned up on upgrade, and rimworld's trying to use that instead of the right one.
McFunk Jul 28, 2021 @ 10:46am 
Thank you, that fixed it!
Nyan  [developer] Jul 28, 2021 @ 11:33am 
Originally posted by Simonova:
I had the same error; fixed it by unsubscribing from the mod, waiting a few seconds to let it fully uninstall, then resubscribing to the mod.
My best guess, there's an old DLL from the previous version that's not getting cleaned up on upgrade, and rimworld's trying to use that instead of the right one.
I had the same case as well. I'll put up a note to re-subscribe to the mod since I don't understand why it's happening. Thank you for the help!
< >
Showing 1-3 of 3 comments
Per page: 1530 50