Compare commits
2 Commits
1bbb3f90a8
...
e00fd8679a
| Author | SHA1 | Date |
|---|---|---|
|
|
e00fd8679a | 11 months ago |
|
|
68ecb4dd1f | 11 months ago |
@ -1,2 +1,12 @@
|
||||
#!/bin/sh
|
||||
steamcmd +@sSteamCmdForcePlatformType linux +force_install_dir /hdd/data/steamcmd/vallheim +login anonymous +app_update 896660 public validate +quit
|
||||
|
||||
#Configuration
|
||||
conf_file="valheim-server.ini"
|
||||
|
||||
# No need to change anything under this line
|
||||
|
||||
command -v steamcmd >/dev/null 2>&1 || { echo >&2 "Please install steamcmd to the path"; exit 128; }
|
||||
|
||||
. ./lib_ini.sh
|
||||
server_path=$(ini_read "$conf_file" "server" "srvpath")
|
||||
steamcmd +@sSteamCmdForcePlatformType linux +force_install_dir "$server_path" +login anonymous +app_update 896660 public validate +quit
|
||||
|
||||
@ -1,4 +1,15 @@
|
||||
#!/bin/bash
|
||||
cd /hdd/data/steamcmd/vallheim
|
||||
screen -dmS log-parser ./log-parser.sh
|
||||
|
||||
#Configuration
|
||||
conf_file="valheim-server.ini"
|
||||
|
||||
# No need to change anything under this line
|
||||
|
||||
# source config parser
|
||||
. ./lib_ini.sh
|
||||
server_path=$(ini_read "$conf_file" "server" "srvpath")
|
||||
|
||||
cd "$server_path"
|
||||
|
||||
screen -dmS valheim-log-parser ./log-parser.sh
|
||||
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
[server]
|
||||
srvpath=/home/valheim-server
|
||||
srvname="<server name>"
|
||||
srvpass="<passwd>"
|
||||
srvmoded="true"
|
||||
|
||||
[parser]
|
||||
botnr="+420xxxyyyyyyyyy"
|
||||
targnr="420xxxzzzzzzzzz"
|
||||
@ -1,12 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Configuration
|
||||
conf_file="valheim-server.ini"
|
||||
|
||||
# No need to change anything under this line
|
||||
|
||||
# source config parser
|
||||
. ./lib_ini.sh
|
||||
|
||||
server_path=$(ini_read "$conf_file" "server" "srvpath")
|
||||
server_name=$(ini_read "$conf_file" "server" "srvname")
|
||||
server_pass=$(ini_read "$conf_file" "server" "srvpass")
|
||||
server_moded=$(ini_read "$conf_file" "server" "srvmoded")
|
||||
|
||||
cd "$server_path"
|
||||
|
||||
if [[ "$server_moded" == "true" ]]; then
|
||||
# source modding engine
|
||||
. ./bepinex_conf.inc
|
||||
fi
|
||||
|
||||
# standard startup routine
|
||||
export templdpath=$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH
|
||||
export SteamAppID=892970
|
||||
|
||||
GAMENAME="Pitrisskovo Hall of Lame"
|
||||
BASEDIR="/hdd/data/steamcmd/vallheim/"
|
||||
# Creating dirs
|
||||
mkdir -p "$server_path/savedir"
|
||||
mkdir -p "$server_path/logs"
|
||||
|
||||
echo "Starting server..."
|
||||
./valheim_server.x86_64 -name "$GAMENAME" -port 2456 -nographics -batchmode -world "GAMENAME" -password "<PASSWD>" -public 1 -crossplay -savedir $BASEDIR/savedir -logFile $BASEDIR/logs/valheim.log -backups 8 -modifier raids none -modifier DeathPenalty casual -modifier Combat veryeasy
|
||||
./valheim_server.x86_64 -name "$server_name" -port 2456 -nographics -batchmode -world "$server_name" -password "$server_pass" -public 1 -crossplay -savedir $server_path/savedir -logFile $server_path/logs/valheim.log -backups 8 -modifier raids none -modifier DeathPenalty casual -modifier Combat veryeasy
|
||||
export LD_LIBRARY_PATH=$templdpath
|
||||
|
||||
|
||||
@ -1,4 +1,14 @@
|
||||
#!/bin/bash
|
||||
cd /hdd/data/steamcmd/vallheim
|
||||
|
||||
#Configuration
|
||||
conf_file="valheim-server.ini"
|
||||
|
||||
# No need to change anything under this line
|
||||
# source config parser
|
||||
. ./lib_ini.sh
|
||||
|
||||
server_path=$(ini_read "$conf_file" "server" "srvpath")
|
||||
|
||||
cd "$server_path"
|
||||
screen -dmS valheim-server ./valheim-svc.sh
|
||||
|
||||
|
||||
Loading…
Reference in new issue