Intenz-Leaderboard
A mod for extracting the most relevant player stats in to json-files.
Example: https://dayzintenz.com/dayz/leaderboard
Intenz Leaderboard will extract data in to a JSON-file individually for each player. The data will be formated in a way that is easy to handle.
The mod is mainly created for developers that needs to access ingame-data when creating a leaderboard/dashboard webpage/discord bot. You are alone responsible for getting the json data in to your prefered database.
You are not allowed to unpack, repack or modify this mod without my permissions.
Instructions
Create a folder in your servers profile folder and name it Leaderboard. a json file for each player will be generated automatically as they login to the server. How you use the data is up to you. I would suggest that you add the data to a db each restart and dispose the files after the data is added. Good luck! If you have any questions I suggest you take them in our Discord https://discord.gg/g5RxE8h
Stats will contain:
On current alive character you will find data such as:
¤ Kills – a array of kills with data for each kill (this only contains kills for the current alive character)
¤ Animals killed – a list of animals killed.
¤ name – name of player
¤ A count property for each death source (for example death to zombie count)
¤ Amount of zombies killed
¤ Time survived
¤ Distance travelled
¤ longest shot
On each kill you will find data such as:
¤ The victim – its id and the time it had survived.
¤ Timestamp
¤ Position – vector for where on the map the kill took place
¤ weapon used
each dead generation will be saved to deaths-list with necessary data such as:
¤ Distance traveled
¤ Killers SteamID
¤ Weapon used by killer
¤ Cause of death (zombie, natural cause, playerkill, animalkill)
¤ kills – a list of kills for this generation with data for each kill
¤ list of animals killed
¤ longest hit on player
¤ zombiekills
¤ time survived
¤ Timestampprovided
If you are not interested in generation and kills objects and only want the total then you will have to iterrate through deaths and sum up the stats together with current alive characters stats.
open source solutions:
Discord-bot from Capps: https://github.com/Capps0611/DayZ-Player-Leaderboard-Bot