Vinifera-Developers / Vinifera

Vinifera is a C&C: Tiberian Sun engine extension implementing new logics and fixing bugs.
GNU General Public License v3.0
46 stars 10 forks source link

[New Feature] [Client Support] Export multiplayer scores at end of game #780

Open Rampastring opened 2 years ago

Rampastring commented 2 years ago

First Check

Description

The CnCNet Client currently reads multiplayer scores from the log file after a game. They are formatted like this

Danalin: Winner
 Scheme: 39
 Lost = 185
 Kills = 401
 Economy = 13
 Score = 124974
 KillRatio = -0.000000
 BuildEconomy = 757178307706775590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
Humperdoo: Winner
 Scheme: 15
 Lost = 170
 Kills = 782
 Economy = 27
 Score = 192000
 KillRatio = 26815615909137332000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
 BuildEconomy = 0.000000
Rampastring: Winner
 Scheme: 35
 Lost = 170
 Kills = 865
 Economy = 28
 Score = 187906
 KillRatio = 2.000000
 BuildEconomy = -680417326790820640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
Computer: Loser
 Scheme: 47
 Lost = 788
 Kills = 145
 Economy = 0
 Score = 89055
 KillRatio = 0.000000
 BuildEconomy = 0.000000
Computer: Loser
 Scheme: 33
 Lost = 496
 Kills = 75
 Economy = 0
 Score = 63290
 KillRatio = -0.000000
 BuildEconomy = 0.000000
Computer: Loser
 Scheme: 59
 Lost = 859
 Kills = 304
 Economy = 0
 Score = 172981
 KillRatio = -0.000000
 BuildEconomy = 0.000000

If it's deemed undesirable for the client to read Vinifera's log files for this information, Vinifera should export this information in some convenient way.

Proposed Code (optional)

No response

Additional Context

No response

Rampastring commented 2 years ago

The nonsensical economy stat is related: #544