Jump to content

Open Community  ·  50 members

Valheim

Could not run preloader


Acetoolguy

Recommended Posts

This the first line in a wall of red text I get when trying to launch the game. From Bepinex. Game will load and run fine, just without any mods. What is it trying to tell me, and anybody have a fix for a low skill user?

Thanks for looking.

Link to comment
Share on other sites

Do you have the latest version of Bepinex (5.4.22.0) ?

Here are the first lines from mine:

[Message:   BepInEx] BepInEx 5.4.22.0 - valheim (1/10/2024 12:32:25 PM)
[Message:   BepInEx] User is running BepInExPack Valheim version 5.4.2202 from Thunderstore
[Info   :   BepInEx] Running under Unity v2022.3.12.5236448
[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]

 

Edited by tholwin
Link to comment
Share on other sites

  • 2 months later...

Sorry for bumping this thread but I'm having similar issue with BepInEx's preloader whenever I run Valheim, and those red codes I'm having encounter, even when I disabled it and it's still occurred and I have no idea how to fix it.

 

Quote

[Message:   BepInEx] BepInEx 5.4.22.0 - valheim (2024-04-26 6:21:37 PM)
[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:\SteamLibrary\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
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\SteamLibrary\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

 

UPDATE: I've discovered how to fix it by creating a folder with label "unstripped_corlib" in Valheim's directory, and it will be fixed by itself.

Edited by Dragonboom26
Link to comment
Share on other sites

  • Recently Browsing   0 members

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