gurrenm3 / BTD-Mod-Helper

A powerful and easy to use API for modding BTD6, BATTD, and other Ninja Kiwi games.
https://gurrenm3.github.io/BTD-Mod-Helper/
GNU General Public License v3.0
170 stars 117 forks source link

Refuses to load #11

Closed MrNooberDude closed 2 years ago

MrNooberDude commented 2 years ago

Whenever I load in, I get this whenever I load BTD6 Mod Helper.

[BloonsTD6_Mod_Helper] [ERROR] HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> System.Exception: Parameter "removeSave" not found in method void Assets.Scripts.Unity.UI_New.InGame.InGame::Restart()
  at HarmonyLib.Public.Patching.HarmonyManipulator.EmitCallParameter (HarmonyLib.Internal.Util.ILEmitter il, System.Reflection.MethodBase original, System.Reflection.MethodInfo patch, System.Collections.Generic.Dictionary`2[TKey,TValue] variables, System.Boolean allowFirsParamPassthrough, Mono.Cecil.Cil.VariableDefinition& tmpObjectVar, System.Collections.Generic.List`1[HarmonyLib.Public.Patching.HarmonyManipulator+ArgumentBoxInfo]& tmpBoxVars) [0x00685] in <fa64fa77f76e4191bc8d410e9b48c956>:0
  at HarmonyLib.Public.Patching.HarmonyManipulator.WritePostfixes (HarmonyLib.Internal.Util.ILEmitter il, System.Reflection.MethodBase original, HarmonyLib.Internal.Util.ILEmitter+Label returnLabel, System.Collections.Generic.Dictionary`2[TKey,TValue] variables, System.Collections.Generic.ICollection`1[T] postfixes, System.Boolean debug) [0x00146] in <fa64fa77f76e4191bc8d410e9b48c956>:0
  at HarmonyLib.Public.Patching.HarmonyManipulator.MakePatched (System.Reflection.MethodBase original, MonoMod.Cil.ILContext ctx, System.Collections.Generic.List`1[T] prefixes, System.Collections.Generic.List`1[T] postfixes, System.Collections.Generic.List`1[T] transpilers, System.Collections.Generic.List`1[T] finalizers, System.Collections.Generic.List`1[T] ilmanipulators, System.Boolean debug) [0x001a4] in <fa64fa77f76e4191bc8d410e9b48c956>:0
   --- End of inner exception stack trace ---
  at HarmonyLib.Public.Patching.HarmonyManipulator.MakePatched (System.Reflection.MethodBase original, MonoMod.Cil.ILContext ctx, System.Collections.Generic.List`1[T] prefixes, System.Collections.Generic.List`1[T] postfixes, System.Collections.Generic.List`1[T] transpilers, System.Collections.Generic.List`1[T] finalizers, System.Collections.Generic.List`1[T] ilmanipulators, System.Boolean debug) [0x002a8] in <fa64fa77f76e4191bc8d410e9b48c956>:0
  at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo, MonoMod.Cil.ILContext ctx) [0x00051] in <fa64fa77f76e4191bc8d410e9b48c956>:0
  at MelonLoader.InternalUtils.HarmonyIl2CppMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x00029] in <fa64fa77f76e4191bc8d410e9b48c956>:0
  at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00033] in <fa64fa77f76e4191bc8d410e9b48c956>:0
   --- End of inner exception stack trace ---
  at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00045] in <fa64fa77f76e4191bc8d410e9b48c956>:0
  at HarmonyLib.PatchClassProcessor.Patch () [0x00095] in <fa64fa77f76e4191bc8d410e9b48c956>:0
  at HarmonyLib.Harmony.<PatchAll>b__11_0 (System.Type type) [0x00007] in <fa64fa77f76e4191bc8d410e9b48c956>:0
  at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <fa64fa77f76e4191bc8d410e9b48c956>:0
  at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <fa64fa77f76e4191bc8d410e9b48c956>:0
  at MelonLoader.MelonHandler+<>c.<OnApplicationStart_Mods>b__29_0 (MelonLoader.MelonMod x) [0x0002a] in <fa64fa77f76e4191bc8d410e9b48c956>:0
  at MelonLoader.MelonHandler.InvokeMelonMethod[T] (System.Collections.Generic.List`1[T]& melons, MelonLoader.MelonHandler+InvokeMelonMethodDelegate`1[T] method, System.Boolean remove_failed) [0x00032] in <fa64fa77f76e4191bc8d410e9b48c956>:0
Setting breakpad minidump AppID = 960090
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561199095638161 [API loaded no]

What can I do to resolve this?

gurrenm3 commented 2 years ago

Can you join the discord server so I can help better? https://discord.gg/PBwGjDQ4vX