A std data format from demo to generate stats/ranking
Posted: 06 Dec 2012, 22:42
Hi all,
I am working on a prgm to read data extracted from replay and to use it in order to make stats and other stuffs (cf. end)
For that I need to read the data from replays. The question I am asking right now is:
Q1: what the best way to recover this data:
I know there are some widget idea sfrom jool and knorke but I would like to know if there is somehting better or already available. I also know Dansan might work on that but that is far away i guess
The plan is to get all the stats that are usually available at the end the game plus some more:
- damage death [Array]
- damage received [Array]
- metal used
- metal produced
- metal excess
- metal send [Array]
- metal given [Array]
- energy used
- energy produced
- energy excess
- energy send [Array]
- energy given [Array]
- unit active
- unit produced
- unit killed [Array]
- unit recieved [Array]
- unit send [Array]
- unit captured : I dont plan to use this one (
- unit stolen : I dont plan to use this one
- buildpower (jools did it)
- firepower (jools did it)
with a time sample: less than 10 sec
For the values noted as [Array] I would like to get these data as an array (dim2 matrix) between players:
Q2: for which one is it possible (and easy to implement) ?
I also need for each game some additional data, it is great if that is already in the data file, otherwise I will just get it from the replay:
- name of the map
- name of the host (if possible
- team and number of players
- player info
....
I started to create a template file with the data I need: http://pastebin.com/NuMhc4sp
I would like to get some input on:
- the data format used for this file in case you find something supid ....
- do you think I forget anything relevant I might need later
Of course I have not provided anything yet blablabla.... People will judge only when something will be done whatever..
Just so you know, my idea consist, but are not limited to:
- smurf detection based on least square dmg curve (but not limited to) regression over maps.
- finding player of similar type using the same idea of least square dmg (but not limited to) curve regression over maps.
- map DB statistic in order to compare playing style of new player (or unknown smurf)
- ranking based on all these parameters: I am not going to tell more now but it wont be based on dmg only and will involved winning a game as one input
- automation of account merging using CPU/flag/IP and the method explain above.
Q3: I have not see the ip in the replay file, is it possible to recover it ?
Also, if other person are planning to do a similar job, that would be just great we all agree on a similar file format. What do you think ?
I am working on a prgm to read data extracted from replay and to use it in order to make stats and other stuffs (cf. end)
For that I need to read the data from replays. The question I am asking right now is:
Q1: what the best way to recover this data:
I know there are some widget idea sfrom jool and knorke but I would like to know if there is somehting better or already available. I also know Dansan might work on that but that is far away i guess
The plan is to get all the stats that are usually available at the end the game plus some more:
- damage death [Array]
- damage received [Array]
- metal used
- metal produced
- metal excess
- metal send [Array]
- metal given [Array]
- energy used
- energy produced
- energy excess
- energy send [Array]
- energy given [Array]
- unit active
- unit produced
- unit killed [Array]
- unit recieved [Array]
- unit send [Array]
- unit captured : I dont plan to use this one (
- unit stolen : I dont plan to use this one
- buildpower (jools did it)
- firepower (jools did it)
with a time sample: less than 10 sec
For the values noted as [Array] I would like to get these data as an array (dim2 matrix) between players:
Q2: for which one is it possible (and easy to implement) ?
I also need for each game some additional data, it is great if that is already in the data file, otherwise I will just get it from the replay:
- name of the map
- name of the host (if possible
- team and number of players
- player info
....
I started to create a template file with the data I need: http://pastebin.com/NuMhc4sp
I would like to get some input on:
- the data format used for this file in case you find something supid ....
- do you think I forget anything relevant I might need later
Of course I have not provided anything yet blablabla.... People will judge only when something will be done whatever..
Just so you know, my idea consist, but are not limited to:
- smurf detection based on least square dmg curve (but not limited to) regression over maps.
- finding player of similar type using the same idea of least square dmg (but not limited to) curve regression over maps.
- map DB statistic in order to compare playing style of new player (or unknown smurf)
- ranking based on all these parameters: I am not going to tell more now but it wont be based on dmg only and will involved winning a game as one input
- automation of account merging using CPU/flag/IP and the method explain above.
Q3: I have not see the ip in the replay file, is it possible to recover it ?
Also, if other person are planning to do a similar job, that would be just great we all agree on a similar file format. What do you think ?