You are viewing a potentially older version of this package. View all versions.
denikson-BepInExPack_Valheim-5.4.2331 icon

BepInExPack Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Date uploaded a week ago
Version 5.4.2331
Download link denikson-BepInExPack_Valheim-5.4.2331.zip
Downloads 9032
Dependency string denikson-BepInExPack_Valheim-5.4.2331

README

BepInEx logo

Due to Thunderstore limitations, if there is information that needs to be live updated or shared about this pack it will be listed on the Wiki tab of the package. If you need to have something listed there, please contact one of the maintainers.

BepInExPack for Valheim

This is BepInEx 5.4.23.3 pack but pre-configured for Valheim. It is maintained by Azumatt, Vapok, and Margmas in the Valheim community. The specific changes and deviations from upstream BepInEx can be see in Azumatt's Repo. If changes to the pack need to be made but BepInEx itself doesn't need to update typically we will increment the version for Thunderstore. Example: 5.4.2202, this does not mean that BepInEx itself needed to update, likely it's a small change for the game or something needed to change in the description etc.

BepInEx is a general purpose framework for Unity modding. BepInEx includes tools and libraries to

  • load custom code (hereafter plugins) into the game on launch;
  • patch in-game methods, classes and even entire assemblies without touching original game files;
  • configure plugins and log game to desired outputs like console or file;
  • manage plugin dependencies.

BepInEx is currently one of the most popular modding tools for Unity on GitHub.

This pack's contents

This pack is preconfigured and usable for Valheim modding.
In particular, the changes from base BepInEx releases are:

  • Added preconfigured BepInEx.cfg with console enabled and correct entry point for mods.
  • Added scripts necessary to run both game and dedicated server on Linux machines or through r2modman
  • Edited BepInEx preloader to help with some mods patching
  • Force the Valheim Game class isModded flag to true after the chainloader loads.
  • Thunderstore version of the pack is printed to the console since it's separate from the actual BepInEx version if only site changes are needed.

Issues, questions, etc.

🔴IMPORTANT❗🔴 DO NOT ASK FOR HELP in the Official BepInEx Discord

The Valheim community runs a customized version of BepInEx and the official BepInEx folks are unable to help.

If you are having problems with BepInEx in general, mods running on Valheim, or unsure between the two, please seek assistance from ANY of the Discords of the maintainers listed below.

Current BepInEx for Valheim Maintainers:

Installation (game, automated)

This is the recommended way to install BepInEx on the game.

  1. Download and install Gale, Thunderstore Mod Manager or r2modman
  2. Click Install with Mod Manager button on top of the page
  3. Run the game via the mod manager

Installation (server, automated)

There are some managed dedicated server that support simple and automatic BepInEx installation.
Here is a list of known ones (list updated as more is known).
Note: Some of the links may be affiliate links

Valhost.net

ValheimServerHosting

XGamingServer

Installation (manual)

If you are installing this manually, do the following

  1. Start with a clean install. Make triple sure your Valheim folder is clean and unmodified

  2. Click the Manual Download button on the package page above to download the archive, it looks like this:

    Manual Download Button

  3. Once saved to your computer, extract the archive into a folder. Do not extract into the game folder.

  4. Move the contents of BepInExPack_Valheim folder into <Steam Location>\steamapps\common\Valheim.

    Moving contents of BepInExPack_Valheim

  5. Check that you have installed it correctly. If done correctly, your folder will look as follows

    BepInEx, winhttp.dll, and doorstop_config.ini in Valheim folder.

  6. Follow either Windows or Linux game running instructions below:

Configuration (Windows)

No need to configure. Simply run the game. If everything is correct, you will see a console pop up.

Configuration (Linux, game)

  1. Make start_game_bepinex.sh executable with chmod u+x start_game_bepinex.sh.

  2. In Steam, go to game's properties and set game's launch arguments to

    ./start_game_bepinex.sh %command%
    

    Note to advanced users: You can change ./start_game_bepinex.sh to full path to the script. This way you can install this pack entirely outside of game folder.

  3. Run the game via Steam.

At this moment you will not see any clear indication if BepInEx works. It is suggested to test by installing a simple plugin such as MessageCenter from BepInEx.Utility.

Configuration (Linux, server)

This guide assumes you have enough knowledge working with Linux.
If not, it is suggested you use a server host that supports it out of the box.

  1. Make start_server_bepinex.sh executable with chmod u+x start_server_bepinex.sh.
  2. Edit start_server_bepinex.sh to change the launch parameter like you would with Valheim's own launch script.
  3. Run start_server_bepinex.sh to start the server.

If done correctly, you will see BepInEx bootstrap messages in the terminal.

Checking BepInEx version and load status

If BepInEx was loaded successfully into the game, you should see a BepInEx console window launched next to the game in the taskbar (Windows):

Stacked: BepInEx console window in taskbar

Expanded: BepInEx console window in taskbar 2

Confirm no errors or issues by having Grey/White text in the console only (Info and Message). Red are fatal errors, Dark Red are errors, Yellow are warnings, Dark Gray are debug, and any other color is a custom message.

BepInEx console window

Useful links

CHANGELOG

Changelog

5.4.2332

🔧 Changed

  • Updated libdoorstopx64.so to be correctly named libdoorstop_x64.so

5.4.2331

