not a bug, but a suggestion for a new endgame graph

not a bug, but a suggestion for a new endgame graph

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

not a bug, but a suggestion for a new endgame graph

Post by hunterw »

i think this graph would be very interesting:

damage dealt divided by metal spent
Last edited by hunterw on 28 Apr 2007, 07:01, edited 1 time in total.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

The player with the most metal produced (without tonnes of excess of course) and the most commands per minute probably played the best overall game. That doesn't mean that another player might have turned the game on a single strategic or tactical move, however.
Iklash222
Posts: 36
Joined: 01 Mar 2005, 14:35

Post by Iklash222 »

Click to enhance one selected player would be nice, some colors just blurs together (or so similar it makes it hard to tell them apart from each other)
User avatar
mehere101
Posts: 293
Joined: 15 Mar 2006, 02:38

Post by mehere101 »

Mine just flicker... Actually, this happens with quite a few lines that spring draw ... To the bug machine!
bamb
Posts: 350
Joined: 04 Apr 2006, 14:20

Post by bamb »

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...
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

Moved to feature requests. I must not have been paying attention the first time I read this.
RaiFox
Posts: 40
Joined: 06 Oct 2006, 16:12

Post by RaiFox »

I'd like for a feature to export endgame data so I can view it while looking for/readying for another game.
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Post by hunterw »

bamb wrote: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...
omg this too pls
User avatar
Ishach
Posts: 1670
Joined: 02 May 2006, 06:44

Post by Ishach »

8)
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

RaiFox wrote:I'd like for a feature to export endgame data so I can view it while looking for/readying for another game.
+1


also i would like a endgame table like OTA had

And we need somekind of points system just for the fun of it.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

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).
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

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).
Sweet. You are, once again, a hero to the masses.
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Post by hunterw »

sweeeeeeeeeeeeeeeeeeeeeeeeeeet

ok so lua time 8)
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

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.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

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:

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            
}
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

I did bring it up before...
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Post by CaptainMaim »

Can you also make the LUA so that it'll allow you to select a player and follow his graph with a numeric X Y (Time, Unit Value) output?
Post Reply

Return to “Feature Requests”