DayZ
57 ratings
RestartWarner
6
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Environment, Sound
File Size
Posted
Updated
261.196 KB
20 Nov, 2024 @ 7:17am
25 Apr @ 3:33am
15 Change Notes ( view )

Subscribe to download
RestartWarner

Description
Help

You can find me on my DayZ Development Discord[discord.com]. Come there if you need help or have ideas!

Donations welcome

If you like this mod, please consider donating[paypal.me]! <3

Tested with
  • DayZ Expansion
  • LBMaster's Advanced Groups
  • Notifications by DaemonForge

Description

If you have been an automated server restart system, you know these issues:
  • Players miss the restart messages in the chat
  • Players may have the chat disabled entirely
  • Players get kicked mid-flight in their heli because they miss the messages
  • Extra work for admins
  • Frustrated players

This mod aims at mitigating those things. It will react to RCON (not normal ingame chat) messages in the chat and do some things:
  • Display an eye-catching but slim banner at the top of the screen
  • An extra banner "MOD UPDATE" can be displayed with is_mod_update
  • Banner activation time can be configured with start_warning_at_minute
  • Message changes with every message after that
  • When the counter decreases, the minute square blinks a few times
  • Supports UTF8 for non-ASCII alphabets like kyrillic, greek, korean etc

In case you have to skip a restart, but the banner is already visible, you can send restartwarner clear with an rcon tool like DaRT[github.com]

Configuration

At first install, a configuration file with these default values will be created in $profile:RestartWarner/RestartWarner.json.

{ "version": 2, "debug_log_level": 1, "environment": 1, "messages": [ { "restart_message_until_before_number": "(Global) Admin: Server is restarting in", "restart_number_unit": "minutes", "hide_chat_message": 0, "subtract_from_restart_number_minutes": 0, "start_warning_at_minute": 5, "is_mod_update": 0 }, { "restart_message_until_before_number": "(Global) Admin: Server is going down in", "restart_number_unit": "seconds", "hide_chat_message": 0, "subtract_from_restart_number_minutes": 3, "start_warning_at_minute": 8, "is_mod_update": 1 } ] }

version
Config version. Don't change this.

debug_log_level
Amount of log output to $profile:RestartWarner.log (client and server). 1 means only display critical errors, while 5 makes it very chatty. On your live server, always have it on 1, unless you have to debug it. Only 1 and 5 are possible.

environment
Can be disregarded, just for development and testing.

Message configuration

restart_message_until_before_number
The default value is also the default CFTools value for the messages. You can configure / localize the restart message in CFTools: Go to Manage > Localization > Server restart countdown. restart_message_until_before_number has to match the configured message in CFTools until before the "minutes" variable.

restart_number_unit
Unit of time in the incoming restart message. "minute" and "second" are possible. CFTools sends minutes, while OmegaManager sends seconds.

subtract_from_restart_number_minutes
If the restarting system has a prekick, but can't do the coundown towards the kick, like OmegaManager, the prekick minutes need to be subtracted from the incoming minute amount.

start_warning_at_minute
You can configure at which minute of the countdown the message will activate.

hide_chat_message
Passthrough the restart messages to the normal chat. This applies only to restart messages after the banner activation.

CFTools configuration

To have the message count towards the player kick instead of towards the actual restart, go to Manage > Localization > Server restart countdown, and replace {{ minutes }} with {{ delta }}.

Credits

Thanks to my "family" at FOG FamilyOfGamers, without their support I wouldn't be where I am today. Join their Discord[discord.gg] for the ultimative experience of how a DayZ community should be!

Extra special thanks to AVcrazy21 for designing this awesome steam workshop page icon!

Legalese
  • The mod may NOT be repacked, aka used in a mod pack or server pack
  • The mod may be used on monetized servers, as long as Bohemia's monetization guidelines are followed
  • The mod may only be uploaded to the Steam Workshop under my account name (inkihh)

Copyright 2024-2025 inkihh