Administration Logs – DayZ

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:
! Event !! Description !! Example
! Event !! Description !! Example
|-
|-
| rowspan="2" | Connect/Disconnect || rowspan="2" | Connect and disconnect message for each player joining/leaving the server  || Player "Survivor" is connected (id=DAYZGUID)  
| rowspan="2" | Connect/Disconnect || rowspan="2" | Connect and disconnect message for each player joining/leaving the server  || <tt>Player "Survivor" is connected (id=DAYZGUID) </tt>
|-
|-
| Player "Survivor"(id=DAYZGUID) has been disconnected
| <tt>Player "Survivor"(id=DAYZGUID) has been disconnected</tt>
|-
|-
| Chat || Chat log || Chat("Survivor"(id=DAYZGUID): hello log
| Chat || Chat log || <tt>Chat("Survivor"(id=DAYZGUID): hello log</tt>
|-
|-
| Player report || Report message activated by typing "#toadmin yourmessage" into the in game chat || PLAYER REPORT: <2019-1-23_11-23-26> <DAYZGUID>: yourmessage
| Player report || Report message activated by typing "#toadmin yourmessage" into the in game chat || <tt>PLAYER REPORT: <2019-1-23_11-23-26> <DAYZGUID>: yourmessage</tt>
|-
|-
|  rowspan="2" | Unconscious state || rowspan="2" | Player falling into and regaining consciousness || Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) is unconscious
|  rowspan="2" | Unconscious state || rowspan="2" | Player falling into and regaining consciousness || <tt>Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) is unconscious</tt>
|-
|-
|  Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) regained consciousness
<tt>Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) regained consciousness</tt>
|-
|-
| rowspan="4" | Player damage source || rowspan="4" | Players receiving hits from other players, traps and falls - includes source of damage, hitzone, ammunition used and range if the source was a ranged weapon  || Player "Survivor A"(id=DAYZGUID, (id=DAYZUID, pos=<13212.8, 10124.8, 6.0>)) damaged by "Survivor B"(id=DAYZGUID, pos=<13242.8, 10124.8, 6.0>) into Torso with Bullet_45ACP from 30 meters
| rowspan="4" | Player damage source || rowspan="4" | Players receiving hits from other players, traps and falls - includes source of damage, hitzone, ammunition used and range if the source was a ranged weapon  || <tt>Player "Survivor A"(id=DAYZGUID, (id=DAYZUID, pos=<13212.8, 10124.8, 6.0>)) damaged by "Survivor B"(id=DAYZGUID, pos=<13242.8, 10124.8, 6.0>) into Torso with Bullet_45ACP from 30 meters</tt>
|-
|-
|  Player "Survivor A"(id=DAYZGUID, (id=DAYZUID, pos=<13212.8, 10124.8, 6.0>)) damaged by "Survivor B"(id=DAYZGUID, pos=<13242.8, 10124.8, 6.0>) into LeftArm with WoodAxe
<tt>Player "Survivor A"(id=DAYZGUID, (id=DAYZUID, pos=<13212.8, 10124.8, 6.0>)) damaged by "Survivor B"(id=DAYZGUID, pos=<13242.8, 10124.8, 6.0>) into LeftArm with WoodAxe</tt>
|-
|-
| Player "Survivor" (id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) suffered FallDamage
| <tt>Player "Survivor" (id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) suffered FallDamage</tt>
|-
|-
|  Player "Survivor" (id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) hit by Bear Trap into LeftFoot
<tt>Player "Survivor" (id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) hit by Bear Trap into LeftFoot</tt>
|-
|-
| rowspan="3" | Player death log || rowspan="3" | Player cause of death. Will print generic death message with additional status information to help determine the cause if it's unclear. || Player "Survivor A"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) killed by "Survivor B"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) with M4-A1
| rowspan="3" | Player death log || rowspan="3" | Player cause of death. Will print generic death message with additional status information to help determine the cause if it's unclear. || <tt>Player "Survivor A"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) killed by "Survivor B"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) with M4-A1</tt>
|-
|-
| Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) killed by Infected
| <tt>Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) killed by Infected</tt>
|-
|-
| Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) died. Stats> Water: 489.53 Energy: 594.765 Bleeding Sources: 2
| <tt>Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) died. Stats> Water: 489.53 Energy: 594.765 Bleeding Sources: 2</tt>
|-
|-
| Suicide || Player death caused by the suicide gesture || Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) committed suicide
| Suicide || Player death caused by the suicide gesture || <tt>Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) committed suicide</tt>
|-
|-
| Bleeding out || Player dying to lack of blood || Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) bled out
| Bleeding out || Player dying to lack of blood || <tt>Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) bled out</tt>
|-
|-
| Trap placement || Log when player places a trap in the world || Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) placed Bear Trap
| Trap placement || Log when player places a trap in the world || <tt>Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) placed Bear Trap</tt>
|}
|}


