denikson-BepInExPack_Valheim icon

BepInExPack Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Last updated 13 hours ago
Total downloads 43293
Total rating 28 
Dependency string denikson-BepInExPack_Valheim-5.4.700
Dependants 83 other mods depend on this mod
README

BepInEx logo

BepInExPack for Valheim

This is BepInEx 5.4.7 pack for Valheim.

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.
  • Added unstripped Unity + Mono BCL DLLs for current versions of the game. See this issue comment for more info.
  • Updated Doorstop configuration and BepInEx to allow to load unstripped DLLs without having to overwrite game DLLs.
  • Added scripts necessary to run both game and dedicated server on Linux machines

Installation (manual)

If you are installing this manually, do the following

  1. Extract the archive into a folder. Do not extract into the game folder.
  2. Move the contents of BepInExPack_Valheim folder into <Steam Location>\steamapps\common\Valheim.
  3. Check that you have installed it correctly.
    If done correctly, your folder will look as follows

    BepInEx, winhttp.dll, doorstop_config.ini and unstripped_corlib in Valheim folder.
    4. 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 ValheimPlus instead and server hosts that support 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.

Issues, questions, etc.

> NOTE
> Valheim modding is still at its infancy and there is may not be single modding community.
> This is common with new games, please have patience with your issues.

At this moment, you can use the following channels to ask for help

Changelog

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

Available versions

Please note that the install buttons only work if you have compatible client software installed. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2021-2-26 5.4.700 4929 denikson-BepInExPack_Valheim-5.4.700.zip Install
2021-2-26 5.4.603 2357 denikson-BepInExPack_Valheim-5.4.603.zip Install
2021-2-23 5.4.602 20977 denikson-BepInExPack_Valheim-5.4.602.zip Install
2021-2-17 5.4.601 14585 denikson-BepInExPack_Valheim-5.4.601.zip Install
2021-2-14 5.4.600 394 denikson-BepInExPack_Valheim-5.4.600.zip Install
2021-2-14 5.4.6 51 denikson-BepInExPack_Valheim-5.4.6.zip Install