doombubbles / IndustrialFarmer

Industrial Farmer Hero Mod for BloonsTD6. An example for adding a custom hero to BTD6.
10 stars 2 forks source link

Crashes on Hero Selection #11

Open bliteknight opened 1 week ago

bliteknight commented 1 week ago

Game crashes on hero selection screen when you select this hero

Here are some logs to help 

[22:29:54.220] Loading Mods from 'C:\Program Files (x86)\Steam\steamapps\common\BloonsTD6\Mods'...
[22:29:54.220] ------------------------------
[22:29:54.222] Melon Assembly loaded: '.\Mods\AutoNudge.dll'
[22:29:54.223] SHA256 Hash: '5c2d880ffb505d0d60072245e823c41988bb371e24ab578476e1f0f93ed92815'
[22:29:54.261] Melon Assembly loaded: '.\Mods\Btd6ModHelper.dll'
[22:29:54.262] SHA256 Hash: '687fdaa2ce748572f7e0b1755103ef34a9232489fb3ce0e390e69c531a5af8bb'
[22:29:54.269] Melon Assembly loaded: '.\Mods\IndustrialFarmer.dll'
[22:29:54.269] SHA256 Hash: 'a4753046ccdc193ee2d06958638672f97b4c02ec16524c5381f6134e176398c8'

[22:29:54.747] ------------------------------
[22:29:54.748] BloonsTD6 Mod Helper v3.1.21
[22:29:54.748] by Gurrenm4 and Doombubbles
[22:29:54.748] Assembly: Btd6ModHelper.dll
[22:29:54.748] ------------------------------
[22:29:54.751] ------------------------------
[22:29:54.751] Auto Nudge v1.0.2
[22:29:54.751] by doombubbles
[22:29:54.752] Assembly: AutoNudge.dll
[22:29:54.752] ------------------------------
[22:29:54.755] ------------------------------
[22:29:54.755] Industrial Farmer v1.0.11
[22:29:54.755] by doombubbles
[22:29:54.756] Assembly: IndustrialFarmer.dll
[22:29:54.757] ------------------------------
[22:29:54.757] ------------------------------
....

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Repeat 2 times:
--------------------------------
   at Il2CppInterop.Runtime.IL2CPP.il2cpp_runtime_invoke(IntPtr, IntPtr, Void**, IntPtr ByRef)
--------------------------------
   at DynamicClass.DMD<Il2CppAssets.Scripts.Unity.UI_New.Main.HeroSelect.HeroUpgradeDetails::BindDetails>(Il2CppAssets.Scripts.Unity.UI_New.Main.HeroSelect.HeroUpgradeDetails, System.String, Boolean, Boolean)
   at DynamicClass.(il2cpp -> managed) BindDetails(il2cpp -> managed) BindDetails(IntPtr, IntPtr, Byte, Byte, Il2CppInterop.Runtime.Runtime.Il2CppMethodInfo*)
   at Il2CppInterop.Runtime.IL2CPP.il2cpp_runtime_invoke(IntPtr, IntPtr, Void**, IntPtr ByRef)
   at Il2CppInterop.Runtime.IL2CPP.il2cpp_runtime_invoke(IntPtr, IntPtr, Void**, IntPtr ByRef)
   at DynamicClass.DMD<UnityEngine.UI.Button::OnPointerClick>(UnityEngine.UI.Button, UnityEngine.EventSystems.PointerEventData)
   at DynamicClass.(il2cpp -> managed) OnPointerClick(il2cpp -> managed) OnPointerClick(IntPtr, IntPtr, Il2CppInterop.Runtime.Runtime.Il2CppMethodInfo*)
bliteknight commented 1 week ago

UPDATE: Downgraded Melonloader to 0.6.1 and it works, so there must be a breaking change to version 0.6.4

TheSpiderDungeon commented 4 days ago

I'm also having this issue. I can confirm that the suggested workaround seems to work.