安裝 Steam
登入
|
語言
簡體中文
日本語(日文)
한국어(韓文)
ไทย(泰文)
Български(保加利亞文)
Čeština(捷克文)
Dansk(丹麥文)
Deutsch(德文)
English(英文)
Español - España(西班牙文 - 西班牙)
Español - Latinoamérica(西班牙文 - 拉丁美洲)
Ελληνικά(希臘文)
Français(法文)
Italiano(義大利文)
Bahasa Indonesia(印尼語)
Magyar(匈牙利文)
Nederlands(荷蘭文)
Norsk(挪威文)
Polski(波蘭文)
Português(葡萄牙文 - 葡萄牙)
Português - Brasil(葡萄牙文 - 巴西)
Română(羅馬尼亞文)
Русский(俄文)
Suomi(芬蘭文)
Svenska(瑞典文)
Türkçe(土耳其文)
tiếng Việt(越南文)
Українська(烏克蘭文)
回報翻譯問題
call "%~f0"
Make sure to copy and paste it exactly as shown. This line will enable the server to automatically restart whenever it detects that it has gone offline.
Hope that helps.
Thank you for the Mod
Do you confirm that your mod shudown the PZ application and not the server machine ?
Because when you say it shutdown the server, both could be understoof.
Thank you for your answer ;)
can i 3hour update use?
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2844315442
I fixed the message sending to be compatible with chat mods (the message table was missing some function stubs), added sandbox options for the restart delay and how often to poll the workshop, as well as a new (also configurable) feature to add a delay between saving and quitting to avoid the data loss issue.
I assume that you're OK with it since you're pointing me at the bit of code. Turns out our current host doesn't support modifying the script to make it auto-restart, so we'll have to muddle through with manual restarts until they implement that.
Is it possible to make the mod save before shutting down the server?
Also is it possible to make the notification broadcast from /all so the discord bot announce it on discord? (or directly to discord)
@Mihalich Yes it does, not sure why it isn't showing for you if you're not seeing it.
Listen, does the mod have a server restart notification in the game itself?
The thing is, I've seen this message a couple of times (in red letters on screen and in chat), but most of the time my server just goes on reboot, kicking everyone out.
Thank you! Thank you!
Thank you! Thank you!
Thank you! Thank you!
Thank you! Thank you!
Thank you! Thank you!
It will wait 2 ticks before quitting
Awesome job
Check for game/workshop mod updates, if theres an update, announce using servermsg "Update detected, server restarting in 15 minutes" and then again at 10, 5, 1, then restart?
@echo off
:Restart
start "PZ" /wait "G:\Games\...\StartServer64.bat"
goto Restart