Feature #478

Improve statistics

Added by Spyhawk almost 5 years ago. Updated almost 2 years ago.

Status:Fixed% Done:

100%

Priority:Normal
Assignee:-
Category:Mod generic
Target version:2.76
OS: Arch:

Description

So every ET player is familiar with the points system, aka the infamous XP system. But there is another one that is more unknown although it is implemented in the code: Game Points. The GP score isn’t shown in-game at all, nor it is displayed on the scoreboard after a game. Instead, it shows up only in the console output.

Game Points is similar to a dumbed down XP system. It tracks points in one category only according to various actions, and it seems to be a left over of the RTWC code and/or the OSP mod for RTWC.

Along with some stats similar to the in-game XP system (Team Damage, ..), the console stats also outputs:
  • the number of suicide
  • the kill/death "efficiency" (kill / (kill + death))
  • the GP score

The idea is to merge both of these stats system, so the final scoreboard and console output display the same information. The GP system might be also entirely removed.

Also, to consider:
  • adding number of suicide in debrief screen (done)
  • removing the kill/death "efficiency" (kill / (kill + death)) ? (we keep it)
  • adding the GP score to the debrief screen or removing it entirely (removed)
  • adding a HS percentage might be a good idea too. (done, added global accuracy and HS ratio)
  • showing the time effectively played (currently: time connected only) in each team/as spec. (done, showing: total/axis/allies)
  • computing (or not) as hit when shooting non gibbed corpse (see g_stats from ETPub).
  • adding number of gib (like OSP mod) (done)
  • adding team damage given/team damage received (done)
  • added TeamKill and Selfkill in debriefing screen and stats window (done)
  • time being alive (maybe as a percentage of time played) (done)
  • kills according to enemy spawntimer (see request in forum), although this might be overkill. (overkill)

This ticket concerns only the "micro" in-game statistics. The implementation of a more global stats system is tracked in #403.


Related issues

Related to ET: Legacy Development - Bug #853: Fix debriefing stats Fixed 02.08.2015
Related to ET: Legacy Development - Feature #860: Use medals system in other gametype Fixed 16.08.2015
Related to ET: Legacy Development - Feature #902: Compute real accuracy Invalid 07.12.2015

Associated revisions

Revision c15cf6e5
Added by Spyhawk almost 5 years ago

cgame: cap stats at 100%, refs #453

Revision 3fc95848
Added by Spyhawk almost 5 years ago

game: fixed end game total xp stats, beautified

Revision 52f77ea7
Added by Spyhawk almost 5 years ago

mod: added received team damage stats, refs #478

Revision f121a28a
Added by Spyhawk almost 5 years ago

game: avoid ever increasing playing time on debriefing screen, refs #478

Revision 97a4420a
Added by Spyhawk almost 5 years ago

mod: added time played in each team in debriefing screen, refs #478

Revision ede0d5be
Added by Spyhawk almost 5 years ago

cgame: display selfkills stats in debriefing screen, refs #478

Revision 39209aa1
Added by Spyhawk almost 5 years ago

mod: added teamkills stats in debriefing, refs #478

Revision 00c55a8f
Added by Spyhawk almost 5 years ago

mod: added selfkills and teamkills in in-game stats window, refs #478

Revision 5f3010dc
Added by Spyhawk almost 5 years ago

mod: added accuracy and HS ratio in debriefing and stats window, refs #478

Revision 2abfd125
Added by Spyhawk almost 5 years ago

cgame: VS compiler fix and cleanup, refs #478

Revision e2b7be46
Added by Spyhawk almost 5 years ago

cgame: fixed potential division by zero, refs #478

Revision 362f1d43
Added by Spyhawk almost 5 years ago

cgame: fixed accuracy and hs ratio in console output, refs #478

Revision c25215ca
Added by Spyhawk almost 4 years ago

mod: renamed suicides into selfkills, refs #478

Revision 6239f869
Added by Spyhawk almost 4 years ago

cgame: added total kills and deaths to stats window, refs #478

Revision 379dc72f
Added by Spyhawk almost 4 years ago

cgame: use singular for HS percentage stats, refs #478

Revision feb772cc
Added by Spyhawk almost 4 years ago

cgame: capped global accuracy stats, refs #478

Revision 4916e690
Added by Spyhawk over 3 years ago

cgame: enhanced global stats alignment, refs #478

Revision 40ab220f
Added by Spyhawk over 3 years ago

game: fixed empty slots stats shift, refs #478 #853

Revision 35f7d64a
Added by Spyhawk over 3 years ago

game: also compute HS percentage server side, refs #853

Revision 26b33d4a
Added by Spyhawk over 3 years ago

game: round accuracy and HS percentage stats, refs #478

Revision fd12d926
Added by Spyhawk over 3 years ago

mod: show more accurate stats in debriefing, refs #478

Revision 0fc21718
Added by Spyhawk over 3 years ago

mod: use rounded value for accuracy and HS stats for now, refs #478

Revision 959ea874
Added by Spyhawk over 3 years ago

mod: removed old OSP game points system, refs #478

Revision 93c4bffc
Added by Spyhawk over 3 years ago

game: readded efficiency indicator, refs #478

Revision 36a54640
Added by Spyhawk over 3 years ago

cgame: adjusted skills alignement in stats window

Revision c1d28260
Added by Spyhawk over 3 years ago

game: adjusted match results color code position, refs #478

Revision d8e6321b
Added by Spyhawk over 3 years ago

game: added spectators to match results, refs #478

Revision 135e5285
Added by Spyhawk over 3 years ago

mod: show more accurate accuracy in debriefing, refs #478

Revision 60ad4d8c
Added by Spyhawk over 3 years ago

game: clean up, refs #478

Revision 4e46d32d
Added by Spyhawk about 3 years ago

mod: added played time percentage stats, refs #478

Revision 76963c5d
Added by Spyhawk about 3 years ago

game: cap accuracy at 100% before sending to clients, refs #478

Revision 65c9cd39
Added by Spyhawk about 3 years ago

game: do not count spectator time as time played, refs #478

Revision 80ec42c0
Added by Spyhawk about 3 years ago

cgame: stats dump cosmetics, refs #478

Revision 1b5ec301
Added by Spyhawk about 3 years ago

cgame: cap individual weapons stats at 100%, refs #478

Revision 25662810
Added by Spyhawk about 3 years ago

game: gametype check cleanup as gametypes < GT_WOLF are obsolete

Revision 5bcc787d
Added by Spyhawk about 3 years ago

mod: added intentional gib stats counter, refs #478

Revision efdec72e
Added by Spyhawk about 3 years ago

game: fixed intermission stats parsing, refs #478

Revision d80109b2
Added by Spyhawk about 3 years ago

mod: added team gib stats counter, refs #478

Revision ed3650f0
Added by Spyhawk about 3 years ago

game: capped accuracy award value to 100%, refs #894

Revision 0d6b8b27
Added by Spyhawk about 3 years ago

cgame: increased weapon column size for alignment, refs #478

Revision 09357873
Added by Spyhawk about 3 years ago

cgame: fixed debriefing stats alignment, refs #478

Revision 63974f9b
Added by Spyhawk over 2 years ago

game: capped best survivor award value, refs #478

Revision 4211639f
Added by Spyhawk over 2 years ago

cgame: adjusted window labels alignment, refs #478

Revision b5ffb5b4
Added by Spyhawk about 2 years ago

cgame: hide skill rating in debriefing when disabled, refs #478 #403

Revision 603b5212
Added by Spyhawk about 2 years ago

mod: added playtime in stats window, refs #478

Revision 9e67b2a2
Added by Spyhawk almost 2 years ago

game: cleaned up old LT variable, refs #478

Revision 650e9d8d
Added by Spyhawk almost 2 years ago

game: removed unused OSP score system, refs #478

Revision 46bd1313
Added by Spyhawk almost 2 years ago

game: fixed scoreboard mismatched ranking

See 650e9d8d7f3e909a199bb8e6c0248d669a254f71

Revision 047390d2
Added by Spyhawk almost 2 years ago

game: always sort scoreboard when player dies, refs #478

History

#1 Updated by Spyhawk almost 5 years ago

  • Description updated (diff)

#2 Updated by Spyhawk almost 5 years ago

  • Description updated (diff)

#3 Updated by Spyhawk almost 5 years ago

  • Description updated (diff)

#4 Updated by Spyhawk almost 5 years ago

  • Description updated (diff)

#5 Updated by Spyhawk almost 5 years ago

Initially, I was thinking it would be better to remove the old scoring system (Game Point) entirely, but it is actually somewhat interesting since it encourage objective players better than "xp whore" players. You can finish a game with a low xp score, but still have the highest GP score if you took the objective back for example. Maybe there’s something interesting to do with GP here?

The "kill/death efficiency" metric is however really useless imho, and can be removed.

#6 Updated by Mateos almost 5 years ago

I don’t really see the point in removing stuff stat-wise?

#7 Updated by Radegast almost 5 years ago

The "kill/death efficiency" metric is however really useless imho, and can be removed.

Isn’t K/D ratio part of the Game Points system EDIT: I meant bayesian skill rating?

EDIT 2: nevermind. I am doing three things at once and write stuff before I think about it.

