doombubbles / in-game-hero-switch

A BTD6 Mod Helper mod. Allows you to change your hero while already in a game.
2 stars 0 forks source link

Exception when trying to cycle hero #2

Open saltyoverflow opened 3 months ago

saltyoverflow commented 3 months ago

Can't cycle heros. Every time i press the cycle shortcut the following message spawns in melon loader:

System.MissingMethodException: Method not found: 'Il2CppAssets.Scripts.Unity.UI_New.InGame.StoreMenu.TowerPurchaseButton Il2CppAssets.Scripts.Unity.UI_New.InGame.RightMenu.ShopMenu.GetTowerButtonFromBaseId(System.String)'.
   at InGameHeroSwitch.InGameHeroSwitchMod.ChangeHero(Int32 delta)
   at InGameHeroSwitch.InGameHeroSwitchMod.OnUpdate() in /home/runner/work/in-game-hero-switch/in-game-hero-switch/InGameHeroSwitch/InGameHeroSwitchMod.cs:line 89
   at MelonLoader.MelonEventBase`1.Invoke(Action`1 delegateInvoker) in D:\a\MelonLoader\MelonLoader\MelonLoader\Melons\Events\MelonEvent.cs:line 143

I don't even have a D:\a\ Folder on my computer, no idea why the mod is expecting something there. Reinstalling TD6, Modloader and the mod did not help.

KendyPls commented 3 months ago

Same issue here, error below:

[17:20:25.663] [In-Game_Hero_Switch] System.MissingMethodException: Method not found: 'Il2CppAssets.Scripts.Unity.UI_New.InGame.StoreMenu.TowerPurchaseButton Il2CppAssets.Scripts.Unity.UI_New.InGame.RightMenu.ShopMenu.GetTowerButtonFromBaseId(System.String)'.
   at InGameHeroSwitch.InGameHeroSwitchMod.ChangeHero(Int32 delta)
   at InGameHeroSwitch.InGameHeroSwitchMod.OnUpdate() in /home/runner/work/in-game-hero-switch/in-game-hero-switch/InGameHeroSwitch/InGameHeroSwitchMod.cs:line 89
   at MelonLoader.MelonEventBase`1.Invoke(Action`1 delegateInvoker) in D:\a\MelonLoader\MelonLoader\MelonLoader\Melons\Events\MelonEvent.cs:line 143
[17:20:27.190] [In-Game_Hero_Switch] System.MissingMethodException: Method not found: 'Il2CppAssets.Scripts.Unity.UI_New.InGame.StoreMenu.TowerPurchaseButton Il2CppAssets.Scripts.Unity.UI_New.InGame.RightMenu.ShopMenu.GetTowerButtonFromBaseId(System.String)'.
   at InGameHeroSwitch.InGameHeroSwitchMod.ChangeHero(Int32 delta)
   at InGameHeroSwitch.InGameHeroSwitchMod.OnUpdate() in /home/runner/work/in-game-hero-switch/in-game-hero-switch/InGameHeroSwitch/InGameHeroSwitchMod.cs:line 93
   at MelonLoader.MelonEventBase`1.Invoke(Action`1 delegateInvoker) in D:\a\MelonLoader\MelonLoader\MelonLoader\Melons\Events\MelonEvent.cs:line 143