==Modding==
==Modding==

Revision as of 14:24, 6 February 2019

Introduction

This article details Administration Log, a file which records key gameplay events such as chat, player hits and deaths. It's main purpose is to help server administrators identify exploiters, cheaters or spot breaches of any custom rules the server might have set up.

To enable the logging, server must run with the launch parameter -adminlog

The log file is named server_exe_name.ADM and it is created in the profiles folder, specified by the -profiles launch parameter.


Logged events

Each message in the log is prefixed by a time stamp in a HH:MM:SS format

Event Description Example
Connect/Disconnect Connect and disconnect message for each player joining/leaving the server Player "Survivor" is connected (id=DAYZGUID)
Player "Survivor"(id=DAYZGUID) has been disconnected
Chat Chat log Chat("Survivor"(id=DAYZGUID): hello log
Player report Report message activated by typing "#toadmin yourmessage" into the in game chat PLAYER REPORT: <2019-1-23_11-23-26> <DAYZGUID>: yourmessage
Unconscious state Player falling into and regaining consciousness Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) is unconscious
Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) regained consciousness
Player damage source Players receiving hits from other players, traps and falls - includes source of damage, hitzone, ammunition used and range if the source was a ranged weapon Player "Survivor A"(id=DAYZGUID, (id=DAYZUID, pos=<13212.8, 10124.8, 6.0>)) damaged by "Survivor B"(id=DAYZGUID, pos=<13242.8, 10124.8, 6.0>) into Torso with Bullet_45ACP from 30 meters
Player "Survivor A"(id=DAYZGUID, (id=DAYZUID, pos=<13212.8, 10124.8, 6.0>)) damaged by "Survivor B"(id=DAYZGUID, pos=<13242.8, 10124.8, 6.0>) into LeftArm with WoodAxe
Player "Survivor" (id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) suffered FallDamage
Player "Survivor" (id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) hit by Bear Trap into LeftFoot
Player death log Player cause of death. Will print generic death message with additional status information to help determine the cause if it's unclear. Player "Survivor A"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) killed by "Survivor B"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) with M4-A1
Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) killed by Infected
Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) died. Stats> Water: 489.53 Energy: 594.765 Bleeding Sources: 2
Suicide Player death caused by the suicide gesture Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) committed suicide
Bleeding out Player dying to lack of blood Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) bled out
Trap placement Log when player places a trap in the world Player "Survivor"(id=DAYZGUID, pos=<13212.8, 10124.8, 6.0>) placed Bear Trap

Modding

You can easily add your own messages to the admin log file from your mod using the script function CGame::AdminLog( string text )


If you would like to modify the existing logging, all of the logic can be found in \Scripts\4_World\Plugins\PluginBase\PluginAdminLog.c here you can override specific events or change the message output.


Following events are currently handled in the executable and so they are not moddable:

Connect/Disconnect

Chat

Player report