Open vitalikbyrevich opened 1 year ago
I decided to upgrade and got this error in the logs. [Info :PlanBuild.Patches] Applying Gizmo patches [Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Gizmo.ComfyGizmo and name HandleAxisInput and parameters [Error : Unity Log] ArgumentException: Undefined target method for patch method static bool PlanBuild.ModCompat.PatcherGizmo::ComfyGizmo_HandleAxisInput_Prefix() Stack trace: HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0) Rethrow as HarmonyException: Patching exception in method null HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.Harmony.PatchAll (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) PlanBuild.Patches.Apply () (at <7e9cb6e4ba5a4f6cbc248ba09441ef5b>:0) PlanBuild.PlanBuildPlugin.Awake () (at <7e9cb6e4ba5a4f6cbc248ba09441ef5b>:0) UnityEngine.GameObject:AddComponent(Type) BepInEx.Bootstrap.Chainloader:Start() UnityEngine.Application:.cctor()
[Info :Server Devcommands] "ComfyGizmo" detected. Patching "HandleAxisInput" for mouse wheel binding. [Warning: HarmonyX] AccessTools.Method: Could not find method for type Gizmo.ComfyGizmo and name HandleAxisInput and parameters [Error : Unity Log] NullReferenceException: Null method for valheim.jerekuusela.server_devcommand.comfygizmo Stack trace: HarmonyLib.PatchProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer, HarmonyLib.HarmonyMethod ilmanipulator) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) ServerDevcommands.ComfyGizmoPatcher.DoPatching (System.Reflection.Assembly assembly) (at <7da8fb1e734b429da91d4ccc1356b42b>:0) ServerDevcommands.ServerDevcommands.Start () (at <7da8fb1e734b429da91d4ccc1356b42b>:0)
There are no such errors when using "GizmoReloaded".
I decided to upgrade and got this error in the logs. [Info :PlanBuild.Patches] Applying Gizmo patches [Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Gizmo.ComfyGizmo and name HandleAxisInput and parameters [Error : Unity Log] ArgumentException: Undefined target method for patch method static bool PlanBuild.ModCompat.PatcherGizmo::ComfyGizmo_HandleAxisInput_Prefix() Stack trace: HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0) Rethrow as HarmonyException: Patching exception in method null HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.Harmony.PatchAll (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) PlanBuild.Patches.Apply () (at <7e9cb6e4ba5a4f6cbc248ba09441ef5b>:0) PlanBuild.PlanBuildPlugin.Awake () (at <7e9cb6e4ba5a4f6cbc248ba09441ef5b>:0) UnityEngine.GameObject:AddComponent(Type) BepInEx.Bootstrap.Chainloader:Start() UnityEngine.Application:.cctor()
[Info :Server Devcommands] "ComfyGizmo" detected. Patching "HandleAxisInput" for mouse wheel binding. [Warning: HarmonyX] AccessTools.Method: Could not find method for type Gizmo.ComfyGizmo and name HandleAxisInput and parameters [Error : Unity Log] NullReferenceException: Null method for valheim.jerekuusela.server_devcommand.comfygizmo Stack trace: HarmonyLib.PatchProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer, HarmonyLib.HarmonyMethod ilmanipulator) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) ServerDevcommands.ComfyGizmoPatcher.DoPatching (System.Reflection.Assembly assembly) (at <7da8fb1e734b429da91d4ccc1356b42b>:0) ServerDevcommands.ServerDevcommands.Start () (at <7da8fb1e734b429da91d4ccc1356b42b>:0)
There are no such errors when using "GizmoReloaded".