Format of stats.txt generated by the UploaderBAB.stats Uploader outputs stats in format that can be easily parsed in PHP or any other programming language. Heres an example of stats.txt:
GameStart__&__DF:LW v1.00.37__&__serveridcode__&__bab.stats test__&__Desert Hole__&__0__&__2__&__0__&__2002-07-29 23:20:19 If OutputLog in babstats.cfg was enabled, theres a list of death messages, then the stats.txt would look like this:
GameStart__&__DF:LW v1.00.37__&__serveridcode__&__bab.stats test__&__Desert Hole__&__0__&__2__&__0__&__2002-07-29 23:20:19 Data for each game starts with "GameStart" line and ends with "GameEnd". Each element in "GameStart" line is separated by "__&__". All elements go like this:
GameStart__&__Game and version__&__Server id code__&__Server name on NovaWorld__&__Map name__&__Dedicated__&__Game Type__&__Winner__&__Date/Time If "Dedicated" is 0 then server was not dedicated (playing host), otherwise, if it is 1, server was dedicated. Heres a list of all "Game type" and what they mean:
Note: these game type codes are for DFLW, DFTFD and DF2 - theres no data what game type codes are in other games. If "Winner" is 0 then there was no winner on that map, 1 - blue won, 2 - red won, 3 - yellow, 4 - violet. "Player" line is decoded like this:
Player__&__Score_Kills_Deaths_Headshots_Knifings_Medic saves_Flags picked_Flags saved_Murders_Suicides_Team code_Shots fired_Weapon code__&__Name If Team Code is 0 then the player didn't have a team, 1- blue, 2 - red, 3 - yellow, 4 - violet. Weapon codes for DFLW are these:
For DFTFD weapon codes are these:
For DF2 Demo weapon codes are these (Theres only one weapon - M4/MK):
And the weapon codes for DF2:
|