Page MenuHomeFeedback Tracker

Settings.xml and Logs
New, UrgentPublic

Description

I have tried implementing a custom messages.xml config (provided in Additional information). When I have implemented this config, it results in an infinite reboot loop.

Also, are the logs (dayzps/config/DayZServer_PS4_x64.ADM) persistent, or is it a rolling log that gets reset during every restart? Is there a way to access a log store on the server? I ask because if I have the server set to automatically restart, then I currently can't access logs from before the restart in case I have to resolve an issue that occurred in-game that we would use the logs to verify.

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Steps To Reproduce

-Stop server
-Copy text provided in "Additional information"
-paste into the text editor on Nitrado's Config Files page (messages.xml)
-Save changes
-Start server

Additional Information

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>
<!-- NewGroundZ Server Reset Messages -->
<!-- Server Restart - This is designed to set the server to restart after 8 hours -->
<message>

		<!-- sets the timer for 8 hours -->
		<deadline>480</deadline>
		<!-- sets the timer as a countdown, not sure if this is required -->
		<countdown>1</countdown>
		<!-- enable shutdown flag -->
		<shutdown>1</shutdown>

</message>
<!-- Server Restart Message - This is intended to send a server restart message 15 minutes before restart -->
<message>

		<!-- no delay -->
		<delay>0</delay>
		<!-- if the value is larger than 0, then flag repeat is enabled -->
		<repeat>0</repeat>
		<!-- attempt to send server message when there is 15 minutes left -->
		<deadline>15</deadline>
		<!-- disable on connect flag -->
		<onconnect>0</onconnect>
		<!-- disable countdown flag -->
		<countdown>0</countdown>
		<!-- disable shutdown flag -->
		<shutdown>0</shutdown>
		<!-- message itself with placeholders -->
		<text>NewGroundZ will shutdown in #tmin minutes.</text>

</message>
<!-- Server Restart Message - This is designed to send a server restart message 2 minutes after onconnect -->
<message>

		<!-- delay the message by 2 minutes -->
		<delay>2</delay>
		<!-- if the value is larger than 0, then flag repeat is enabled -->
		<repeat>0</repeat>
		<!-- enable on connect flag -->
		<onconnect>1</onconnect>
		<!-- disable shutdown flag -->
		<shutdown>0</shutdown>
		<!-- message itself with placeholders -->
		<text>NewGroundZ will shutdown in #tmin minutes.</text>

</message>
</messages>

Event Timeline

Waggy777 created this task.Aug 24 2019, 3:30 PM
Waggy777 updated the task description. (Show Details)
Waggy777 edited Additional Information. (Show Details)Aug 24 2019, 8:30 PM

I was able to get the following to work:

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

    <message>
        <deadline>360</deadline>
        <shutdown>1</shutdown>
        <text>This server (#name) will shutdown in #tmin minutes.</text>
    </message>
 

    
    <message>
        <delay>2</delay>
        <onconnect>1</onconnect>
        <text>This server (#name) will shutdown in #tmin minutes.</text>
    </message>

</messages>

However, it is not reading the #tmin variable. So it will show: "This server (!NewGroundZ RP!) will shutdown in minutes."

First, is it possible to get the message to only show 2 minutes after onconnect (as is currently the case) as well as 15 minutes before restart without the countdown?

Would this additional message tag accomplish displaying the message 15 minutes before restart if the server is set to restart after 360 minutes?

<message>

		<!-- 345 minute delay delay -->
		<delay>345</delay>
		<!-- message itself with placeholders -->
		<text>NewGroundZ will restart in #tmin minutes.</text>

</message>

And second, why is the #tmin variable not being displayed? The #name variable seems to work fine.

Here is my most recent messages.xml:

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

    <message>
        <deadline>360</deadline>
        <shutdown>1</shutdown>
        <text>NewGroundZ will restart in #tmin minutes.</text>
    </message>

    <message>
        <delay>2</delay>
        <onconnect>1</onconnect>
        <text>NewGroundZ will restart in #tmin minutes.</text>
    </message>

<message>

		<delay>345</delay>
		<text>NewGroundZ will restart in #tmin minutes.</text>

</message>

</messages>

It is still not reading the #tmin variable.

I believe I have figured out the issue. Please close the ticket.