Valheim

Valheim

This topic has been locked
Shallak Dec 10, 2023 @ 9:19am
Vortex mod manager "Bepinex could not run preloader" solved
[Fatal : BepInEx] Could not run preloader!
[Fatal : BepInEx] System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\SteamLibrary\steamapps\common\Valheim\unstripped_corlib'.
at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x000f7] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.IO.FileSystemEnumerableIterator`1[TSource].HandleError (System.Int32 hr, System.String path) [0x00006] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.IO.FileSystemEnumerableIterator`1[TSource].CommonInit () [0x00054] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.IO.FileSystemEnumerableIterator`1[TSource]..ctor (System.String path, System.String originalUserPath, System.String searchPattern, System.IO.SearchOption searchOption, System.IO.SearchResultHandler`1[TSource] resultHandler, System.Boolean checkHost) [0x000d6] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.IO.FileSystemEnumerableFactory.CreateFileNameIterator (System.String path, System.String originalUserPath, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) [0x00009] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.IO.Directory.InternalGetFileDirectoryNames (System.String path, System.String userPathOriginal, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.IO.Directory.InternalGetFiles (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x0001c] in <695d1cc93cca45069c528c15c9fdd749>: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: 76561198182600831 [API loaded no]

I finally solved the problem with the latest denikson-BepInExPack_Valheim-5.4.2202.zip The game would not launch and I would get the error message Bepinex could not run preloader. There may be other ways of fixing it, but this is what I had to do and I haven't had a problem since. First, I had to uninstall Vortex mod manager. Then, I uninstalled Valheim. Next, I went to File Explorer and selected "This PC." In the search bar, I typed "Vortex". When the search was complete, I selected everything and deleted it. Then I typed in Valheim and did the same thing. I then dumped my recycle bin and restarted my computer. I reinstalled Valheim, then downloaded Vortex mod manager. Vortex now has a feature that will automatically download the latest version of Bepinex. If you attempt to launch the game, you will get the same error message but if you go to the Valheim folder D:\SteamLibrary\steamapps\common\Valheim (or where ever yours is), add a new folder and name it unstripped_corlib
Close everything and launch the game from Vortex, but it shouldn't matter if it's from Steam or the desktop icon. You should be able to get into the game with no issues. Close the game and add the rest of your mods and you should be good to go.
< >
Showing 1-9 of 9 comments
Kaladin Dec 15, 2023 @ 8:48am 
3
1
Or instead of all of that, just create a new 'unstripped_corlib' folder in your Valheim directory. XD

Or at least that's all I did to fix the issue, though your post certainly helped give me the idea so thanks a lot bro!
Shallak Dec 15, 2023 @ 3:44pm 
Originally posted by Kaladin:
Or instead of all of that, just create a new 'unstripped_corlib' folder in your Valheim directory. XD

Or at least that's all I did to fix the issue, though your post certainly helped give me the idea so thanks a lot bro!

I was going crazy trying to figure it out. I'm not real familiar with how all this works. I was at the point where I figured it was broke, and starting from scratch seemed like a good idea at the time. I'm glad you were able to fix it without going through everything I did. Thanks for the reply.
Card Shop Owner Dec 30, 2023 @ 8:46am 
have you found the fix? Im having the same issue
Last edited by Card Shop Owner; Dec 30, 2023 @ 8:48am
zombiethoughts Jan 6, 2024 @ 12:20pm 
Thank you, just creating the unstripped_corlib folder in the valheim root folder worked great for me. Have an award. Cheers!
Last edited by zombiethoughts; Jan 6, 2024 @ 12:21pm
Shallak Jan 7, 2024 @ 4:22am 
Originally posted by Tokki:
have you found the fix? Im having the same issue
Sorry for the late reply. I hope you were able to fix it. Read my original post or Kaladin's reply to my post. If you still can't get it, let me know and I'll try to help you.
Shallak Jan 7, 2024 @ 4:23am 
Originally posted by zombiethoughts:
Thank you, just creating the unstripped_corlib folder in the valheim root folder worked great for me. Have an award. Cheers!
You're welcome! I'm glad it helped
Shallak Jan 15, 2024 @ 7:47am 
Originally posted by zombiethoughts:
Thank you, just creating the unstripped_corlib folder in the valheim root folder worked great for me. Have an award. Cheers!

I just recently gave up on Vortex mod manager and started using R2modman from Thunderstore. The difference is night and day. Vortex makes you go to Nexus to download a mod, choose vortex or manual, if you don't have a paid version, you have to choose slow download, then you have to add the dependencies, then wait 5 seconds. R2modman does everything almost instantly within the mod manager including all dependencies . You have to check manually for updates on Vortex, then click each one and go through all the same steps as adding a new mod, and if there are conflicting issues, you have to decide which one to prioritize. R2modman automatically checks for updates. You can choose update all and it's done instantly. I wish I had used it a long time ago. Also, with R2modman, you can easily share all your mods and config files with friends with one click. It will give you a code that your friends enter and that's it, they instantly get all the mods and config files. If you have a dedicated server you're supposed to be able to update it as well, but I haven't tried it yet. I've only used R2modman for a couple of weeks and I love it. Another thing I found is that a few of the mods that are in both Nexus and Thunderstore had updates in Thunderstore that were not in Nexus. Before I downloaded R2modman, I opened vortex and told it to stop managing Valheim, then I deleted vortex, then I deleted the Bepinex folder in my game directory. I did have to manually install a few mods from Nexus (Willybach's HD Valheim, RustyNoodles Seasonality, and Willybach's Seasonality HD)into R2modman but it's very easy. If you're interested, I can tell you exactly how to do all of it so you don't have to figure out where everything is and save you the learning curve of a new manager which honestly isn't much.
Orisami d'Ban Mar 8, 2024 @ 1:46pm 
Thanks, it helped!
Shallak Mar 19, 2024 @ 11:52am 
Originally posted by Orisami d'Ban:
Thanks, it helped!
You're very welcome. I'm glad it helped
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Dec 10, 2023 @ 9:19am
Posts: 9