Zum Inhalt springen
Riot-Bits

Riot-Bits

  • Heim
  • Nachricht
  • Führer
  • Videoanleitungen
  • Klebenotizzettel
  • Missbrauch melden
  • Suchformular umschalten

SCP: 5K – Automatic Restart After Server Crash

Veröffentlicht am 06/24/2023 Von [LOKE]YourC3PH Keine Kommentare zu SCP: 5K – Automatic Restart After Server Crash
  • Titel: SCP: 5K
  • Veröffentlichungsdatum:
  • Entwickler:
  • Herausgeber:
Informationen zu SCP: 5K ist noch unvollständig. Bitte helfen Sie uns dabei, die Details des Spiels auszufüllen Kontaktformular.

Considering the instability introduced by the latest game patch, I have encountered numerous problems while hosting my server. It unexpectedly crashes without any clear cause, and I have also heard similar complaints from other users. Folglich, I have developed a quick batch script that automatically checks if the server is running and restarts it after a short delay of just 5 Sekunden.

Setting up the Script

If you are facing the same issues and wish to resolve them, the challenge lies in starting the server using a separate batch file, which makes it difficult to utilize Watchdog/Supervisor applications that handle such tasks. Glücklicherweise, I have devised a simple batch script that allows you to restart your server immediately after a crash, with the option to adjust the delay („X“) as per your preference.

To configure an automatically restarting server, follow the steps below:

  1. Create a new .bat file in the directory of your server. You can name it anything since the specific name is not important.
  2. Copy and paste the following code into the file:
@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)
Satz "SERVERNAME=(ENTER NAME OF YOUR SERVER HERE)"
set MAXPLAYERS=(ENTER MAXIMUM AMOUNT OF PLAYERS HERE)

Titel "%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
  1. Save the file and execute it. It is crucial to adjust the values accordingly; ansonsten, your server will fail to start!

Default values:

MAP=Area12_PersistentLevel
PORT=7777
QUERYPORT=27015

The value

"SERVERNAME"

Und

MAXPLAYERS

zuletzt, if you wish to modify the interval at which the watchdog checks if the server is running or not, you can adjust the value as per your preference.

TIMEOUT /T x

(Wo „X“ represents the desired number of seconds to wait), und speichern Sie die Datei.

Das ist alles, was wir heute dafür teilen SCP: 5K Führung. Dieser Leitfaden wurde ursprünglich erstellt und geschrieben von [LOKE]YourC3PH. Für den Fall, dass wir diesen Leitfaden nicht aktualisieren können, Sie können das neueste Update finden, indem Sie diesem folgen Verknüpfung.

Wenn Sie der Meinung sind, dass der Inhalt dieser Website Ihre Rechte verletzt, einschließlich Ihrer geistigen Eigentumsrechte, Bitte kontaktieren Sie uns umgehend über unser Kontaktformular.
Führer Stichworte:SCP: 5K

Beitrags-Navigation

Vorherigen Post: So beheben Sie SCP: 5K FPS-Drop, Verzögerung, und Stotterprobleme
Nächster Beitrag: How to Fix Nova Lands Crashing, Absturz beim Start, und Einfrierprobleme

Schreibe einen Kommentar Antworten abbrechen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

  • Titel: SCP: 5K
  • Veröffentlichungsdatum:
  • Entwickler:
  • Herausgeber:
Informationen zu SCP: 5K ist noch unvollständig. Bitte helfen Sie uns dabei, die Details des Spiels auszufüllen Kontaktformular.

Haftungsausschluss

Alle zitierten Inhalte stammen aus den jeweiligen Quellen. Wenn Sie der Meinung sind, dass wir Ihre Inhalte ohne Erlaubnis verwendet haben, Stellen Sie sicher, dass Sie uns erreichen, wir werden es ernst nehmen.
  • Über uns
  • Kontaktiere uns
  • Datenschutz-Bestimmungen
  • Nutzungsbedingungen

Urheberrechte © © 2025 Riot-Bits.

Bereitgestellt von PressBook News WordPress-Theme