RimWorld

RimWorld

Consciousness Patch
TurtleShroom Nov 11, 2023 @ 5:17pm
Bug Reports
Good evening.

Post your bug reports here.



-TURTLESHROOM
< >
Showing 1-3 of 3 comments
TurtleShroom Nov 11, 2023 @ 5:18pm 
Error in static constructor of Consciousness_Patch.MyPatch: System.TypeInitializationException: The type initializer for 'Consciousness_Patch.MyPatch' threw an exception. ---> HarmonyLib.HarmonyException: Patching exception in method virtual System.Single RimWorld.PawnCapacityWorker_Consciousness::CalculateCapacityLevel(Verse.HediffSet diffSet, System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors) ---> System.FormatException: Method virtual System.Single RimWorld.PawnCapacityWorker_Consciousness::CalculateCapacityLevel(Verse.HediffSet diffSet, System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) RimWorld.PawnCapacityWorker_Consciousness:RimWorld.PawnCapacityWorker_Consciousness.CalculateCapacityLevel_Patch1 (RimWorld.PawnCapacityWorker_Consciousness,Verse.HediffSet,System.Collections.Generic.List`1<Verse.PawnCapacityUtility/CapacityImpactor>): IL_00ed: ret at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x0008c] in <255414689d344b1385ae719f6cce8c55>:0 at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000bb] in <255414689d344b1385ae719f6cce8c55>:0 --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0010f] in <255414689d344b1385ae719f6cce8c55>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x00093] in <255414689d344b1385ae719f6cce8c55>:0 at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <255414689d344b1385ae719f6cce8c55>:0 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <255414689d344b1385ae719f6cce8c55>:0 at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <255414689d344b1385ae719f6cce8c55>:0 at HarmonyLib.Harmony.PatchAll () [0x0001b] in <255414689d344b1385ae719f6cce8c55>:0 at Consciousness_Patch.MyPatch..cctor () [0x0000c] in <8563919d245445d6bacaab68dcc8f849>: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 (wrapper dynamic-method) Verse.StaticConstructorOnStartupUtility.Verse.StaticConstructorOnStartupUtility.CallAll_Patch2() (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

This error fires when I start up "Rimworld" for the first time. Do you have any idea what it means?
Veythara Jan 8, 2024 @ 10:52pm 
Got the same popping up
Vex  [developer] Jan 10, 2024 @ 2:43am 
Can't reproduce the error. Does it happen when just using my mod and harmony?
< >
Showing 1-3 of 3 comments
Per page: 1530 50