Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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://steamhost.cn/steamcommunity_com/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