Ir para o conteúdo
Riot Bits

Riot Bits

  • Lar
  • Notícias
  • Guias
  • Guias de vídeo
  • Notas do Patch
  • Denunciar abuso
  • Alternar formulário de pesquisa

SCP: 5K – Automatic Restart After Server Crash

postado em 06/24/2023 Por [LOKE]YourC3PH Sem comentários em SCP: 5K – Automatic Restart After Server Crash
  • Título: SCP: 5K
  • Data de lançamento:
  • Desenvolvedor:
  • Editor:
Informações sobre o SCP: 5K is still incomplete. Por favor, ajude-nos a preencher os detalhes do jogo usando este formulário de contato.

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. Consequentemente, 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 segundos.

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

título "%MAP%"
começar "" 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; de outra forma, your server will fail to start!

Default values:

MAP=Area12_PersistentLevel
PORT=7777
QUERYPORT=27015

The value

"SERVERNAME"

e

MAXPLAYERS

Por último, 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

(onde “x” represents the desired number of seconds to wait), e salve o arquivo.

Isso é tudo o que estamos compartilhando hoje para isso SCP: 5K guia. Este guia foi originalmente criado e escrito por [LOKE]YourC3PH. Caso não atualizemos este guia, você pode encontrar a atualização mais recente seguindo este link.

Se você acredita que algum conteúdo deste site viola seus direitos, incluindo seus direitos de propriedade intelectual, entre em contato conosco imediatamente usando nosso formulário de contato.
Guias Tag:SCP: 5K

Navegação de artigos

Postagem anterior: How to Fix SCP: 5K FPS Drop, atraso, e problemas de gagueira
próxima postagem: Como consertar o travamento do Nova Lands, Falha no lançamento, e problemas de congelamento

Deixe um comentário Cancelar resposta

O seu endereço de email não será publicado. Campos obrigatórios marcados com *

  • Título: SCP: 5K
  • Data de lançamento:
  • Desenvolvedor:
  • Editor:
Informações sobre o SCP: 5K is still incomplete. Por favor, ajude-nos a preencher os detalhes do jogo usando este formulário de contato.

Isenção de responsabilidade

Todo o conteúdo citado é derivado de suas respectivas fontes. Se você acha que usamos seu conteúdo sem permissão, certifique-se de entrar em contato conosco e levaremos isso a sério.
  • Sobre nós
  • Contate-nos
  • política de Privacidade
  • Termos de serviço

direito autoral © 2025 Riot Bits.

Distribuído por PressBook Notícias tema WordPress