Quake 4 statisticslog.txt parser
Quake 4 statisticslog.txt parser
? Anybody written one, yet ?
Where IS that guy who wrote gibstats, back in the day.. that thing rocked.
Where IS that guy who wrote gibstats, back in the day.. that thing rocked.
I planned to write one before I saw the log file....
For unknown reason Raven have removed all the nice parts from the consol log.
Examples:
Who killed who
picked up items
what weapon you killed with
etc, etc.
Until someone creates a mod that enables full logging, I do not bother writing a logfile parser.
The mysteri of the missing percentages
As you probably have found out, there are some missing prosentages:
^1N^9emon = 96%
Player = 93%
As a side not:
Since the logfile is this simple, writing a parser for it might be a perfect opportunity for anybody who wants to learn programing/scripting (C++,Java,python,ruby,php,perl....)
Edit
Spelling and grammar
Code: Select all
Statistics for ^1N^9emon
Kills: 8 Deaths: 2 Suicides: 0
Gauntlet not used
Machinegun not used
Shotgun: 23%
HyperBlaster not used
Grenade Launcher: 0%
Nailgun not used
Rocket Launcher: 27%
Railgun: 46%
Lightning Gun not used
Dark Matter Gun not used
Statistics for Player
Kills: 6 Deaths: 6 Suicides: 0
Gauntlet not used
Machinegun not used
Shotgun: 11%
HyperBlaster not used
Grenade Launcher not used
Nailgun: 0%
Rocket Launcher: 32%
Railgun: 35%
Lightning Gun: 15%
Dark Matter Gun not used
Examples:
Who killed who
picked up items
what weapon you killed with
etc, etc.
Until someone creates a mod that enables full logging, I do not bother writing a logfile parser.
The mysteri of the missing percentages
As you probably have found out, there are some missing prosentages:
^1N^9emon = 96%
Player = 93%
- Is the log missing a weapon?
- Do Raven know how to calculate?
- Is 0% any different from: not used?
- Is the 0% equal to: f(x)=x?
- Did they do it on purpose?
- Do I know how to calculate...?
As a side not:
Since the logfile is this simple, writing a parser for it might be a perfect opportunity for anybody who wants to learn programing/scripting (C++,Java,python,ruby,php,perl....)
Edit
Spelling and grammar
Last edited by Fjoggen on Fri Nov 11, 2005 3:44 pm, edited 1 time in total.
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
I sent logfiles over to AEon, who will hopefully update AEstats for the new game..
Otherwise, anybody who feels like writing a parser can email me @ kilnet.org; I've got log files aplenty.
The logging IS different; though.. It won't be a simple import into a Q3 log parser. The stuff is recorded differently..
Otherwise, anybody who feels like writing a parser can email me @ kilnet.org; I've got log files aplenty.
The logging IS different; though.. It won't be a simple import into a Q3 log parser. The stuff is recorded differently..
-
- Posts: 13
- Joined: Mon Feb 09, 2004 8:00 am
To answer Fjoggen's (and other's) questions
This stats dump is just a dump of extra end-game summary statistics kept (basically the end-game scoreboard stuff) - it's not a log of the gameplay action. Logging every item picked up to a file would be very intensive ont he server.
This is different from the logfile (enabled by setting logfile to 1) which spews console output to a text file - that will contain the game action (i.e. Newb ate Player's boomstick)
Not sure what you mean about missing percentages.
Weapon not used means that the weapon wasn't used
- If you never fire a shot from a weapon, your accuracy isn't 0%, it's undefined (at least the way we're looking at - shots hit/shots fired)
This stats dump is just a dump of extra end-game summary statistics kept (basically the end-game scoreboard stuff) - it's not a log of the gameplay action. Logging every item picked up to a file would be very intensive ont he server.
This is different from the logfile (enabled by setting logfile to 1) which spews console output to a text file - that will contain the game action (i.e. Newb ate Player's boomstick)
Not sure what you mean about missing percentages.
Weapon not used means that the weapon wasn't used

- FragaGeddon
- Posts: 3229
- Joined: Sun Sep 17, 2000 7:00 am
-
- Posts: 13
- Joined: Mon Feb 09, 2004 8:00 am
I was thinking about writing a log parser as a nice exercise in regular expressions in VB. But when I saw the actual log output I decided it would be a wasted effort for both the usefulness of it and as an exercise.
Surely someone will make decent logging for MP games, it's pretty crap not to have it in todays games.
Surely someone will make decent logging for MP games, it's pretty crap not to have it in todays games.
This seems very odd - logfile should be dumping everything, and kills certainly get written to the console.kaffeedoktor wrote:dynerman,
settng logfile to 1 will write console output to a text file, sure, aber it will NOT contain the game action as it was in q3. Only messages about players connecting are logged.
Look at my other thread in programming discussion for more information about this.
I'll take a look at it tonight and see what I can find.
The code in idMultiplayerGame::ReceiveDeathMessage() calls Printf(), so it SHOULD be echoing the console.R00k wrote:Kills don't get written to the console in my game - they only appear as little messages in the top right corner.
Maybe you haven't checked the console for them - or maybe you're using a cvar/setting we don't know about?
Trying just now, I started a server with logfile 1 and killed myself. q4base\qconsole.log contained among other things
Code: Select all
david was killed by world
im not actually making it a friend is though i just helped out with the icons is all but we're talking back and forth about other options to have. I don't even know when it will be finished plus some sort of data base will be needed to do all the options we want done. I'm just no programmer to help him out :/
but thanks for the feed back
but thanks for the feed back

-
- Posts: 151
- Joined: Thu Oct 20, 2005 2:18 am
Did anything ever come of this? Not one single person has written a log parser to at least get some basic stats going? Or are the logs just to fubar?
All Out War! 8 player DM Server
1.2 patch + Q4Max + Custom maps + FAST Auto-Download!
Go to [url]http://www.uzaclan.net[/url] for more details or just connect to: 67.19.62.215:28004
[b][color=red]Stats are kept on uZaClan.net[/color][/b]
1.2 patch + Q4Max + Custom maps + FAST Auto-Download!
Go to [url]http://www.uzaclan.net[/url] for more details or just connect to: 67.19.62.215:28004
[b][color=red]Stats are kept on uZaClan.net[/color][/b]