边缘世界 RimWorld

边缘世界 RimWorld

Consciousness Patch
TurtleShroom 2023 年 11 月 11 日 下午 5:17
Bug Reports
Good evening.

Post your bug reports here.



-TURTLESHROOM
< >
正在显示第 1 - 4 条,共 4 条留言
TurtleShroom 2023 年 11 月 11 日 下午 5:18 
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 2024 年 1 月 8 日 下午 10:52 
Got the same popping up
Vex  [开发者] 2024 年 1 月 10 日 上午 2:43 
Can't reproduce the error. Does it happen when just using my mod and harmony?
graveknave 8 月 21 日 下午 7:50 
Getting this error:

Error in Consciousness Patch, assembly name: Consciousness-Patch, method: ConsciousnessMod:DoSettingsWindowContents, exception: System.MissingMethodException: Method not found: UnityEngine.Rect Verse.Listing_Standard.Label(string,single,string) [Ref F31C2CF9] (wrapper managed-to-native) System.Reflection.RuntimeModule.ResolveMethodToken(intptr,int,intptr[],intptr[],System.Reflection.ResolveTokenError&) at System.Reflection.RuntimeModule.ResolveMethod (System.Reflection.Module module, System.IntPtr monoModule, System.Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x0000f] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0 at System.Reflection.RuntimeModule.ResolveMethod (System.Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x00000] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0 at HarmonyLib.MethodBodyReader.ReadOperand (HarmonyLib.ILInstruction instruction) [0x00366] in <7d173b5c15724e3091f1e8ddff8e2abc>:0 at HarmonyLib.MethodBodyReader.GenerateInstructions () [0x00022] in <7d173b5c15724e3091f1e8ddff8e2abc>:0 <0x40b63ac0 + 0x000e7> <unknown method> at HarmonyLib.MethodCopier.GetInstructions (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method, System.Int32 maxTranspilers) [0x00024] in <7d173b5c15724e3091f1e8ddff8e2abc>:0 at HarmonyLib.PatchProcessor.GetOriginalInstructions (System.Reflection.MethodBase original, System.Reflection.Emit.ILGenerator generator) [0x0000b] in <7d173b5c15724e3091f1e8ddff8e2abc>:0 at ModErrorChecker.ModErrorChecker.CheckAssemblies () [0x000af] in <c01cefb11f204c02a513919b7c43f698>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string) ModErrorChecker.ModErrorChecker/<StartChecks>d__1:MoveNext () System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (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.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run () System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation/<>c:<.cctor>b__7_0 (object) UnityEngine.UnitySynchronizationContext/WorkRequest:Invoke () UnityEngine.UnitySynchronizationContext:Exec () UnityEngine.UnitySynchronizationContext:ExecuteTasks ()

Yes, I am using Harmony
最后由 graveknave 编辑于; 8 月 21 日 下午 7:51
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50