flip:games:steamcmd_valheim
Это старая версия документа!
SteamCMD - Valheim
Все параметры нужно отредактировать
Дополнительные пакеты и зависимости
apt-get install libpulse-dev libatomic1 libc6 lib32stdc++6 libsdl2-2.0-0 libsdl2-2.0-0:i386
Установка
./steamcmd.sh +@sSteamCmdForcePlatformType linux +force_install_dir /path/to/server/valheim +login anonymous +app_update 896660 validate +quit
Запуск сервера по умолчанию
cd /path/to/server/valheim ./start_server.sh
Можно скопировать скрипт запуска и изменить конфигурацию
Оригинал:
#!/bin/bash export templdpath=$LD_LIBRARY_PATH export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH export SteamAppId=892970 echo "Starting server PRESS CTRL-C to exit" # Tip: Make a local copy of this script to avoid it being overwritten by steam. # NOTE: Minimum password length is 5 characters & Password cant be in the server name. # NOTE: You need to make sure the ports 2456-2458 is being forwarded to your server through your local router & firewall. ./valheim_server.x86_64 -name "My server" -port 2456 -world "Dedicated" -password "secret" -crossplay export LD_LIBRARY_PATH=$templdpath
Пример:
export templdpath=$LD_LIBRARY_PATH export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH export SteamAppId=892970 echo "Starting server PRESS CTRL-C to exit" # Tip: Make a local copy of this script to avoid it being overwritten by steam. # NOTE: Minimum password length is 5 characters & Password cant be in the server name. # NOTE: You need to make sure the ports 2456-2458 is being forwarded to your server through your local router & firewall. /home/gameserver/steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/gameserver/valheim +app_update 896660 +quit ./valheim_server.x86_64 -nographics -batchmode -name "[RU] MyArena" -port 2456 -world "Underworld" -password "qwerty" -public "1" -savedir "/home/gameserver/valheim/" export LD_LIBRARY_PATH=$templdpath
Для остановки нужно нажать [CTRL] + [C]
Источники
flip/games/steamcmd_valheim.1739519965.txt.gz · Последнее изменение: 2025/02/14 07:59 — flip