Difference between revisions of "PlayerStats"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "Player Stats Format Spec The player stats format is used to save persistent statistics about a player to disk. This operation is performed each 3 minutes for all players on the ...")
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Player Stats Format Spec
 
 
 
The player stats format is used to save persistent statistics about a player to disk. This operation is performed each 3 minutes for all players on the server.
 
The player stats format is used to save persistent statistics about a player to disk. This operation is performed each 3 minutes for all players on the server.
  
The files are in KAG/Logs/PlayerStats/Username.txt were Username is the name the user was present with on the server at that time.
+
The format always starts with a format version identifier, followed by a space delimited set of statistics about a certain user.
 +
 
 +
The files are in KAG/Logs/PlayerStats/Username.txt where Username is the name the user was present with on the server at that time. The username is not saved to the file's contents.
  
 
Note that this operation is performed for all players including bots. This behaviour may change in future.
 
Note that this operation is performed for all players including bots. This behaviour may change in future.
  
----
 
  
Player Stats v0.1:
+
 
 +
=Player Stats v0.1=
  
 
format:
 
format:
Line 20: Line 20:
  
 
More format versions will be added below if/when the format changes.
 
More format versions will be added below if/when the format changes.
 +
 +
[[Category:Server]]

Latest revision as of 17:30, 16 December 2012

The player stats format is used to save persistent statistics about a player to disk. This operation is performed each 3 minutes for all players on the server.

The format always starts with a format version identifier, followed by a space delimited set of statistics about a certain user.

The files are in KAG/Logs/PlayerStats/Username.txt where Username is the name the user was present with on the server at that time. The username is not saved to the file's contents.

Note that this operation is performed for all players including bots. This behaviour may change in future.


Player Stats v0.1

format: version total_kills current_kills total_deaths current_deaths host_id host_ip hardware_id

eg: v0.1 0 0 0 0 16777343 127.0.0.1 0


More format versions will be added below if/when the format changes.