Jump to content

Kerbo

Logging player death messages

Recommended Posts

I like seeing when and how players died in my server log so I modified (Unpack, edit, repack) @Hive\Addons\dayz_server\compile\server_playerDied.sqf file to do so. The diff and file below are from the DayZMod 1.8 release.

This modification will give you messages in your server RPT like:

Killed by zombie

PKILL: Player1 was killed near Komarovo

Killed by player

PKILL: Player1 (001) was killed near Balota by Player2 (002) with weapon MeleeHatchet from 2.345m

Killed themselves

PKILL: Player1 killed themselves near Kamenka

Diff

  Reveal hidden contents

 

Full file

  Reveal hidden contents

Edited by Kerbo

Share this post


Link to post
Share on other sites
  On 9/25/2013 at 10:16 PM, facoptere said:

it's already included in 1.8.

If you are talking about this:

#ifdef PLAYER_DEBUGformat ["Player UID#%3 CID#%4 %1 as %5 died at %2", 	_newObject call fa_plr2str, (getPosATL _newObject) call fa_coor2str,	getPlayerUID _newObject,_characterID,	typeOf _newObject];#endif
I wanted more detail, which is what the patch above provides. My server is low pop and friendly so no one has killed anyone yet to provide an example of the more detailed kill message.

It would look something like this:

PKILL: Player1 (001) was killed near Balota by Player2 (002) with weapon MeleeHatchet from 2.345m

Or in the case of a suicide:

PKILL: Player1 killed themselves near Kamenka

I updated my original post to make it more clear what the patch is doing.

Edited by Kerbo

Share this post


Link to post
Share on other sites

I just tried to load your file up and got stuck on the "waiting for server to authenticate" after trying to connect.

 

Any suggestions?

Share this post


Link to post
Share on other sites

Ok, got it to work, but I'm noticing it usually doesn't who the killer. 

 

It must be hitting the nil criteria due to blood loss death or such.  

 

Any suggestions?

Share this post


Link to post
Share on other sites
  On 2/7/2014 at 7:14 AM, delpi said:

Ok, got it to work, but I'm noticing it usually doesn't who the killer. 

 

It must be hitting the nil criteria due to blood loss death or such.  

 

Any suggestions?

 

If you are using 1.8.0.3 it already has some really nice hit messages in the logs by default, however to get killer I used an MPHit handler like this - http://dayz.st/w/Kill_Messages and logged the message to my server logs rather than showing in game. 

 

Hopefully the 1.8 logs can be modified a little in a future patches so kills are logged as well as hits. I find the mphit messages don't always credit the right killer if two people are firing on a person at once.  

 

I used a combination of database triggers for deaths/kills and parsing my rpt logs for PKILL and the default 1.8 PHIT messages to produce my kill logs which I use as admin and am making a public version of for my players

 

MismKQo.png

 

JGfxD4e.png

Edited by seaweed

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×