extrating statistique from demo file

extrating statistique from demo file

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
mmaura66
Posts: 23
Joined: 26 Dec 2008, 18:06

extrating statistique from demo file

Post by mmaura66 »

hi,

i want to make a online demo file parser, to save into a siteweb the party, make players classement, statistiques of party, graph like the end of the game ...

i have looked to source code, i have see DemoFileHeader structure, but its just header. I want to extract event from demo file, like :

player 1 make unitid
player 2 kill unitid of player 3 ...

i have no idea how to process and how to look to understand data after the DemoFileHeader structure.

----------------------------------------------------------

before making choise of demo file, i have think to make an lua who write data on local computer, awstat under WOWarcraft, but data is always on the demo file, and this lua lags the system.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: extrating statistique from demo file

Post by Auswaschbar »

Such stuff isn't stored in the demo.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: extrating statistique from demo file

Post by CarRepairer »

mmaura66 wrote:before making choise of demo file, i have think to make an lua who write data on local computer, awstat under WOWarcraft, but data is always on the demo file, and this lua lags the system.
Already done. This gadget gathers stats and messages them to Springie autohost bots: http://trac.caspring.org/browser/trunk/ ... _stats.lua

Stats were displayed in this page: http://planet-wars.eu/ModStats/

However it's currently broken so the page is removed. It's been down for a few months.

Here's the forum post: http://springrts.com/phpbb/viewtopic.ph ... 20#p342620

Example screenshot from when it was up: http://img695.imageshack.us/img695/8418 ... 132425.png

Feel free to join the project and see if you can help. Contact Licho or det.
Last edited by CarRepairer on 27 Feb 2010, 22:41, edited 1 time in total.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: extrating statistique from demo file

Post by very_bad_soldier »

CarRepairer wrote: Already done.
Wow. Quite awesome possibilities.
mmaura66
Posts: 23
Joined: 26 Dec 2008, 18:06

Re: extrating statistique from demo file

Post by mmaura66 »

thank you CarRepairer.

i think i will take contact to help on php side if possible.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: extrating statistique from demo file

Post by CarRepairer »

mmaura66 wrote:thank you CarRepairer.

i think i will take contact to help on php side if possible.
I wish it was in php, Licho made it using aspx.
mmaura66
Posts: 23
Joined: 26 Dec 2008, 18:06

Re: extrating statistique from demo file

Post by mmaura66 »

yes but the goal was not the same, Licho make cost metal stats, i want to make player classement.

My acualy pb its i can t play CA (there are not lot of party, and i m not At ease with the energy/metal system) and if i put the gadget into BA i was unsync, i must found a way to use gadget without be unsync
Post Reply

Return to “Engine”