Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :unturnedUpdate
- ::The Unturned update configuration
- SETLOCAL ENABLEDELAYEDEXPANSION
- SET STEAMLOGIN=anonymous
- SET GAMEID=1110390
- SET ServerPath="C:\Unturned Servers\Survival\"
- SET STEAMPATH="C:\steamcmd\"
- :: _________________________________________________________
- ::begins the Unturned update process
- echo You are about to update Unturned
- echo Dir: %ServerPath%
- echo Branch: %GAMEID%
- %STEAMPATH%\steamcmd.exe +force_install_dir %ServerPath% +login %STEAMLOGIN% +"app_update %GAMEID%" validate +quit
- :rocketInstall
- :: Copies RocketMod to the modules folder
- Dir: %ServerPath%\Extras\Rocket.Unturned
- xcopy /y/i %ServerPath%\Extras\Rocket.Unturned %ServerPath%\Modules
- echo Your Unturned Server is up to date!
- :unturnedStarter
- ::starts the actual server
- ECHO Starting Unturned Server
- ECHO [%time%] Unturned started.
- Unturned.exe -nographics -batchmode -LogAssemblyResolve +secureserver/server
- ECHO [%time%] WARNING: Unturned closed or crashed, restarting.
- ping 1.1.1.1 -n 1 -w 3000 >nul
- timeout 5
- GOTO unturnedUpdate
Add Comment
Please, Sign In to add comment