OpenArena Message Boards

OpenArena Contributions => Development => Topic started by: Czestmyr on July 10, 2007, 06:51:40 AM



Title: More game statistics?
Post by: Czestmyr on July 10, 2007, 06:51:40 AM
Hi,

I wanted some neat statistics for the European 24/7 Server, but I found out, that no statistics actually support CTF. When I looked at my games.log file, it really didn't show any CTF-related stuff. Just collecting flags, but that is not very helpful. I was thinking about creating some nice OA statistics system, but it would be nice if the game provided more info about the game events, like the weapon that the player dies with, dropping the flags, killing the flag-carrier, getting awards like "impressive", "excellent", "defend", etc... etc...

Is this doable? Or, better said, wouldn't it require too much work? Because better statistics program would be nice and I would be more than happy to start working on it.

Edit: Of course, such program would be open-source. Sadly enough, AEstats isn't open-source and in the closest future it probably won't be.


Title: Re: More game statistics?
Post by: w1zrd on July 10, 2007, 09:20:43 AM
You could always take a look at qscore, a nifty little program that Jack Thompson wrote. He is running it to control the stats on his * * T E S T * * servers and they work well. Not for CTF yet, but he might have it planned for future releases. An upcoming feature will be weapon most used as I know of... check with him, might be useful?


Title: Re: More game statistics?
Post by: Czestmyr on July 10, 2007, 09:24:18 AM
Oh, thanks for the tip.

CTF cannot be supported yet, because the game doesn't log that.


Title: Re: More game statistics?
Post by: w1zrd on July 10, 2007, 09:27:02 AM
Oh, thanks for the tip.

CTF cannot be supported yet, because the game doesn't log that.
Yeah, I checked some logs and as you already said, not very useful CTF stats coming from server side atm..


Title: Re: More game statistics?
Post by: dmn_clown on July 10, 2007, 04:43:01 PM
You could always take a look at qscore, a nifty little program that Jack Thompson wrote. He is running it to control the stats on his * * T E S T * * servers and they work well. Not for CTF yet, but he might have it planned for future releases. An upcoming feature will be weapon most used as I know of... check with him, might be useful?

You might want to let him know that his servers aren't showing up in game, but are showing up in quake 3's multiplayer list.


Title: Re: More game statistics?
Post by: Czestmyr on July 11, 2007, 03:07:13 AM
I started working on my statistics processor. I decided to generate a XML file from the statistics that could be later used for whatever purpose needed. For example, it could be then formatted by XSLT to XHTML.


Title: Re: More game statistics?
Post by: Czestmyr on July 12, 2007, 02:38:21 PM
First version is done. It generates XML output, which can be processed later.
I tried it on the European 24/7 server. I process it with saxon there. You can look at the outcome here: http://84.16.251.15/openarena/oa/index.html


Title: Re: More game statistics?
Post by: Fitacus on July 14, 2007, 08:39:56 AM
Could u use your own statistic game programm for any other game servers in OA?


Title: Re: More game statistics?
Post by: Linux on July 14, 2007, 08:44:33 AM
Hi, yes is possible. You will only need some libraries to make it working properly.

Is tested only on linux and 0.7.0 OpenArena Version.


Title: Re: More game statistics?
Post by: ALucas on July 14, 2007, 12:11:25 PM
I'll add some advanced logging in my serverside mod (which I can send you to test and I'll release after it's found stable). What exactly were you thinking about except for flag captures? And how should it be logged? (any preferred syntax?)


Title: Re: More game statistics?
Post by: Czestmyr on July 15, 2007, 03:54:39 AM
I'll add some advanced logging in my serverside mod (which I can send you to test and I'll release after it's found stable). What exactly were you thinking about except for flag captures? And how should it be logged? (any preferred syntax?)

The most important stuff would be:
Awards
Excellent, impressive, defence, assist
CTF-related stuff
Scoring a flag, returning own flag, (maybe killing the flag carrier?), picking up the flag is already done.

About the syntax - I think it would be best to create new event names for this to keep default event names, such as "Item" or "Kill" unchanged. For Awards, it could look like this:
  0:16 Award: 2 0: Gargoyle was awarded with the Excellent award
  2:31 Award: 4 1: Kyonshi was awarded with the Impressive award
etc...
And CTF stuff could have events named "Ctf" or whatever ;)


