Economy Stats Recorder (Charts, Graphs, and CSV)

Everything about mods can be found here.

Moderator: Morax

Economy Stats Recorder (Charts, Graphs, and CSV)

Postby Duck_42 » 19 Mar 2013, 02:23

So, based on a forum post I saw on here, I decided to come up with a way to record economy statistics throughout the game and dump them to the log. Once I had it ready to go, I came out here and found this:

http://www.faforever.com/forums/viewtopic.php?f=41&t=2793


Always nice to find out you've re-invented the wheel. Still, since I've already got it done and there are still some worthwhile differences, I'm posting this anyway.

Download:
Forged Alliance Stats Chart Builder v1.1.zip
Forged Alliance Stats Chart Builder v1.1
(73.55 KiB) Downloaded 153 times



Description:
Basically, this tool allows you to record your economy data to the log file in a comma separated values list. To do this, a UI mod is used within FA. The UI mod polls the economy data (same thing you see at the top of the FA screen), once per second and stores that data. Once the game is over, the data is dumped to the game.log file. From there, it's fairly easy to extract the data into your favorite spreadsheet program. However, I've included some scripts that will automate this process and create energy and mass HTML charts.

EDIT: This tool can also be used to record another players economy stats while watching a replay. Simply switch to their view (double click on their name in the score panel) and the recorder will capture their economy data. Keep in mind though, the recorder only records the active player's data, so if you switch between players or to the observer slot in the replay, you'll end up with nonsensical results.

Instructions
See the readme.txt in the attached zip file.

Warranty:
Absolutely None. Run at your own risk. I take no responsibility for bad things that result from using this tool. ;)

Sample Charts:
screenshot.jpg
Chart
screenshot.jpg (116.79 KiB) Viewed 4808 times


Sample Charts.zip
Example Charts
(274.84 KiB) Downloaded 135 times




Known Issues:

The UI mod might not enable in the first game. I've noticed FA (at least on my PC) doesn't always load UI mods for the current session. To workaround this, enable the UI mod, exit the lobby, then start the lobby again.

The UI mod cannot catch an ALT-F4 type exit. If you terminate FA in that manner, the stats will not be saved to the log file. Instead, either wait until the sim has finished running or use the score button to exit.
Last edited by Duck_42 on 22 Mar 2013, 07:31, edited 1 time in total.
User avatar
Duck_42
Avatar-of-War
 
Posts: 237
Joined: 29 May 2012, 03:16
Has liked: 5 times
Been liked: 18 times
FAF User Name: Duck_42

Re: Economy Stats Recorder (Charts, Graphs, and CSV)

Postby Nombringer » 19 Mar 2013, 03:46

Will this record reclaim?
BC_Blackheart: i just copy his shit and do it 5% better leads to easy win usually xD

Need help? Are you a new player? Feel free to message me any time in the lobby :) Lessons may cost a portoin of your soul.... (Noms are included but not guaranteed)
Nombringer
Supreme Commander
 
Posts: 1036
Joined: 16 Nov 2012, 06:31
Has liked: 210 times
Been liked: 65 times
FAF User Name: Nombringer

Re: Economy Stats Recorder (Charts, Graphs, and CSV)

Postby Duck_42 » 19 Mar 2013, 04:37

No, but I will look into adding that. It appears the data is there, I just need to capture and build it into the reports.
User avatar
Duck_42
Avatar-of-War
 
Posts: 237
Joined: 29 May 2012, 03:16
Has liked: 5 times
Been liked: 18 times
FAF User Name: Duck_42

Re: Economy Stats Recorder (Charts, Graphs, and CSV)

Postby Duck_42 » 22 Mar 2013, 07:43

Nombringer, I've posted an update (v1.1) that records reclaim.

The two new columns (one for energy, one for mass) indicate the amount of mass or energy reclaimed during each second of the game. If you want to know the total amount reclaimed, just sum all those values.
User avatar
Duck_42
Avatar-of-War
 
Posts: 237
Joined: 29 May 2012, 03:16
Has liked: 5 times
Been liked: 18 times
FAF User Name: Duck_42

Re: Economy Stats Recorder (Charts, Graphs, and CSV)

Postby ZaphodX » 22 Mar 2013, 15:16

Would it be possible to get an in-game GUI overlay e.g. for replays?
User avatar
ZaphodX
Contributor
 
Posts: 560
Joined: 02 Jan 2013, 01:55
Location: UK, GMT+0
Has liked: 0 time
Been liked: 0 time
FAF User Name: TAG_ZaphodX

Re: Economy Stats Recorder (Charts, Graphs, and CSV)

Postby Ze_PilOt » 22 Mar 2013, 15:18

in 3622, this tool will (probably) break.
But to compensate, hotstat is included by default, as well as new shiny tools for replay view.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Economy Stats Recorder (Charts, Graphs, and CSV)

Postby ZaphodX » 22 Mar 2013, 15:21

Ze_PilOt wrote: as well as new shiny tools for replay view.

*squeals like a schoolgirl*
User avatar
ZaphodX
Contributor
 
Posts: 560
Joined: 02 Jan 2013, 01:55
Location: UK, GMT+0
Has liked: 0 time
Been liked: 0 time
FAF User Name: TAG_ZaphodX

Re: Economy Stats Recorder (Charts, Graphs, and CSV)

Postby Eukanuba » 22 Mar 2013, 16:39

Ze_PilOt wrote:in 3622, this tool will (probably) break.
But to compensate, hotstat is included by default, as well as new shiny tools for replay view.

Will standalone Hotstats need to be disabled once 3622 is released?
User avatar
Eukanuba
Priest
 
Posts: 301
Joined: 20 Apr 2012, 19:59
Location: Wales, UK
Has liked: 1 time
Been liked: 0 time
FAF User Name: Eukanuba

Re: Economy Stats Recorder (Charts, Graphs, and CSV)

Postby Ze_PilOt » 22 Mar 2013, 16:43

It should be auto-disabled.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Economy Stats Recorder (Charts, Graphs, and CSV)

Postby Duck_42 » 22 Mar 2013, 17:45

Zep, I'm using the GetEconomyTotals function to obtain the information, so hopefully it'll still work. Thanks for the heads up.
User avatar
Duck_42
Avatar-of-War
 
Posts: 237
Joined: 29 May 2012, 03:16
Has liked: 5 times
Been liked: 18 times
FAF User Name: Duck_42

Next

Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest