تخطى الى المحتوى
أعمال الشغب

أعمال الشغب

  • بيت
  • أخبار
  • خطوط إرشاد
  • أدلة الفيديو
  • ملاحظات التصحيح
  • بلغ عن سوء معاملة
  • تبديل شكل البحث

SCP: 5ك – Automatic Restart After Server Crash

نشر على 06/24/2023 بواسطة [LOKE]YourC3PH لا تعليقات على SCP: 5ك – Automatic Restart After Server Crash
  • عنوان: SCP: 5ك
  • تاريخ الافراج عنه:
  • المطور:
  • الناشر:
معلومات عن 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. Consequently, 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)
set "SERVERNAME=(ENTER NAME OF YOUR SERVER HERE)"
set MAXPLAYERS=(ENTER MAXIMUM AMOUNT OF PLAYERS HERE)

عنوان "%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; خلاف ذلك, 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

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

هذا كل ما نشاركه اليوم من أجل هذا SCP: 5ك مرشد. تم إنشاء هذا الدليل وكتابته في الأصل بواسطة [LOKE]YourC3PH. في حالة فشلنا في تحديث هذا الدليل, يمكنك العثور على آخر تحديث باتباع هذا وصلة.

إذا كنت تعتقد أن أيًا من محتويات هذا الموقع ينتهك حقوقك, بما في ذلك حقوق الملكية الفكرية الخاصة بك, يرجى الاتصال بنا على الفور باستخدام نموذج الاتصال الخاص بنا.
خطوط إرشاد العلامات:SCP: 5ك

آخر الملاحة

المنشور السابق: How to Fix SCP: 5K FPS Drop, تأخر, وقضايا التأتأة
المشاركة التالية: How to Fix Nova Lands Crashing, تحطم عند الإطلاق, وقضايا التجميد

ترك الرد إلغاء الرد

لن يتم نشر عنوان بريدك الإلكتروني. تم وضع علامة على الحقول المطلوبة *

  • عنوان: SCP: 5ك
  • تاريخ الافراج عنه:
  • المطور:
  • الناشر:
معلومات عن SCP: 5K is still incomplete. الرجاء مساعدتنا في ملء تفاصيل اللعبة باستخدام هذا نموذج الاتصال.

تنصل

ويستمد كل محتوى استشهد من مصادرها الخاصة. إذا كنت تعتقد أننا استخدمنا المحتوى الخاص بك دون إذن, تأكد من الوصول إلينا وسنأخذ الأمر على محمل الجد.
  • معلومات عنا
  • اتصل بنا
  • سياسة الخصوصية
  • شروط الخدمة

حقوق النشر © 2025 أعمال الشغب.

مشغل بواسطة PressBook News وورد موضوع