ItzEdInYourBed

Unturned Bat File

Apr 5th, 2022 (edited)
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.10 KB | None | 0 0
  1. @echo off
  2. :unturnedUpdate
  3. ::The Unturned update configuration
  4. SETLOCAL ENABLEDELAYEDEXPANSION
  5.              SET STEAMLOGIN=anonymous
  6.              SET GAMEID=1110390
  7.              SET ServerPath="C:\Unturned Servers\Survival\"
  8.              SET STEAMPATH="C:\steamcmd\"
  9.  
  10. :: _________________________________________________________
  11. ::begins the Unturned update process
  12. echo     You are about to update Unturned
  13. echo     Dir: %ServerPath%
  14. echo     Branch: %GAMEID%
  15.     %STEAMPATH%\steamcmd.exe +force_install_dir %ServerPath% +login %STEAMLOGIN% +"app_update %GAMEID%" validate +quit
  16. :rocketInstall
  17. :: Copies RocketMod to the modules folder  
  18.      Dir: %ServerPath%\Extras\Rocket.Unturned
  19.      xcopy /y/i %ServerPath%\Extras\Rocket.Unturned %ServerPath%\Modules
  20. echo Your Unturned Server is up to date!
  21.  
  22. :unturnedStarter
  23. ::starts the actual server
  24. ECHO Starting Unturned Server
  25. ECHO [%time%] Unturned started.
  26. Unturned.exe -nographics -batchmode -LogAssemblyResolve +secureserver/server
  27. ECHO [%time%] WARNING: Unturned closed or crashed, restarting.
  28. ping 1.1.1.1 -n 1 -w 3000 >nul
  29.  
  30. timeout 5
  31.  
  32. GOTO unturnedUpdate
Add Comment
Please, Sign In to add comment