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