OpenArena Message Boards

OpenArena => Technical Snafus => Topic started by: xnonix on April 21, 2009, 05:00:40 AM



Title: More detailed stats
Post by: xnonix on April 21, 2009, 05:00:40 AM
Hi, only a request for fromhell,
Can we have some stats after a game like kills, deaths, kills/deaths ratio?
In Urban Terror is very usefull those stats after games and I'd like to see them in OA.

Maybe a historical stats would be nice too.

Thanks,
xnonix


Title: Re: More detailed stats
Post by: Cacatoes on April 21, 2009, 07:21:21 AM
Hi,

I can't find the post anymore, but I think sago develops some stats, they'd be only visible by the player him/herself and would concern all the games played (historical then). That may not totally be what you want, but that's a start ;)


Title: Re: More detailed stats
Post by: JESUS SCOUSE on April 21, 2009, 08:00:54 AM
Stats would be nice.


Title: Re: More detailed stats
Post by: xnonix on April 21, 2009, 08:02:27 AM
Well Cacatoes, how do I see them?
Anyway the stats thing at the end of a game is a request for next OA version.

Thx for replying.


Title: Re: More detailed stats
Post by: Neon_Knight on April 21, 2009, 08:56:19 AM
Hi,

I can't find the post anymore, but I think sago develops some stats, they'd be only visible by the player him/herself and would concern all the games played (historical then). That may not totally be what you want, but that's a start ;)
Did you said... OpenArena Expanded (http://openarena.ws/board/index.php?topic=1908.0)? :D


Title: Re: More detailed stats
Post by: Cacatoes on April 21, 2009, 09:42:08 AM
@Nk
I wasn't sure ;)

@xnonix
You can't at the moment, it's for next version, but you can download the mod to have an eye.
I'm going to set up a test server with OAXb35 soon (but with bad ping).

Edit: chatroom server is up ! with oaxB35 ;) you'll see stats in main game menu.


Title: Re: More detailed stats
Post by: dash9 on April 24, 2009, 08:11:50 PM
Hi, only a request for fromhell,
Can we have some stats after a game like kills, deaths, kills/deaths ratio?
That would be awesome!

These would also be very useful:
- how much damage you gave,
- how much damage you received,

And these ones would be fun: :)
- how much health you took
- how much ammo you took


Title: Re: More detailed stats
Post by: yasha on April 25, 2009, 01:15:02 AM
How about putting every your action in some log:
Code:
Go forward
Jump
Shoot with Plasma gun
Shoot with Plasma gun (hit - 15 damage)
Strife left
Shoot with Plasma gun
/jump
/strife left
Shoot with Plasma gun (hit - 15 damage)
/go forward
Lost 75HP (Rocket luncher)
go backward
jump
/go backward
Lost  50HP (Rocket Luncher)
dead //dead would be like /go forward, /go backward, /strife left, /strife right and /jump


Then, when you want OA makes stats from that log, so you would have stats like this:
Code:
//stats
Kills: 0
Deaths: 1
Ratio: N/A //would be kills/deaths
Suicides: 0
Team kills: 0
Bullets fired: 4
Bullets hit: 2 (50%)
Bullets taken: 2
Damage given: 30
Damage taken: 125

//rewards
Excelent: 0
Perfect: 0
Accuracy: 0
Humiliation: 0
Impressive: 0
Assist: 0
Capture: 0
(is this all)

//movement
Going forward - 10 sec (2 times)
going back - 0.5 sec (1 time)
strifing left - 1 sec (1 time)
strifing right - 0 sec (0 times)
In Air - 7 sec (3 times) //one is because rocket hit

//weapons
Gauntlet:
Kills: 0; Deads: 0
Fired: 0 bullets (0% - 0 hits - 0 damage)
Being hit 0 bullets - 0 damage

Machine gun:
Kills: 0; Deads: 0
Fired: 0 bullets (0% - 0 hits - 0 damage)
Being hit 0 bullets - 0 damage

Shotgun:
Kills: 0; Deads: 0
Fired: 0 bullets (0% - 0 hits - 0 damage)
Being hit 0 bullets - 0 damage

Rocket luncher:
Kill: 0; Deads: 1
Fired 0 bullets (0% - 0 hits - 0 damage)
Being hit 2 bullets - 125 damage

Granade luncher:
Kills: 0; Deads: 0
Fired: 0 bullets (0% - 0 hits - 0 damage)
Being hit 0 bullets - 0 damage

Lighting gun:
Kills: 0; Deads: 0
Fired: 0 bullets (0% - 0 hits - 0 damage)
Being hit 0 bullets - 0 damage

Plasma gun:
Kills: 0; Deads: 0
Fired: 4 bullets (50% - 2 hits - 30 damage)
Being hit 0 bullets - 0 damage

Railgun:
Kills: 0; Deads: 0
Fired: 0 bullets (0% - 0 hits - 0 damage)
Being hit 0 bullets - 0 damage

Nailgun:
Kills: 0; Deads: 0
Fired: 0 bullets (0% - 0 hits - 0 damage)
Being hit 0 bullets - 0 damage

Prox luncher: //however its name is
Kills: 0; Deads: 0
Fired: 0 bullets (0% - 0 hits - 0 damage)
Being hit 0 bullets - 0 damage

Chaingun: //is it chain?
Kills: 0; Deads: 0
Fired: 0 bullets (0% - 0 hits - 0 damage)
Being hit 0 bullets - 0 damage

BFG:
Kills: 0; Deads: 0
Fired: 0 bullets (0% - 0 hits - 0 damage)
Being hit 0 bullets - 0 damage

I could make more, but i'm too lazy. Maybe for every type of game (CTF, TDM etc.) and for Signalplayer / multiplayer


Title: Re: More detailed stats
Post by: Cacatoes on April 25, 2009, 05:26:47 AM
Quote
I could make more, but i'm too lazy.
So imagine the one who would have to code it :D
More seriously, if you want to register every keystroke, better to register a demo file in an open format, and use some program to make fancy stats with it. (heavy work here)
But log files used for stats have to concentrate on a few meaningful actions, otherwise it could quickly grow up in size.


Title: Re: More detailed stats
Post by: yasha on April 25, 2009, 12:56:53 PM
I'm 15 year-old, and i know very little of programing... If i could i would probably do it, but why to do it now if it don't know how to put this in game?

Anyway, this log system would remember what you played this time, on every OA start it would change old log into stats, and make new log (deletes old one). Or it can make stats of this play when exiting OA, and then it deletes log.


Title: Re: More detailed stats
Post by: Case on April 25, 2009, 02:34:27 PM
There are some server side mods that give extra stuff in the logs: Xbattle and noghost I think.
You could save your logs and use regular expressions that stores to a database (or a text file) to accomplish "historical stats". There are probably other ways of doing it but this is what came to me first.
Should be simple to make a script that could do this


Title: Re: More detailed stats
Post by: SharpestTool on April 25, 2009, 06:29:52 PM
noGhost would be a no-go for OA development unfortunately cuz of licensing issues.

1.  At least everything I've seen says Q3 1.16/1.17 (crap un-upgraded versions)
2.  Developed from the Q3 SDK, not the full game source...
     a.  This means the developers have the right to keep their source closed--which they do.


Title: Re: More detailed stats
Post by: Case on April 25, 2009, 07:38:31 PM
For the historical stats: A simple script using regexes will suffice.
For the extra stat info: idk if fromhell accepts code changes :/

I give those mods for reference to any server admins out there that would like to use extra stats rather than incorporating it into OA. I think I'll post this "historical stats" script here, I need something to code right now.