Title: Re: More game statistics?
Post by: CorteX on July 15, 2007, 06:39:58 AM
You might want to let him know that his servers aren't showing up in game, but are showing up in quake 3's multiplayer list.

hmm strange, here I see his server in OA and not in Q3.. Well anyway.. Czest it would be nice to have a more detailed logging system, but I havent got a clue about the work intensity on that one, sorry :)


Title: Re: More game statistics?
Post by: ALucas on July 15, 2007, 07:56:10 AM
the award logging is done (for humiliation, excellent, impressive, defense, capture and assist)

examples:
Quote
Award: 2: Mikolaj gained the Capture award
Award: 0: Immortal gained the Assist award
Award: 2: Mikolaj gained the Defense award
Award: 0: Immortal gained the Capture award
Award: 2: Mikolaj gained the Defense award
Award: 2: Mikolaj gained the Defense award


Title: Re: More game statistics?
Post by: Czestmyr on July 15, 2007, 08:00:32 AM
Wow, marvellous :D

Edit: But shouldn't you include the time and player number as with all statistics? This would be hard to parse :(


Title: Re: More game statistics?
Post by: ALucas on July 15, 2007, 08:39:29 AM
time is automatically added for the log, these were actually c/p'd from the console output as I don't have logging enabled

the player number is the 0 and 2, or do you mean something else?


Title: Re: More game statistics?
Post by: Czestmyr on July 15, 2007, 09:04:17 AM
Oh, fine. So then some award ID is missing. Because my OAstats is parsing the log events by numbers and IDs, it is not parsing the texts (A killed B by W, etc...)


Title: Re: More game statistics?
Post by: ALucas on July 15, 2007, 09:22:13 AM
Ah, I got what you mean now. I'll just give each award a number and add it to the log string.

I've also done the CTF log messages now:
Quote
CTF: 0: Immortal got the RED flag!
CTF: 0: Immortal captured the RED flag!
CTF: 0: Immortal got the RED flag!
CTF: -1: The RED flag has returned!
(again no timestamps because it's from the console)
The numbers are again client numbers, the -1 is because the flag wasn't returned by a player but by the game.
What do you suggest for these? Number each event? (i.e. 0=flag taken, 1=flag captured, 2=flag returned, 3=carrier fragged)
I'll also add the team number.


Title: Re: More game statistics?
Post by: Czestmyr on July 15, 2007, 09:44:09 AM
Perfect, that's exactly what I had in mind. And yes, number each event by a unique number. The concrete numbers don't matter, in fact. Could you also write some reference for the numbers? (eg. say, which number means what)


Title: Re: More game statistics?
Post by: ALucas on July 15, 2007, 09:55:54 AM
It's finished, I'll let it run on my server for a while and send you the file if everything seems to work fine.

award syntax: Award: #1 #2: S1 gained the S2 award
#1 and S1 are the client number and nick
#2 and S2 are the award types, corresponding to the following table:
Code:
#2 | S2
----------------
 0 | Humiliation
 1 | Excellent
 2 | Impressive
 3 | Defense
 4 | Capture
 5 | Assist

CTF syntax: CTF: #1 #2 #3: S1 got the S2 flag! / S1 captured the S2 flag! / The S2 flag has returned! / S1 returned the S2 flag / S1 fragged S2's flag carrier
#1 and S1 are the client number and nick, when there is no client involved #1 = -1
#2 and S2 are the team number and name
#3 is the event number, corresponding to the following table:
Code:
#3 | Event description
----------------------
 0 | Flag is taken
 1 | Flag is captured
 2 | Flag is returned
 3 | Flagcarrier got killed


Title: Re: More game statistics?
Post by: tommy on September 05, 2007, 04:07:05 AM
Good morning,

i am also interested in those CTF statistics.  Testing qscore at the moment: http://URL TRUNCATION IS BANNED HERE, THIS IS NOT TWITTER!.com/2rmhse


Title: Re: More game statistics?
Post by: Gabuche on September 06, 2007, 01:50:59 PM
I need more number................

Yes I am a addict of stats !

A central website for stats will be a great idea, and maybe a way to link it to a clan webpage...

=-P

Gabuche


Title: Re: More game statistics?
Post by: vindimy on November 30, 2008, 03:41:25 PM
crazy stuff!! i enjoyed this one, gives me ideas on improving my railing and rockets, lol...
good job, gerb.