Feature #1177

Make players' stats of 2nd round of stopwatch add up to stats of 1st round of stopwatch

Added by Bystry 7 months ago. Updated 2 months ago.

Status:Fixed% Done:

100%

Priority:NormalSpent time:-
Assignee:Spyhawk
Category:Mod generic
Target version:2.77
OS: Arch:

Description

Currently players’ statistics (kills, deaths, damage given and received, etc. both /scores and when alt is pressed) reset after 1st round of stopwatch. This gives an incomplete outlook of players’ performance.

The statistics during and after 2nd round of stopwatch should add up to the first round, so that an overall outlook of players’ performance is provided. It works that way in ETPro in competitive configs.

Associated revisions

Revision 1302db48
Added by Spyhawk 2 months ago

game: fixed session stats always reset in SW mode, fixes #1177

This partially reverts 5e5b6042ab851016ea192bb79f12111c7268c2a9

History

#1 Updated by Spyhawk 7 months ago

  • Category set to Mod generic

#2 Updated by Spyhawk 7 months ago

reset after 1st round of stopwatch. This gives an incomplete outlook of players’ performance.

I am not sure about that. When you simply add up stats, you get overall stats for the match but you cannot compare 1st and 2nd rounds anymore, wheras stats for each round can be automatically saved on files.
What we can do however, is a 1st round stats (as done actually), and later a 2nd round stats + total match stats (in console) + maybe a detailed match file with both rounds and total numbers.

#3 Updated by Bystry 7 months ago

Well, I think that maybe that would be even better - after 1st round just print in the console statistics of 1st round (as it is), then after 2nd round print both statistics of 2nd round + total matches statistics (and make it add up when alt is pressed during 2nd round AND make it add up in the window after match - I mean that window that shows up when you press more). So generally the statistics would add up everywhere, but additionally there would be statistics of 2nd round provided in the console.

Btw. comparing stats of 1st and 2nd round is a bit pointless as you play on defense and offense and the damage, kills and deaths will always be different.

#4 Updated by Spyhawk 7 months ago

Btw. comparing stats of 1st and 2nd round is a bit pointless as you play on defense and offense and the damage, kills and deaths will always be different.

Yes, the idea is more about being able to compare across different matches (maybe against the same team). For example, if Team A starts as Axis, then on another SW match on the same map Team A starts as Allies.

#5 Updated by IR4T4 7 months ago

Isn’t this a thingy for WA? It could collect the data from both rounds and print an overall stats after. The data could be kept and printed by command until the next stopwatch round has been finished. WA could use this for other gamestypes too. You can see the stats from the previous game (or campaign).

#6 Updated by ryven 7 months ago

I think this is basic functionality that should just work out of the box, not involving any WA or lua in general.

#7 Updated by Spyhawk 7 months ago

  • Assignee set to Spyhawk

Yes. The whole system is needed for the debriefing screen anyway. This is just an additional printing in console.

#8 Updated by Spyhawk 6 months ago

  • Target version changed from 2.77 to 2.78

#9 Updated by Spyhawk 3 months ago

  • Target version changed from 2.78 to 2.77

#10 Updated by Spyhawk 2 months ago

See https://github.com/etlegacy/etlegacy/commit/5e5b6042ab851016ea192bb79f12111c7268c2a9 for a relevant commit. This seems to be an actual regression.

#11 Updated by Spyhawk 2 months ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF