Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More red errors #55

Open
Mortagonus opened this issue Apr 25, 2024 · 1 comment
Open

More red errors #55

Mortagonus opened this issue Apr 25, 2024 · 1 comment

Comments

@Mortagonus
Copy link

Hey getting the following on load with the latest version:

Error in static constructor of Locks.Initialization: System.TypeInitializationException: The type initializer for 'Locks.Initialization' threw an exception. ---> System.ArgumentException: You can only patch implemented methods/constructors. Patch the declared method virtual System.Boolean RimWorld.Building_Door::PawnCanOpen(Verse.Pawn p) instead.
[Ref 954C37C7]
at HarmonyLib.PatchProcessor.Patch () [0x00051] in :0
at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x0002a] in :0
at Locks.CompatibilityPatches.DoorsExpanded.Init () [0x00077] in <5e837cb6233f47dd86ca0419e4b5ec04>:0
at <0x1eb3f85f220 + 0x0003a>
--- End of inner exception stack trace ---
[Ref 8424EA15]
at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in :0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00028] in <332f949bcc384ea8b3e92bd925a3878c>:0
- POSTFIX LunarFramework.Bootstrap: Void LunarFramework.Internal.Patches.Patch_Verse_StaticConstructorOnStartupUtility:CallAll_Postfix()
- POSTFIX net.avilmask.rimworld.mod.NonUnoPinata: Void NonUnoPinata.Patches.StaticConstructorOnStartupUtility_CallAll_NonUnoPinataPatch:Postfix()
- POSTFIX VanillaTradingExpandedEarly.Mod: Void VanillaTradingExpanded.Initializer:Postfix()
- POSTFIX LayeredDestruction.patch: Void LayeredDestruction.StaticConstructorOnStartupUtilityPatch:Postfix()
- POSTFIX PerformanceOptimizer.Main: Void PerformanceOptimizer.InitializeMod:Postfix()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.StaticConstructorOnStartupUtility.CallAll_Patch5 ()
Verse.PlayDataLoader/<>c:b__4_4 ()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Entry:Update ()

@Hazzer
Copy link
Collaborator

Hazzer commented Apr 26, 2024

Please provide whole game log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants