Quake 4 statisticslog.txt parser

GODLIKE
Posts: 387
Joined: Tue Nov 30, 1999 8:00 am

Quake 4 statisticslog.txt parser

Post by GODLIKE »

? Anybody written one, yet ?

Where IS that guy who wrote gibstats, back in the day.. that thing rocked.
endmill
Posts: 7
Joined: Mon Nov 07, 2005 4:00 am

Post by endmill »

I was just gunna post for that hope someone makes one soon it be nice to have.
Fjoggen
Posts: 23
Joined: Sat Aug 30, 2003 7:00 am

Post by Fjoggen »

I planned to write one before I saw the log file....

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
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%
  • 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...?
Questins so many questions

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.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

If somebody provides me with a decent log file, I'll write you a decent parser in Perl or PHP in return.
GODLIKE
Posts: 387
Joined: Tue Nov 30, 1999 8:00 am

Post by GODLIKE »

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..
kaffeedoktor
Posts: 13
Joined: Mon Feb 09, 2004 8:00 am

Post by kaffeedoktor »

I also thought about writing a log parser, but like mentioned above it's not really needed because there is no suiteable log file!

I just don't understand why g_log is disabled in multiplayer. Perhaps that's something mod development may pick up and change ...
dynerman
Posts: 15
Joined: Mon Oct 17, 2005 6:31 am

Post by dynerman »

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)
User avatar
FragaGeddon
Posts: 3229
Joined: Sun Sep 17, 2000 7:00 am

Post by FragaGeddon »

0% means that weapon has been fired but with no hits.
kaffeedoktor
Posts: 13
Joined: Mon Feb 09, 2004 8:00 am

Post by kaffeedoktor »

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.
Fjoggen
Posts: 23
Joined: Sat Aug 30, 2003 7:00 am

Post by Fjoggen »

OPS
I just assumed that the percentages where of kills per weapon, not hits per weapon, which doesn't add up at all......
R00k
Posts: 15188
Joined: Mon Dec 18, 2000 8:00 am

Post by R00k »

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.
dynerman
Posts: 15
Joined: Mon Oct 17, 2005 6:31 am

Post by dynerman »

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.
This seems very odd - logfile should be dumping everything, and kills certainly get written to the console.

I'll take a look at it tonight and see what I can find.
R00k
Posts: 15188
Joined: Mon Dec 18, 2000 8:00 am

Post by R00k »

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?
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Post by Foo »

The game log is fucking useless in its current form.
"Maybe you have some bird ideas. Maybe that’s the best you can do."
― Terry A. Davis
GODLIKE
Posts: 387
Joined: Tue Nov 30, 1999 8:00 am

Post by GODLIKE »

I seem to notice that the totals are weird, too.. on a 15 fraglimit round, I see many players with 17, 20 kills.. and 0 suicides. Something is up with the totals...
dynerman
Posts: 15
Joined: Mon Oct 17, 2005 6:31 am

Post by dynerman »

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?
The code in idMultiplayerGame::ReceiveDeathMessage() calls Printf(), so it SHOULD be echoing the console.

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
So it seems this would work. Please note that console text is not echo'd to the screen (printed on the top left like q3) unless developer 1 is set.
Hex
Posts: 190
Joined: Fri Oct 18, 2002 7:00 am

Post by Hex »

/agrees with dynerman, when this on a windows listen server.

linux dedicated server, no.
endmill
Posts: 7
Joined: Mon Nov 07, 2005 4:00 am

Post by endmill »

sneek peek still in development :/

http://www.ends-realm.clanservers.com/stats/
R00k
Posts: 15188
Joined: Mon Dec 18, 2000 8:00 am

Post by R00k »

Is that populated with actual data from a server log?
jester!
Posts: 969
Joined: Mon Oct 31, 2005 1:55 am

Post by jester! »

Think so, I have played with a few of those names randomly...
endmill
Posts: 7
Joined: Mon Nov 07, 2005 4:00 am

Post by endmill »

yes it is.
kleeks
Posts: 161
Joined: Sat Apr 14, 2001 7:00 am

Post by kleeks »

looking good so far endmill :)

/me awaits release
endmill
Posts: 7
Joined: Mon Nov 07, 2005 4:00 am

Post by endmill »

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 :D
{uZa}FreakOfNature
Posts: 151
Joined: Thu Oct 20, 2005 2:18 am

Post by {uZa}FreakOfNature »

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]
GODLIKE
Posts: 387
Joined: Tue Nov 30, 1999 8:00 am

Post by GODLIKE »

once the patch is final, people may write a good one. The console logging isn't just for listen servers, now..
Locked