akarnokd / ThePlanetCrafterMods

BepInEx+Harmony mods for the Unity/Steam game The Planet Crafter
Apache License 2.0
44 stars 29 forks source link

0.5.x mod crashes #19

Closed akarnokd closed 2 years ago

akarnokd commented 2 years ago
[Warning:  HarmonyX] AccessTools.DeclaredMethod: Could not find method for type SpaceCraft.LiveDevTools and name ToggleUi and parameters 
ArgumentException: Undefined target method for patch method static void UIPinRecipe.Plugin::LiveDevTools_ToggleUi(System.Collections.Generic.List<UnityEngine.GameObject> ___handObjectsToHide)
  at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
  at HarmonyLib.PatchClassProcessor.Patch () [0x0006a] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
Rethrow as HarmonyException: Patching exception in method null
  at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0006c] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
  at HarmonyLib.PatchClassProcessor.Patch () [0x00095] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
  at HarmonyLib.Harmony.PatchAll (System.Type type) [0x00008] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
  at HarmonyLib.Harmony.CreateAndPatchAll (System.Type type, System.String harmonyInstanceId) [0x0001e] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
  at UIPinRecipe.Plugin.Awake () [0x000b3] in <d9ef968b5a4b4c51a5618183871ed8a1>:0 
UnityEngine.GameObject:Internal_AddComponentWithType(Type)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()
UnityEngine.InputSystem.InputManager:InitializeData()
UnityEngine.InputSystem.InputManager:Initialize(IInputRuntime, InputSettings)
UnityEngine.InputSystem.InputSystem:InitializeInPlayer(IInputRuntime, InputSettings)
UnityEngine.InputSystem.InputSystem:.cctor()
[Warning:  HarmonyX] AccessTools.DeclaredMethod: Could not find method for type SpaceCraft.LiveDevTools and name ToggleUi and parameters 
ArgumentException: Undefined target method for patch method static void UIHotbar.Plugin::LiveDevTools_ToggleUi(System.Collections.Generic.List<UnityEngine.GameObject> ___handObjectsToHide)
  at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
  at HarmonyLib.PatchClassProcessor.Patch () [0x0006a] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
Rethrow as HarmonyException: Patching exception in method null
  at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0006c] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
  at HarmonyLib.PatchClassProcessor.Patch () [0x00095] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
  at HarmonyLib.Harmony.PatchAll (System.Type type) [0x00008] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
  at HarmonyLib.Harmony.CreateAndPatchAll (System.Type type, System.String harmonyInstanceId) [0x0001e] in <474744d65d8e460fa08cd5fd82b5d65f>:0 
  at UIHotbar.Plugin.Awake () [0x00192] in <1ee75ea3b79045629f769563beb921c8>:0 
UnityEngine.GameObject:Internal_AddComponentWithType(Type)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()
UnityEngine.InputSystem.InputManager:InitializeData()
UnityEngine.InputSystem.InputManager:Initialize(IInputRuntime, InputSettings)
UnityEngine.InputSystem.InputSystem:InitializeInPlayer(IInputRuntime, InputSettings)
UnityEngine.InputSystem.InputSystem:.cctor()
akarnokd commented 2 years ago

Fixed in v92.