Hello and welcome, This post will provide you with information regarding the SCP: 5K – Alpha Testing – How to auto restart server script, and we hope you will find this material helpful.
Setup Scripts
You might feel the same and would like to fix it. The issue is that you must run the server using an application that runs in a batch file. This makes it difficult to use Watchdog/Supervisor, which typically handles these tasks. Fortunately, I’ve developed an extremely simple batch script that you can restart your server after a delay of x (“x” being variable if you wish) immediately following the event of a crash.
Follow the steps below to automatically restart server.
Create a new.bat in the Server directory. new.bat in the Server directory. It doesn’t matter what you name it.
2: Paste into the code:
@echo off :A Set "MyProcess=PandemicServer.exe" set MAP=(ENTER MAP NAME HERE, CHECK FOR DEFAULTS BELOW) set PORT=(ENTER SERVER PORT HERE, CHECK FOR DEFAULTS BELOW) set QUERYPORT=(ENTER QUERY PORT HERE, CHECK FOR DEFAULTS BELOW) set "SERVERNAME=(ENTER NAME OF YOUR SERVER HERE)" set MAXPLAYERS=(ENTER MAXIMUM AMOUNT OF PLAYERS HERE) title "%MAP%" start "" WindowsServer/PandemicServer.exe %MAP% -log -servername="%SERVERNAME%" -SteamServerName="%SERVERNAME%" -port=%PORT% -queryport=%QUERYPORT% -maxplayers=%MAXPLAYERS% -force_steamclient_link goto B :B tasklist | find /i "%MyProcess%">nul || goto A TIMEOUT /T 5 goto B
Please save the file and then begin it. Make sure you alter the values, or else YOUR SERVER WON’T START!
Default values:
- MAP=Area12_PersistentLevel
- PORT=7777
- QUERYPORT=27015
The value
"SERVERNAME"
You can also learn more about the following:
MAXPLAYERS
I’ve adjusted these values to meet my personal preferences. You can adjust these values as you wish.
If you wish to alter the time interval during which the watchdog checks whether the server is running, just adjust the value.
TIMEOUT /T x
(where “x” is the number of seconds to wait), and save the document.
We are grateful that you took the time to read through the SCP: 5K – Alpha Testing – How to auto restart server script, and we sincerely hope that you discovered it to be beneficial. Feel free to call out any problems or provide suggestions for improvements in the comments box below, and we will answer them as quickly as possible. Today, I’d want to send you my warmest wishes. The author and creator of [LOKE]YourC3PH inspired this post. If you liked this post, you should check back regularly because we publish new information every day.
- All SCP: 5K - Alpha Testing Posts List
Leave a Reply