Jump to content

Help needed. BepInex could not run preloader?


Recommended Posts

[Message:   BepInEx] BepInEx 5.4.22.0 - valheim (7/27/2024 8:28:05 AM)
[Info   :   BepInEx] Running under Unity v2022.3.17.5228416
[Info   :   BepInEx] CLR runtime version: 4.0.30319.42000
[Info   :   BepInEx] Supports SRE: True
[Info   :   BepInEx] System platform: Bits64, Windows
[Message:   BepInEx] Preloader started
[Info   :   BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.22.0]
[Info   :   BepInEx] Loaded 1 patcher method from [SlimVML.Loader 1.1.0.0]
[Info   :   BepInEx] 2 patcher plugins loaded
[Fatal  :   BepInEx] Could not run preloader!
[Fatal  :   BepInEx] System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Steam\steamapps\common\Valheim\unstripped_corlib'.
  at System.IO.Enumeration.FileSystemEnumerator`1[TResult].CreateDirectoryHandle (System.String path, System.Boolean ignoreNotFound) [0x0004d] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0
  at System.IO.Enumeration.FileSystemEnumerator`1[TResult]..ctor (System.String directory, System.IO.EnumerationOptions options) [0x00050] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0
  at System.IO.Enumeration.FileSystemEnumerable`1+DelegateEnumerator[TResult]..ctor (System.IO.Enumeration.FileSystemEnumerable`1[TResult] enumerable) [0x00000] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0
  at System.IO.Enumeration.FileSystemEnumerable`1[TResult]..ctor (System.String directory, System.IO.Enumeration.FileSystemEnumerable`1+FindTransform[TResult] transform, System.IO.EnumerationOptions options) [0x00042] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0
  at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles (System.String directory, System.String expression, System.IO.EnumerationOptions options) [0x00014] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0
  at System.IO.Directory.InternalEnumeratePaths (System.String path, System.String searchPattern, System.IO.SearchTarget searchTarget, System.IO.EnumerationOptions options) [0x0003c] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern, System.IO.EnumerationOptions enumerationOptions) [0x00000] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00007] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0
  at BepInEx.Utility.GetUniqueFilesInDirectories (System.Collections.Generic.IEnumerable`1[T] directories, System.String pattern) [0x0001a] in <5e471ddbeb974684bff43bc61f1b58cb>:0
  at BepInEx.Preloader.Patching.AssemblyPatcher.PatchAndLoad (System.String[] directories) [0x00011] in <a7e3be82e3634ca29e921a65272c4875>:0
  at BepInEx.Preloader.Preloader.Run () [0x00216] in <a7e3be82e3634ca29e921a65272c4875>:0
Setting breakpad minidump AppID = 892970
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198248483634 [API loaded no]
this is the best screenshot i could get. still learning windows 11. i can't get pass this to get mods to work.

Link to comment
Share on other sites

BepInEx appears to be looking for a file that does not exist. 

 System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Steam\steamapps\common\Valheim\unstripped_corlib'.

Sounds like either a file was deleted/renamed or there is data corruption on the disk. 

Try reinstalling BepInEx.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...