not a bug, but a suggestion for a new endgame graph
Moderator: Moderators
not a bug, but a suggestion for a new endgame graph
i think this graph would be very interesting:
damage dealt divided by metal spent
damage dealt divided by metal spent
Last edited by hunterw on 28 Apr 2007, 07:01, edited 1 time in total.
The production graphs by ally factions.
Ie ally team 1 vs ally team 2, not the individual players.
Should be easy as it's just plus and minus. Colors of the ally teams could be from a set order ie, red blue black white yellow green...
It'd be nice to see metal and E production for whole ally teams when spectating too, but that probably requires a bit more...
Ie ally team 1 vs ally team 2, not the individual players.
Should be easy as it's just plus and minus. Colors of the ally teams could be from a set order ie, red blue black white yellow green...
It'd be nice to see metal and E production for whole ally teams when spectating too, but that probably requires a bit more...
Sweet. You are, once again, a hero to the masses.trepan wrote:I've exported the team statistics information to lua. That means
that you can make up and display whatever kind of combined
parameters you want. The information is only available at the
end of the game (although I may modify it so that spectators
can view it at any time).
I added the "endgraph [0|1]" action in the commit after the one that added the
Spring.GetTeamStatsHistory() call. You'll want to use it to disabled the default
stats display UI. You can use the "quit" action to replace the default UI's Exit
button (it will quit immediately instead fo bringing up the quit menu when the
game is over).
A team's stats are available under the following conditions:
1. Game Over -- stats are accessible for all teams
2. Allied Teams -- stats can be accessed for allied teams at any time
3. Spectating -- stats are accessible for all teams, unless /specview 0 is enabled,
in which stats are only available for teams allied with the team currently being
spectated.
P.S. The "endgraph" action can be used before the game is over.
Spring.GetTeamStatsHistory() call. You'll want to use it to disabled the default
stats display UI. You can use the "quit" action to replace the default UI's Exit
button (it will quit immediately instead fo bringing up the quit menu when the
game is over).
A team's stats are available under the following conditions:
1. Game Over -- stats are accessible for all teams
2. Allied Teams -- stats can be accessed for allied teams at any time
3. Spectating -- stats are accessible for all teams, unless /specview 0 is enabled,
in which stats are only available for teams allied with the team currently being
spectated.
P.S. The "endgraph" action can be used before the game is over.
Oh ya, here's the call definition 
Spring.GetTeamStatsHistory(teamID [, startRecord [, endRecord ] ])
If startRecord and endRecord are omitted, the number of records is returned.
If only startRecord is passed, then only one record is returned.
If both startRecord and endRecord are passed, then all records between
the start and end records are returned (inclusive).
The return stats tables are as follows:

Spring.GetTeamStatsHistory(teamID [, startRecord [, endRecord ] ])
If startRecord and endRecord are omitted, the number of records is returned.
If only startRecord is passed, then only one record is returned.
If both startRecord and endRecord are passed, then all records between
the start and end records are returned (inclusive).
The return stats tables are as follows:
Code: Select all
statsRecord = {
{ frame = number frame },
{ metalUsed = number metalUsed },
{ metalProduced = number metalProduced },
{ metalExcess = number metalExcess },
{ metalReceived = number metalReceived },
{ metalSent = number metalSent },
{ energyUsed = number energyUsed },
{ energyProduced = number energyProduced },
{ energyExcess = number energyExcess },
{ energyReceived = number energyReceived },
{ energySent = number energySent },
{ damageDealt = number damageDealt },
{ damageReceived = number damageReceived },
{ unitsProduced = number unitsProduced },
{ unitsDied = number unitsDied },
{ unitsReceived = number unitsReceived },
{ unitsSent = number unitsSent },
{ unitsCaptured = number unitsCaptured },
{ unitsOutCaptured = number unitsOutCaptured },
{ unitsKilled = number unitsKilled }
}
statsTable = {
[1] = statsRecord1,
[2] = statsRecord2,
[3] = statsRecord3,
...
[N] = statsRecordN,
n = N
}
-
- Posts: 265
- Joined: 04 Sep 2005, 01:25