Przejdź do treści
Bity zamieszek

Bity zamieszek

  • Dom
  • Aktualności
  • Przewodniki
  • Przewodniki wideo
  • Opis zmian
  • Zgłoś nadużycie
  • Przełącz formularz wyszukiwania

SCP: 5K – Automatic Restart After Server Crash

Wysłany dnia 06/24/2023 Przez [LOKE]YourC3PH Brak komentarzy NA SCP: 5K – Automatic Restart After Server Crash
  • Tytuł: SCP: 5K
  • Data wydania:
  • Wywoływacz:
  • Wydawca:
Informacje o SCP: 5K is still incomplete. Pomóż nam wypełnić szczegóły gry za pomocą tego formularz kontaktowy.

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. Więc, 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 towary drugiej jakości.

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. Na szczęście, 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, wykonaj poniższe czynności:

  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)
ustawić "SERVERNAME=(ENTER NAME OF YOUR SERVER HERE)"
set MAXPLAYERS=(ENTER MAXIMUM AMOUNT OF PLAYERS HERE)

tytuł "%MAP%"
start "" WindowsServer/PandemicServer.exe %MAP% -log -servername="%SERVERNAME%" -SteamServerName="%SERVERNAME%" -port=%PORT% -queryport=%QUERYPORT% -maxplayers=%MAXPLAYERS% -force_steamclient_link
goto B

:B
tasklist | Znajdź /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; W przeciwnym razie, your server will fail to start!

Default values:

MAP=Area12_PersistentLevel
PORT=7777
QUERYPORT=27015

The value

"SERVERNAME"

I

MAXPLAYERS

W końcu, 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

(Gdzie “X” represents the desired number of seconds to wait), and save the file.

To wszystko, co dzisiaj udostępniamy w tym celu SCP: 5K przewodnik. Ten przewodnik został pierwotnie stworzony i napisany przez [LOKE]YourC3PH. Na wypadek, gdybyśmy nie zaktualizowali tego przewodnika, możesz znaleźć najnowszą aktualizację, postępując zgodnie z tym połączyć.

Jeśli uważasz, że jakakolwiek treść na tej stronie narusza Twoje prawa, w tym Twoje prawa własności intelektualnej, prosimy o niezwłoczny kontakt za pomocą naszego formularza kontaktowego.
Przewodniki Tagi:SCP: 5K

Nawigacja po wpisach

Poprzedni post: Jak naprawić błędy SCP: 5K FPS Drop, Opóźnienie, i problemy z jąkaniem
Następny post: How to Fix Nova Lands Crashing, Awaria podczas uruchamiania, i problemy z zamrażaniem

Zostaw odpowiedź Anuluj odpowiedź

Twój adres e-mail nie zostanie opublikowany. Wymagane pola są zaznaczone *

  • Tytuł: SCP: 5K
  • Data wydania:
  • Wywoływacz:
  • Wydawca:
Informacje o SCP: 5K is still incomplete. Pomóż nam wypełnić szczegóły gry za pomocą tego formularz kontaktowy.

Zastrzeżenie

Wszystkie cytowane treści pochodzą z odpowiednich źródeł. Jeśli uważasz, że wykorzystaliśmy Twoje treści bez pozwolenia, upewnij się, że się z nami skontaktujesz, a my potraktujemy to poważnie.
  • O nas
  • Skontaktuj się z nami
  • Polityka prywatności
  • Warunki usługi

Prawo autorskie © 2025 Bity zamieszek.

Zasilany przez Prasa Książka Aktualności Motyw WordPressa