MelonLoader icon indicating copy to clipboard operation
MelonLoader copied to clipboard

Game crashing on start - Could not load file or assembly MonoMod.RuntimeDetour

Open Xenovail opened this issue 1 year ago • 4 comments

All of the following criteria must be met

  • [X] All Requirements must be installed.
  • [X] Full Latest.log file included. If no file exists then leave this unchecked and state so.

All of the following are optional to answer

  • [X] Tried reinstalling the Game.
  • [X] Tried reinstalling MelonLoader.
  • [X] Tried restarting PC.
  • [ ] Was able to see the Start Screen.

Describe the issue.

Latest.log

When I try starting the game I get the message below and the game crashes

[17:02:39.524] ------------------------------ [17:02:39.524] MelonLoader v0.6.1 Open-Beta [17:02:39.526] OS: Windows 11 [17:02:39.526] Hash Code: 696B58144EEC73C72FA36A811CA73312EEE4EC28AD5E3527BDA1E14F388A [17:02:39.526] ------------------------------ [17:02:39.526] Game Type: Il2cpp [17:02:39.527] Game Arch: x64 [17:02:39.527] ------------------------------ [17:02:39.527] Core::BasePath = C:\Program Files (x86)\Steam\steamapps\common\BloonsTD6 [17:02:39.527] Game::BasePath = C:\Program Files (x86)\Steam\steamapps\common\BloonsTD6 [17:02:39.527] Game::DataPath = C:\Program Files (x86)\Steam\steamapps\common\BloonsTD6\BloonsTD6_Data [17:02:39.528] Game::ApplicationPath = C:\Program Files (x86)\Steam\steamapps\common\BloonsTD6\BloonsTD6.exe [17:02:39.528] Runtime Type: net6 [17:02:39.618] ------------------------------ [17:02:39.618] Game Name: BloonsTD6 [17:02:39.618] Game Developer: Ninja Kiwi [17:02:39.620] Unity Version: 2021.3.16f1 [17:02:39.620] Game Version: 38.3 [17:02:39.620] ------------------------------

[NewEntryPoint] Caught exception invoking Initialize! System.TypeInitializationException: The type initializer for 'HarmonyLib.Harmony' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'MonoMod.RuntimeDetour, Version=22.3.23.4, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'MonoMod.RuntimeDetour, Version=22.3.23.4, Culture=neutral, PublicKeyToken=null' at HarmonyLib.Internal.RuntimeFixes.StackTraceFixes.Install() at HarmonyLib.Harmony..cctor() --- End of inner exception stack trace --- at HarmonyLib.Harmony..ctor(String id) at MelonLoader.Core.Initialize() in D:\a\MelonLoader\MelonLoader\MelonLoader\Core.cs:line 72 at MelonLoader.NativeHost.MelonLoaderInvoker.Initialize() in D:\a\MelonLoader\MelonLoader\MelonLoader.NativeHost\MelonLoaderInvoker.cs:line 10 at MelonLoader.NativeHost.NativeEntryPoint.Initialize() in D:\a\MelonLoader\MelonLoader\MelonLoader.NativeHost\NativeEntryPoint.cs:line 43

Did you attach your log file?

  • [X] Yes, I attached my log file to the text box above.
  • [ ] No, I could not find a log file at {Game_Directory}\MelonLoader\Latest.log

Xenovail avatar Sep 18 '23 21:09 Xenovail

it must have gotten deleted by either you or your antivirus. Turn off your antivirus or make an exception for the MelonLoader folder, then reinstall it.

RinLovesYou avatar Sep 19 '23 06:09 RinLovesYou

Im having the same issue. Fresh install, no antivirus. The game is a 64bit game which uses IL2CPP.

hexahigh avatar Dec 15 '23 16:12 hexahigh

Same here, fresh install, no antivirus, restarted pc.

Barragek0 avatar Feb 04 '24 05:02 Barragek0

I had same issue when installed with automatic melon loader. Then uninstalled and installed manually. Instruction can be found here: https://github.com/LavaGang/MelonLoader/blob/master/README.md

DestinyMKas avatar Mar 04 '24 15:03 DestinyMKas