Enshrouded – Server Update Script

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:

  1. This was done on a server that was installed with SteamCMD.
  2. Your server must be off when running this or it will not work.
  3. 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.
  4. Change the path to your server folder:
"server_dir=C:\Users\User\SteamCMD\steamapps\common\ServerFolder"
  1. 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!

Volodymyr Azimoff
About Volodymyr Azimoff 13821 Articles
I love games and I live games. Video games are my passion, my hobby and my job. My experience with games started back in 1994 with the Metal Mutant game on ZX Spectrum computer. And since then, I’ve been playing on anything from consoles, to mobile devices. My first official job in the game industry started back in 2005, and I'm still doing what I love to do.

Be the first to comment

Leave a Reply

Your email address will not be published.


*