#!/usr/bin/env bash
# Combined Valheim + BepInEx startup script

# 1) Save original LD_LIBRARY_PATH so we can restore at the end
export _OLD_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"

# 2) BepInEx “Doorstop” loader setup
export DOORSTOP_ENABLE=TRUE
export DOORSTOP_INVOKE_DLL_PATH=./BepInEx/core/BepInEx.Preloader.dll
# TRY Removing the hashtag in front of this next line if script doesn't work:
# export DOORSTOP_CORLIB_OVERRIDE_PATH=./unstripped_corlib

# 3) Make sure Doorstop’s native libs load first
export LD_LIBRARY_PATH="./doorstop_libs:${LD_LIBRARY_PATH}"
export LD_PRELOAD="libdoorstop_x64.so:${LD_PRELOAD}"

# 4) Then prepend the game’s own linux64 folder
export LD_LIBRARY_PATH="./linux64:${LD_LIBRARY_PATH}"

# 5) Tell Steam it’s running Valheim
export SteamAppId=892970

echo "Starting Valheim + BepInEx… PRESS CTRL-C to exit"

# 6) Launch the server (exec replaces this script’s process)
exec ./valheim_server.x86_64 \
-name "servername" \
-port 2456 \
-world "worldsavefilename" \
-password "secret" \
-crossplay

# 7) (Unreachable if exec succeeds—but here for completeness)
export LD_LIBRARY_PATH="$_OLD_LD_LIBRARY_PATH"
This post has been viewed 529 times.

The TextSaver is a simple free tech tool to help save bits of text. You can use it to save notes, text messages, archive text messages from an iPhone or Android, save HTML, avoid PDFs, export messages, lists, phone numbers, addresses, really whatever you want. Please note that saved text is not hidden from the public unless you use the password utility. When using a password, the text will only be viewable to those with a password. Use it for fun, use it for war, use it to control the minds of your enemies.

Legal Disclaimer The website https://textsaver.flap.tv/ (hereinafter referred to as "TextSaver") is a platform designed to allow users to store and share bits of text. TextSaver and its owners do not review, approve, endorse, or make any representations about the legality, accuracy, reliability, completeness, or quality of the content posted by its users. The content reflects the views and responsibility of the person or entity that posts it and does not necessarily represent the views of TextSaver. By using TextSaver, you agree that TextSaver, its owners, affiliates, employees, or agents shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any such content available on or through TextSaver. Users are solely responsible for their content, including compliance with intellectual property laws, confidentiality obligations, and applicable local laws. TextSaver expressly disclaims all liability in relation to the content posted by users. If you believe that any content on TextSaver infringes upon your intellectual property rights or is otherwise unlawful, please contact us with detailed information, and we will take appropriate action in accordance with our policies and applicable laws.