Server Update Script
Сrеdit gоеs to Derek-G1!
I wrote a .bat script that will update your server automatically so we dont have to do it manually Link to Github:
https://github.com/Derek-G1/EnshroudedServerUpdateScript
Checks to see if the enshrouded server is running, if it is kill the script if it’s not it continues with the script and will update your sever then start it:
- This was done on a server that was installed with SteamCMD.
- Your server must be off when running this or it will not work.
- Create a .bat file and right click and edit it and put this code in it. The .bat file should be in the same folder.
- Change the path to your server folder:
"server_dir=C:\Users\User\SteamCMD\steamapps\common\ServerFolder"
- Double click the .bat file and it should work.
@echo off
rem Define paths and commands
set "steamcmd_path=C:\Users\User\SteamCMD\steamcmd.exe"
set "server_dir=C:\Users\User\SteamCMD\steamapps\common\enshrouded-server"
set "app_id=2278520"
set "server_executable=enshrouded_server.exe"
set "commands_file=%~dp0commands.txt"
rem Check if the server is running
tasklist | findstr /i "%server_executable%"
if not %errorlevel% equ 0 (
echo Server is not running. Proceeding with the backup process.
) else (
echo Server is running.
echo Warning: The server is running. Please shut it down before running this script.
pause
exit /b
)
rem Create a temporary file containing commands for steamcmd.exe
(
echo @ShutdownOnFailedCommand 1
echo @NoPromptForPassword 1
echo force_install_dir "%server_dir%"
echo login anonymous
echo app_update %app_id% validate
echo quit
) > "%commands_file%"
rem Run steamcmd.exe with the commands file
echo Running steamcmd.exe...
"%steamcmd_path%" +runscript "%commands_file%"
rem Restart the server
echo.
echo Server updated. Restarting...
cd /d "%server_dir%"
echo Starting server in background...
start "" "%server_executable%"
Note: If you are new to the game, read the guide on how to find gold chests in Enshrouded. They contain very useful loot – epic and legendary equipment!
Be the first to comment