Loading...
  OR  Zero-K Name:    Password:   

Stats feature request: ratios of dealt/received and value killed/lost

9 posts, 241 views
Post comment
Filter:    Player:  
sort

3 months ago
It would be incredibly cool to have a feature that shows the ratio of damage dealt + value killed against the damage received and value lost. Not sure what that would look like, but it might be interesting to dispel the "highest damage = best. fullstop." cries that we hear every now and then. It'd also just be a neat stat to peak at.
+4 / -0
3 months ago
i like information
+1 / -0
3 months ago
I guess there should be some constraints. Otherwise you take 1 damage and do 100 damage, and people will should again "best ratio = best.fullstop."...

One more thing if anybody touches that code: if you highlight a player sometimes his "line" in the graph is "below" and you can't see it clearly.
+0 / -0

3 months ago
> i like information

indeed. information deserves to be free
+0 / -0
Yes like to see it for each individual unit.
+0 / -0
So it turns out that something *like that* exists in the replay file. There's a line that shows how much damage each unit, grouped by player to each other unit.

quote:
{'cmd': 'chat', 'size': 51, 'fromID': 5, 'playerName': b'kworon8', 'toID': 255, 'message': b'SPRINGIE:stats,dmg,cloaksnipe,spiderriot,900,0\x00'}
{'cmd': 'chat', 'size': 51, 'fromID': 5, 'playerName': b'kworon8', 'toID': 255, 'message': b'SPRINGIE:stats,dmg,cloaksnipe,shieldraid,340,0\x00'}
{'cmd': 'chat', 'size': 55, 'fromID': 5, 'playerName': b'kworon8', 'toID': 255, 'message': b'SPRINGIE:stats,dmg,hoverriot,jumparty,783.600647,0\x00'}


Not sure if the toID is a bug or intentional, or if the message is even being parsed properly, but 255 might just be a catchall id. But it could be used for similar inferences like what you're thinking of. Since it's already retained for endgame stats, it'd probably be pretty easy to implement a dropdown-by-unit of some kind.
+0 / -0
3 months ago
Probably relevant code: https://github.com/ZeroK-RTS/Zero-K/blob/e18f20b43665a7b65de3256c6fd13a62cda6feaa/LuaRules/Gadgets/mod_stats.lua#L269

I think the "per player" is the chat message (so this is "a chat message to all" so I guess the 255 is the catch all).

So the information collected is damage dealt between units classes alone. Less interesting than what you want (and also not temporal, I was thinking of a ratio of dealt/received as one of the graphs at the end)
+1 / -0

3 months ago
Yeah and even less useful/interesting after actually trying to use it in some charting:



Looks like a bug.
+0 / -0
(edit: just reread your post and you said the same thing I did. is there a way to delete posts?)
+0 / -0