]> git.xonotic.org Git - xonotic/xonotic.git/blob - Docs/scorelog.txt
00876568dbefc2c0762bd959f1bae1b4a6c824f3
[xonotic/xonotic.git] / Docs / scorelog.txt
1 cvars (see xonotic.org/tools/cacs for more up-to-date information):
2 ______________
3
4    sv_logscores_console         print scores to serverconsole after each match (set to 1 to enable)
5    sv_logscores_file            print scores to a file after each match 
6    sv_logscores_filename        filename of the output file if sv_logscores_file is enabled (the file will be stored in Xonotic/data/data or ~/.xonotic/data/data)
7    sv_logscores_bots            choose whether bot are included in stats or not
8
9
10 commands:
11 ______________
12
13    printstats                   print current scores to file/console (requires sv_logscores_console and/or 
14                                   sv_logscores_file to be enabled)
15
16
17 log format:
18 ______________
19
20 example:
21    
22    :scores:dm_nexdm01:131
23    :player:1:7:129:1:GrooveMachine
24    :player:1:4:129:1:DanceWithMe
25    :player:10:1:130:3:Player
26    :end
27    
28    start of a new section:      :scores:<gametype>_<mapname>:<map runtime>              (if the dump was triggered
29                                    by "printstats", the line starts with :status:)
30    player entry:                :player:<frags>:<deaths>:<playtime>:<team>:<nickname>   (playername might contain ":",
31                                    so be sure your parser doesn't split them, playtime is messured in seconds)
32    section end:                 :end
33
34 team colors:
35    Red Team     =  5
36    Blue Team    = 14
37    Yellow Team  = 13
38    Pink Team    = 10
39
40    other team numbers may appear in free for all games
41
42    for an example parser (written in php, thanks to tChr) have a look at:
43       http://excalibur.nvg.ntnu.no/nexuiz/statsparser