Quake 4 statisticslog.txt parser

[TJD]Rico
Posts: 109
Joined: Tue Oct 18, 2005 8:19 pm

Post by [TJD]Rico »

{uZa}FreakOfNature wrote: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?
The console logs are rubbish. They only have information about who killed whom. A CTF log, for example, doesn't even have things like "Player got the Strogg flag", or "Player captured the Marine flag" etc.

The new XML stats output in Q4Max 0.72 is quite nice, but it still doesn't include stuff like flag pickups, FC defends etc.

A real bummer for stat whores like myself.
{uZa}FreakOfNature
Posts: 151
Joined: Thu Oct 20, 2005 2:18 am

Post by {uZa}FreakOfNature »

The 'statisticslog.txt' looks like it has all the info I need for a DM server to put together basic stats. I just don't know how to parse properly and get all the data together into a decent HTML file. I'm just looking for basic Total Kills, Total Deaths, Total Suicides, etc. Nothing major. Or even keeping track of accuracy for each weapon might be cool and easily doable looking through the log. Here's a copy of my server's log if you guys want to look through it: http://www.xtremedfw.com/fplayer/newmp3 ... icsLog.txt
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]
KMG
Posts: 83
Joined: Fri Apr 15, 2005 4:21 am

Post by KMG »

Wow, log parsers must be the easiest thing in the world to write. Maybe I'll whip one up some time when I'm bored.
Fjoggen wrote:As a none native English speaker with dyslexia, I would appreciate it if you could give me a hint when my spelling and grammar is horrible.
English is my second language and I have dyslexia. Therefore, I would appreciate it if you could let me know when my spelling and grammar are horrible.*
GODLIKE
Posts: 387
Joined: Tue Nov 30, 1999 8:00 am

Post by GODLIKE »

I haven't checked statisticslog.txt post-match in a while; does anybody know if "deaths by world" still don't count as suicide in the statistics log?
{uZa}FreakOfNature
Posts: 151
Joined: Thu Oct 20, 2005 2:18 am

Post by {uZa}FreakOfNature »

KMG wrote:Wow, log parsers must be the easiest thing in the world to write. Maybe I'll whip one up some time when I'm bored.
Let me know if you come up with something. I've searched high and low and have come up empty so far. I'm surprised there hasn't been one written for Vanilla Q4 yet. :(
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]
dzjepp
Posts: 12839
Joined: Wed Mar 28, 2001 8:00 am

Post by dzjepp »

Apparently x-battle is making a better log system, mebbe q4max is as well? :shrug:
{uZa}FreakOfNature
Posts: 151
Joined: Thu Oct 20, 2005 2:18 am

Post by {uZa}FreakOfNature »

I need one for Vanilla Q4 right now.

Man, I'm amazed that not one person has written just a basic log parser yet. :( I wish I had time to learn I'd do it myself.
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]
[TJD]Rico
Posts: 109
Joined: Tue Oct 18, 2005 8:19 pm

Post by [TJD]Rico »

I wrote a log parser, but the logs are boring so I didn't bother making it public. The Q4Max XML output is nice, but really needs to be viewed alongside kill events. Flag event stats are not available in Q4 logs or Q4Max. Maybe the XBattle log will offer both, but it seems to log server-side only, which sucks.
AnthonyJa
Posts: 47
Joined: Sun Nov 26, 2000 8:00 am

Post by AnthonyJa »

More stats can and will be added to the q4max XML stats - such as the flag carrying stats and powerup stats.

What about the kill events do you want from the logs that arent in the stats?
[TJD]Rico
Posts: 109
Joined: Tue Oct 18, 2005 8:19 pm

Post by [TJD]Rico »

AnthonyJa wrote:More stats can and will be added to the q4max XML stats - such as the flag carrying stats and powerup stats.

What about the kill events do you want from the logs that arent in the stats?
With regard to the kill events, the stuff I'm after are the sort of things that are available by parsing logfiles (although Q4's make it a PITA). For example, the number of times each player killed or was killed by each other player. Also, using logfiles it's possible to plot a graph of frags for one team against another (interesting for TDM games, for example). I also like to produce weapon/kill/death timelines for players -- for example, see here.
{uZa}FreakOfNature
Posts: 151
Joined: Thu Oct 20, 2005 2:18 am

Post by {uZa}FreakOfNature »

That's awesome dude. Are you going to release it eventually? I'm so despeate for a Server side stats generator.
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]
Jagou
Posts: 30
Joined: Thu Mar 02, 2006 4:02 pm

Post by Jagou »

I too would love to see a stats generator. That'd be awesome.

Jagou
{uZa}FreakOfNature
Posts: 151
Joined: Thu Oct 20, 2005 2:18 am

Post by {uZa}FreakOfNature »

I've moved to Q4Max. GREAT looking stats generation.
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]
Locked