As of March 2021, this repo now has an env flag to run with BepInEx, Click Here to find out more
Due to the fact that there are so many variants of installing and running BepInEx; we will be covering only the basics. If you have additional questions please visit their discord. BepInEx Discord If you have issues with setting up a specific plugin, please contact the mod developer!
-
Access the container as the steam user.
docker-compose exec --user steam valheim bash
-
Create a new folder
mkdir -p ~/tmp
-
Download BepInEx
wget -O /home/steam/tmp/bepinex.zip https://github.com/BepInEx/BepInEx/releases/download/v5.4.23.2/BepInEx_linux_x64_5.4.23.2.zip
-
Extract the BepInEx zip file
unzip -o /home/steam/tmp/bepinex.zip -d /home/steam/valheim
-
Cleanup files
cd /home/steam/valheim && rm -rf /home/steam/tmp
-
Restart your server.
You should see a huge disclaimer in your console about running with bepinex.
These are set automatically by Odin for a basic BepInEx installation; you DO NOT need to set these and only mess with them if you Know what you are doing.
Variable | Default | Required | Description |
---|---|---|---|
LD_PRELOAD | libdoorstop_x64.so |
TRUE | Sets which library to preload on Valheim start. |
LD_LIBRARY_PATH | ./linux64:/home/steam/valheim/doorstop_libs |
TRUE | Sets which library paths it should look in for preload libs. |
DOORSTOP_ENABLE | TRUE |
TRUE | Enables Doorstop or not. |
DOORSTOP_LIB | libdoorstop_x64.so |
TRUE | Which doorstop lib to load |
DOORSTOP_LIBS | /home/steam/valheim/doorstop_libs |
TRUE | Where to look for doorstop libs. |
DOORSTOP_INVOKE_DLL_PATH | /home/steam/valheim/BepInEx/core/BepInEx.Preloader.dll |
TRUE | BepInEx preload dll to load. |
DOORSTOP_CORLIB_OVERRIDE_PATH | /home/steam/valheim/unstripped_corlib |
TRUE | Sets where the decompiled libraries containing base mono files are located at |
DYLD_LIBRARY_PATH | "/home/steam/valheim/doorstop_libs" |
TRUE | Sets the library paths. NOTE: This variable is weird and MUST have quotes around it! |
DYLD_INSERT_LIBRARIES | /home/steam/valheim/doorstop_libs/libdoorstop_x64.so |
TRUE | Sets which library to load. |