🔧 Changed

  • Updated libdoorstop_x64.so in the BepInEx package to target glibc 2.34 by compiling against Ubuntu 22.04.

    • This restores compatibility with Ubuntu 22.04, Debian 12, and other Linux distributions using glibc 2.34 or newer.
    • Previous builds were compiled against newer glibc versions (e.g., 2.38), which caused runtime failures on older but still-supported systems.

Compatibility Notes

  • Systems using Debian 11 or older (glibc < 2.34) are no longer supported.

  • Containers like lloesche/valheim-server-docker must be updated to a base image that provides glibc 2.34+.

  • If you're still encountering issues after updating, verify your runtime glibc version using:

    ldd --version
    

🛠️ Script Changes

  • start_server_bepinex.sh updated to correct vars

Special shouts

  • Thank you to Arrowmaster for testing and help given.

5.4.2330

🔧 Plugin Changes

  • Valheim.DisplayBepInExInfo.dll is no longer included by default. This plugin is now offered separately on Thunderstore for those who still want it here. It provided plugin counts in the main menu and in-game access to BepInEx log output via the console.

    ⚠️ This change only affects new installs and new profiles. Existing setups are unaffected. For debugging, it’s now recommended to either:

    • Use the console window that launches alongside the game, or
    • Directly open the BepInEx/LogOutput.log file.

📘 Documentation

  • The README has been updated with more relevant, up-to-date information.
  • Due to limitations on Thunderstore descriptions, any live updates or important notices for this pack will be posted on the Wiki tab. If you have something that should be added, contact one of the maintainers.

⬆️ Upstream Updates

  • Updated BepInEx from 5.4.22 to 5.4.23.3.
  • Preloader updated to align with this BepInEx release.
  • Doorstop upgraded to v4.4.0 as part of the upstream sync.

🛠️ Startup Script Improvements

  • Replaced the official BepInEx start_game_bepinex.sh with a community-tested version by Arrowmaster. This version provides better handling of Steam launch arguments, regardless of their order.
Changelog History (click to expand)

5.4.2202

  • ReadMe Updated to remove links to BepInEx Discord
  • Preloader version incremented.
  • Update made to Preloader to ensure assembly's are being patched correctly.
    • This should remove the warning message that shows when BepInEx starts.
  • Modders: Unstripped Corlibs are still removed. If you are having issues with System dependencies, please include those dependencies directly into your project.

5.4.2201

  • As of Valheim 0.217.24, There is no longer a need for the unstripped corlibs to be shipped with BepInEx.
    • This version removes the corlibs and instructs doorstop not to include them.
    • For modders, this is important, as you'll want to make sure you are referencing Unity from the Game Folder now.

5.4.22

  • Update for Valheim 0.217.22 and upgrade BepInEx to 5.4.22

5.4.2105

  • Updating Thunderstore version in Preloader.DLL

5.4.2104

  • For Unix installs, including dedicated servers, the ForceBepInExTTYDriver config setting was removed in a prior update. This is needed for servers to shut down correctly.

5.4.2103

  • Log the BepInExPack Valheim version the user is using right before the preloader completes. This is to help troubleshoot issues by stating what version of the pack you are running.

5.4.2102

  • Updated to force the Assembly entry point by default. This should prevent some issues with users having older config files.

5.4.2101

  • Updated to support Valheim 0.214.3

5.4.2100

  • Updated to BepInEx 5.4.21

5.4.1902

  • Updated to support Valheim 0.214.2

5.4.1901

  • Updated to support Valheim 0.209.5

5.4.1900

5.4.1700

5.4.1601

  • Updated unstripped DLLs for Unity 2019.4.31

5.4.1600

5.4.1502

  • Adjusted start_game_bepinex.sh to handle cmdline args better

5.4.1501

  • Updated Valheim.DisplayBepInExInfo to 2.0.0(changelog)

5.4.1500

5.4.1400

  • Updated to BepInEx 5.4.14 (changelog)
  • Updated *nix start script for games to account for new Steam game bootstrapper

5.4.1100

5.4.1001

  • Updated unstripped DLLs for Unity 2019.4.24

5.4.1000

  • Updated to BepInEx 5.4.10 (changelog)
  • Updated Valheim.DisplayBepInExInfo to 1.1.0 (changelog)

5.4.901

  • Updated README with some dedicated servers that support BepInEx by default

5.4.900

  • Updated to BepInEx 5.4.9 (changelog)
  • Updated Valheim.DisplayBepInExInfo to 1.0.1 (changelog)
  • Set PreventClose to true by default. This prevents console from being closed (and thus unsaved game being closed by accident)

5.4.800

5.4.701

  • Updated screenshot of example installation

5.4.700

  • Updated to BepInEx 5.4.7

5.4.603

  • Updated BepInEx 5.4.6 to a newer build
  • Added --enable-console true|false command-line option to enable or disable BepInEx console
  • Added --doorstop-dll-search-override command-line option to behave the same way as config's dllSearchPathOverride option

5.4.602

  • Updated BepInEx 5.4.6 to a newer build
  • Update config to write Unity logs to LogOutput.log by default
  • Added preconfigured scripts and files to run the game under Linux

5.4.601

  • Updated unstripped DLLs for Unity 2019.4.20

5.4.600

  • Adjusted README
  • Adjusted versioning to account for inter-version changes

5.4.6

  • Initial release with BepInEx 5.4.6