コンテンツにスキップ
ライオットビット

ライオットビット

  • 家
  • ニュース
  • ガイド
  • ビデオガイド
  • パッチノート
  • 不正行為を報告する
  • 検索フォームを切り替え

SCP: 5K – Automatic Restart After Server Crash

ポストする 06/24/2023 に [LOKE]YourC3PH コメントはありません の上 SCP: 5K – Automatic Restart After Server Crash
  • タイトル: SCP: 5K
  • 発売日:
  • 開発者:
  • 出版社:
SCPに関する情報: 5K is still incomplete. これを使用してゲームの詳細を記入するのにご協力ください。 お問い合わせフォーム.

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. その結果, 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 秒.

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. 幸運, 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 (“×”) 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)
セット "SERVERNAME=(ENTER NAME OF YOUR SERVER HERE)"
set MAXPLAYERS=(ENTER MAXIMUM AMOUNT OF PLAYERS HERE)

タイトル "%MAP%"
始める "" 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; さもないと, your server will fail to start!

Default values:

MAP=Area12_PersistentLevel
PORT=7777
QUERYPORT=27015

The value

"SERVERNAME"

と

MAXPLAYERS

最後に, 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

(どこ “×” represents the desired number of seconds to wait), and save the file.

これが今日私たちがこの目的で共有するすべてです SCP: 5K ガイド. このガイドは元々、次の者によって作成および執筆されました。 [LOKE]YourC3PH. このガイドを更新できなかった場合, これに従って最新のアップデートを見つけることができます リンク.

このサイトのコンテンツがあなたの権利を侵害していると思われる場合, あなたの知的財産権を含む, お問い合わせフォームを使用してすぐにご連絡ください.
ガイド タグ:SCP: 5K

ポストナビゲーション

前の投稿: SCPを修正する方法: 5K FPS Drop, 遅れ, 吃音の問題
次の投稿: Nova Landsのクラッシュを修正する方法, 起動時にクラッシュする, およびフリーズの問題

返信を残す 返信をキャンセル

あなたのメールアドレスは公開されません. 必須フィールドにマークが付いています *

  • タイトル: SCP: 5K
  • 発売日:
  • 開発者:
  • 出版社:
SCPに関する情報: 5K is still incomplete. これを使用してゲームの詳細を記入するのにご協力ください。 お問い合わせフォーム.

免責事項

引用されたすべてのコンテンツはそれぞれの情報源から得られています. 当社があなたのコンテンツを許可なく使用したと思われる場合, 必ずご連絡ください。真剣に対応させていただきます.
  • 私たちに関しては
  • お問い合わせ
  • プライバシーポリシー
  • 利用規約

著作権 © 2025 ライオットビット.

搭載 プレスブックニュース ワードプレスのテーマ