#Failed to initialize - HKMP (steam - Win 11)

7 messages · Page 1 of 1 (latest)

mellow heart
#

Whenever I launch the game with mods, HKMP fails to initialize and it's the only mod I tried to install so far.

I already tried to uninstall and reinstall the mod or to run the game as administrator. I still get the same error message.

This is the ModLog:

[INFO]:[API] - Starting mod loading
[INFO]:[API] - Loading Global Settings
[INFO]:[API] - Deleting modlogs older than 7 days ago
[INFO]:[HkmpMod] - Initializing
[INFO]:[HkmpMod] - Loading Global Settings
[INFO]:[API] - Creating mod preloads
[INFO]:[API] - Preloaded reflection in 2070ms
[INFO]:[Hkmp.HkmpMod] Initializing HKMP v2.4.2
[ERROR]:[API] - Failed to load Mod HKMP
[ERROR]:[API] - System.MissingMethodException: Mono.Cecil.Cil.ILProcessor MonoMod.Utils.DynamicMethodDefinition.GetILProcessor()
[ERROR]:[API] - at MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase from, System.Reflection.MethodInfo to, System.Object target, MonoMod.RuntimeDetour.HookConfig config) [0x00000] in <4e2760c7517c4ea79c633d67e84b319f>:0
[ERROR]:[API] - at MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase from, System.Reflection.MethodInfo to, System.Object target) [0x0001d] in <4e2760c7517c4ea79c633d67e84b319f>:0
[ERROR]:[API] - at MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase method, System.Delegate to) [0x0000e] in <4e2760c7517c4ea79c633d67e84b319f>:0
[ERROR]:[API] - at MonoMod.RuntimeDetour.HookGen.HookEndpoint._NewHook (System.Reflection.MethodBase from, System.Delegate to) [0x00000] in <4e2760c7517c4ea79c633d67e84b319f>:0
[ERROR]:[API] - at MonoMod.RuntimeDetour.HookGen.HookEndpoint._Add[TDelegate] (System.Func3[T1,T2,TResult] gen, TDelegate hookDelegate) [0x0003c] in <4e2760c7517c4ea79c633d67e84b319f>:0 [ERROR]:[API] - at MonoMod.RuntimeDetour.HookGen.HookEndpoint.Add (System.Delegate hookDelegate) [0x00000] in <4e2760c7517c4ea79c633d67e84b319f>:0 [ERROR]:[API] - at MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Add (System.Reflection.MethodBase method, System.Delegate hookDelegate) [0x00028] in <4e2760c7517c4ea79c633d67e84b319f>:0 [ERROR]:[API] - at MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Add[T] (System.Reflection.MethodBase method, System.Delegate hookDelegate) [0x00000] in <4e2760c7517c4ea79c633d67e84b319f>:0 [ERROR]:[API] - at On.UIManager.add_SetState (On.UIManager+hook_SetState ) [0x0000a] in <d116ec8f90dd4dd5bd4f7dd13cad249a>:0 [ERROR]:[API] - at Hkmp.Ui.UiManager..ctor (Hkmp.Game.Settings.ServerSettings clientServerSettings, Hkmp.Game.Settings.ModSettings modSettings, Hkmp.Networking.Client.NetClient netClient) [0x0014d] in /home/runner/work/HKMP/HKMP/HKMP/Ui/UiManager.cs:159 [ERROR]:[API] - at Hkmp.Game.GameManager..ctor (Hkmp.Game.Settings.ModSettings modSettings) [0x0004e] in /home/runner/work/HKMP/HKMP/HKMP/Game/GameManager.cs:39 [ERROR]:[API] - at Hkmp.HkmpMod.Initialize (System.Collections.Generic.Dictionary2[TKey,TValue] preloadedObjects) [0x00030] in /home/runner/work/HKMP/HKMP/HKMP/HkmpMod.cs:58
[ERROR]:[API] - at Modding.ModLoader.LoadMod (Modding.ModLoader+ModInstance mod, System.Boolean updateModText, System.Collections.Generic.Dictionary`2[TKey,TValue] preloadedObjects) [0x00022] in <2b54cdaf7a934f0eb297d50c4090ea9f>:0
[INFO]:[API] - Finished loading mods:
[INFO]:[API] - Modding API: 1.5.78.11833-74
[INFO]:[API] - HKMP : Failed to initialize! Check ModLog.txt
[INFO]:[API] -
[INFO]:[HkmpMod] - Saving Global Settings
[INFO]:[API] - Saving Global Settings

peak eagleBOT
#

Lumafly lumaflyicon (formerly Scarab+)

This is a new version of Scarab, that fixes many of the problems with the commonly used version, as well as adds additional community-requested features (filtering by tags, showing new releases, offline mode, shareable mods/mod lists, and modpacks).
https://themulhima.github.io/Lumafly/?download

#

How to fix Installer Errors

  • Make sure Hollow Knight is CLOSED.
  • Make sure that the Installer isn't in your Downloads folder (Desktop or a folder on the same drive as your game install is best).
  • If the installer is in a .zip, then you must Extract it
  • Right-click the installer file, and select "Run as Administrator"
  • If Lumafly is automatically closing, you may be missing a system file to open it. This is currently easily fixed by running the older installer, Scarab once.
    • -# Note: it's recommended to use Lumafly overall, as Scarab has some long term issues that are fixed by Lumafly.
upper sundial
#

^ Verify your game's integrity, then make sure that you're launching Lumafly with all of this true

mellow heart
#

Thanks.

#

I was able to verify that two game files weren't entirely valid. I reinstalled the game and that fixed the problem.