#8 Updated by Spyhawk almost 5 years ago

Mateos> As explained in the ticket’s description, there’s 2 different stats stuffs in the current code (console output + debrief screen), with some overlapping. Part of these stats stuff come from older codebase (OSP, a mod for RTCW that was included in W:ET codebase somehow) and I’d like to better integrate the two.

Here, I’m questioning the relevance of the included "K / (K+D)" metric which is displayed only in console output.

Radeg> Yeah, the Bayesian stats / TrueSkill system is a totally different kettle of fish

#9 Updated by IR4T4 almost 5 years ago

I’m missing the number of team kills on the debriefing screen or whenever we print stats.

#10 Updated by Spyhawk almost 5 years ago

  • Description updated (diff)

#11 Updated by Spyhawk almost 5 years ago

  • Description updated (diff)

#12 Updated by Spyhawk almost 5 years ago

  • Description updated (diff)

#13 Updated by Mateos almost 5 years ago

  • time being alive (maybe as a percentage of time played)

→ For?

#14 Updated by Spyhawk almost 5 years ago

Mateos wrote:

→ For?

For showing the time being alive

This has been requested in forums. I personally don’t think this is a must-have, but I can imagine some people might be interested in it. This is a "to consider" list, so if you feel this is useless/useful, just state it. Any comment is welcome.

#15 Updated by Mateos almost 5 years ago

Ah, the guy asked a several things with a description but not why ^^'

Well, when I read it I thought it could be used for frag per living time, but it could exclude explosive kills, so I don’t know what is the utility of having this kind of stat...

#16 Updated by Spyhawk almost 5 years ago

No, as I understand it it could be used to show how well a player managed to stay alive when the spawntimer value is high - think of it as a defensive version of his other request (frag according to enemy spawntimer).

(note: the only stat I might include before 2.71 release is the gib counter - others addition/removal will wait for 2.72).

#17 Updated by Spyhawk over 3 years ago

  • Related to Bug #853: Fix debriefing stats added

#18 Updated by Spyhawk over 3 years ago

  • Description updated (diff)

#19 Updated by Spyhawk over 3 years ago

  • Rework the Accuracy/HS percentage in debriefing screen. Move it from server to client side, since we already send the raw information. (no point, we need it server side for awards anyway)
  • Fix gib stats. Neither shots or hits when forcing into limbo are taken into account. See G_Damage() and G_addStats(). NQ does count only shots, so accuracy decrease when forcing into limbo. ETPub allows a cvar for this (g_stats).
  • Maybe add some distance statistics? (see pers.headshotDistance in ETPub) No, it’s not relevant at all.

#20 Updated by Spyhawk over 3 years ago

  • Description updated (diff)
  • Status changed from New to In Progress
  • % Done changed from 0 to 50

#21 Updated by Spyhawk over 3 years ago

  • Related to Feature #860: Use medals system in other gametype added

#22 Updated by Spyhawk about 3 years ago

  • Description updated (diff)

#23 Updated by Spyhawk about 3 years ago

  • Target version changed from 2.77 to 2.75

#24 Updated by Spyhawk about 3 years ago

  • Description updated (diff)

#25 Updated by Spyhawk about 3 years ago

#26 Updated by Spyhawk about 3 years ago

  • Target version changed from 2.75 to 2.77
  • % Done changed from 50 to 80

#27 Updated by Spyhawk over 2 years ago

  • Target version changed from 2.77 to 2.76

#28 Updated by Spyhawk over 2 years ago

: Make the labels in the stat info window resolution/font independent. They are actually positioned with an absolute value. Alignment is currently optimized for FullHD resolution.

#29 Updated by Spyhawk almost 2 years ago

  • Status changed from In Progress to Fixed
  • % Done changed from 80 to 100

The work involved to get these strings moved by a few pixels isn’t worth it. It looks quite fine anyway, and perfect in full HD. Closing.

We’ve not be able to find a better alternative for the gibs stats issue.

#30 Updated by Spyhawk almost 2 years ago

  • Status changed from Fixed to In Progress
  • % Done changed from 100 to 90

The old Game Point system from OSP is still in the code (see variable in g_team.h).
See related commit that removed the total from the end of match stats.

We could actually completely remove it, or keep it and build some other gametype based on score? Maybe we could find a nice idea where this would be useful?

NB: If removing, beware of LMS mode as it uses some of these functions.
Edit: Let’s remove it.. can still be added back if we ever decide to add a new gametype/score feature.

#31 Updated by Spyhawk almost 2 years ago

  • Status changed from In Progress to Fixed
  • % Done changed from 90 to 100

Also available in: Atom PDF