Server messages for DayZ

From Nitradopedia EN
Jump to: navigation, search
DayZ wiki.png
Rent your own prepaid DayZ server for PC, PS4 or Xbox today at Nitrado.net

In order to inform your players with automatic messages about restarts, your website, your Discord server or something else, it is necessary to correct the commands in the "messages.xml" accordingly.

After the successful installation, the content of the file is "commented out". As a result, the commands exist but are ignored by the server.

DayZ requires 4 server restarts per day due to game cache storage, this can cause lag, high ping, connection timeouts, or player desynchronization.  The game developers recommend restarting the server 4-6 times a day to prevent performance issues from happening.  We suggest setting those restarts in the.xml files.

messages.xml file

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>
<!--
See <nowiki>https://community.bistudio.com/wiki/DayZ:Server_Messages</nowiki> for more information
Example messages:

1) following message will be displayed to every player in countdown manner
and shuts down server in 10 hours from its start

<message>
<deadline>600</deadline>
<shutdown>1</shutdown>
<text>This server (#name) will shutdown in #tmin minutes.</text>
</message>
2) following message will be displayed every 15 minutes to every player

<message>
<repeat>15</repeat>
<text>You're playing on my server (#name). Thank you .)</text>
</message>

3) following message will be displayed every 50 minutes to every player
and 10 minutes after player connect

<message>
<delay>10</delay>
<repeat>50</repeat>
<onconnect>1</onconnect>
<text>Check our web page at www.dayz.com</text>
</message>

4) following message will be displayed once
and 2 minutes after player connect

<message>
<delay>2</delay>
<onconnect>1</onconnect>
<text>Welcome to my server #name</text>
</message>

-->
</messages>

To activate the commands it is necessary to stop the server and remove the comment commands, they look like this:

<!--
-->

Commands

  • onconnect

Displays the message as soon as a player enters the server

  • repeat

Repeat the message

  • countown

Counts down the time given The message is sent every 90 minutes before the entered time is reached:

    • Countdown steps:
      • 60 Minutes
      • 45 Minutes
      • 30 Minutes
      • 20 Minutes
      • 15 Minutes
      • 10 Minutes
      • 5 Minutes
      • 2 Minutes
      • 1 Minute
  • shutdown

Indicates that the server will be stopped after COuntdown has ended If countdown is not set, shutdown is ignored

characteristics

Messages cannot be longer than 160 characters! There are 3 placeholders (variables) which can be set:

  • #name Shows the name of the server
  • #port Shows the port of the server
  • #tmin Displays the number of minutes remaining (countdown)
    • Only works with countdown

Any time in the messages.xml is in minutes!

delay

  • Can be used if "onconnect" is set
  • The value shows how many minutes pass before the message is displayed to the player
  • If 0 (zero) was entered as a value, the message will be displayed directly when entering the server

repeat

  • Repeats the corresponding message after the specified period

deadline

  • Can be used during countdown

Examples

The "messages.xml" file can be found in the following folder: dayz/mpmissions/dayzOffline.chermarusplus/db/

Serverstop

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>

	<! - This is an example configuration for the notification of a server stop ->
<message>

<!-- no delay-->
<delay> 0 </delay>

<!-- If the value is higher than 0 (zero), the message is repeated-->
<repeat> 0 </repeat>

<!-- If the value is higher than 0 (zero), the countdown is activated. In this example the countdown lasts 10 hours (600 minutes)-->
<deadline> 600 </deadline>

<!-- deactivates "onConnect", 1 activates the flag-->
<onConnect> 0 </onConnect>

<!-- activates the "shutdown" flag, is deactivated with 0 (zero)-->
<shutdown> 1 </shutdown>

<!-- message that is displayed with variables-->
<text> Hello, #name will be stopped in #tmin minutes! </text>
	</message>
</messages>

Ad for the website / Discord Server

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>

	<!-- This is a sample configuration for displaying the website / Discord Server-->
<message>

<!-- 5 minutes delay-->
<delay> 5 </delay>

<!-- repetition every 30 minutes-->
<repeat> 30 </repeat>

<!-- No countdown / no deadline-->
<deadline> 0 </deadline>

<!-- When a player enters the server-->
<onConnect> 1 </onConnect>

<!-- shutdown deactivated-->
<shutdown> 0 </shutdown>

<!-- message that is displayed with variables-->
<text> Hello, welcome to #name! Visit our website at https://nitrado.net or our Discord server https://discordapp.com/invite/dayz </text>

	</message>
</messages>