Graphs/Charts to track data points?

Have a feature request for SRU? Post here.

Moderators: Legend, Balthagor, Moderators

Post Reply
Message
Author
ski
Corporal
Posts: 4
Joined: Sep 04 2018
Human: Yes

Graphs/Charts to track data points?

#1 Post by ski » Nov 29 2019

First off, love the game. I have nearly 1700hrs of gameplay. Over that time I've generated spreadsheets to track the major data points (Population,Imm/Emm,Birth,Death,Income,Expenses,Unemp,etc.) to see what affect my tinkering with Taxes/Social settings has on those data points. I usually play Sandbox and take total control over the country locking out all ministers. Thus monitoring the flow of these data points is extremely helpful to me, but copying data to the spreadsheets is so tedious.

The Graph/Chart types I'm wondering about are the ones you see in games like SimCity or the newer Cities: Skylines. The kind of Graph/Chart where you can set the range of the data you are looking at, like 1yr, 5yrs, 10yrs, 25yrs, and so on. I haven't tried my hand at modding yet which leads to my main question. Is it possible to create a mod that can generate a pop-up window(like the Diplomatic pop-up window) that has a graph or chart with the type of data point(s) you want to track? Or can the Charts/Graphs maybe included under the Regional Atlas button with the Domestic, Military, Relations, Elections, and Score tabs?

I've attached a sample of my spreadsheet. In this example I copy the Population, Emm, Imm, Birth, and Death every Nov1, then the calculations I added let me see how those data points are progressing.
It would be wonderful and game changing to have an automated visual representation of this data in-game.

SRU Data Point Example.png

Thanks for the great support of this game.
Ski

arakan94
Warrant Officer
Posts: 46
Joined: Oct 10 2018
Human: Yes

Re: Graphs/Charts to track data points?

#2 Post by arakan94 » Nov 29 2019

That sounds like complex task.. But adding option to dump these stats into .csv file wouldn't be that difficult IMO so perhaps they could do that and you'd only have to add the graphs, which can be automated using Macro given that the format would be constant.

evildari
Colonel
Posts: 376
Joined: Aug 10 2017
Human: Yes

Re: Graphs/Charts to track data points?

#3 Post by evildari » Nov 29 2019

the game (at least some older version) can already write a big log with lots of game data per day.
you may use the -logon parameter.
then after playing some days , go to your save game folder and you will find LOG*.log files
looks like this to get the idea: (make sure you have some space left on your drive)

Code: Select all

SRLOG: Player 247 (US Canal Zone  ): GDP/c Initial Value    440.11;  GDP/c Base (no constr)   1871.63  (425.3 %)
SRLOG:    Base Build Points:  Ground 0,  Air 0,  Naval 0.  Research 1
SRLOG:    Military Salaries          222.71  (11.9 %)
SRLOG:    Military Operations        633.01  (33.8 %)
SRLOG:    Military Intelligence        0.00  ( 0.0 %)
SRLOG:    Military Preparedness        0.00  ( 0.0 %)
SRLOG:    Research                   110.29  ( 5.9 %)
SRLOG:    Mil Facil Maintenance      638.10  (34.1 %)
SRLOG:    Ind Facil Maintenance        0.00  ( 0.0 %)
SRLOG:    Social Spending             98.10  ( 5.2 %)
SRLOG:    General Services             0.00  ( 0.0 %)
SRLOG:     Prod AGRICULTURE           57.69  ( 3.1 %)   Total Production        3662  Demand        1294
SRLOG:     Prod RUBBER                 0.00  ( 0.0 %)   Total Production           0  Demand           0
SRLOG:     Prod TIMBER                 0.00  ( 0.0 %)   Total Production           0  Demand        2030
SRLOG:     Prod PETROLEUM              0.00  ( 0.0 %)   Total Production           0  Demand       14739
SRLOG:     Prod COAL                   0.00  ( 0.0 %)   Total Production           0  Demand           0
SRLOG:     Prod METAL ORE              0.00  ( 0.0 %)   Total Production           0  Demand           0
SRLOG:     Prod URANIUM                0.00  ( 0.0 %)   Total Production           0  Demand           0
SRLOG:     Prod ELECTRIC POWER         1.43  ( 0.1 %)   Total Production         330  Demand        2561
SRLOG:     Prod CONSUMER GOODS         0.00  ( 0.0 %)   Total Production           0  Demand         132
SRLOG:     Prod INDUSTRY GOODS         0.00  ( 0.0 %)   Total Production           0  Demand           0
SRLOG:     Prod MILITARY GOODS         0.00  ( 0.0 %)   Total Production           0  Demand           0
SRLOG: Player 248 (Cuba           ): GDP/c Initial Value    409.33;  GDP/c Base (no constr)    213.45  ( 52.1 %)
SRLOG:    Base Build Points:  Ground 1,  Air 0,  Naval 0.  Research 1
SRLOG:    Military Salaries            1.62  ( 0.8 %)
SRLOG:    Military Operations         23.22  (10.9 %)
SRLOG:    Military Intelligence       12.70  ( 6.0 %)
SRLOG:    Military Preparedness        0.00  ( 0.0 %)
SRLOG:    Research                     6.40  ( 3.0 %)
SRLOG:    Mil Facil Maintenance        7.75  ( 3.6 %)
SRLOG:    Ind Facil Maintenance        1.53  ( 0.7 %)
SRLOG:    Social Spending            100.51  (47.1 %)
SRLOG:    General Services             0.00  ( 0.0 %)
SRLOG:     Prod AGRICULTURE           21.09  ( 9.9 %)   Total Production     2731318  Demand     2643824
SRLOG:     Prod RUBBER                 0.00  ( 0.0 %)   Total Production           0  Demand       20398
SRLOG:     Prod TIMBER                 0.69  ( 0.3 %)   Total Production     1317718  Demand     3915525
SRLOG:     Prod PETROLEUM              0.00  ( 0.0 %)   Total Production           0  Demand    35457156
SRLOG:     Prod COAL                   0.00  ( 0.0 %)   Total Production           0  Demand       39422
SRLOG:     Prod METAL ORE              4.04  ( 1.9 %)   Total Production      812128  Demand      141412
SRLOG:     Prod URANIUM                0.00  ( 0.0 %)   Total Production           0  Demand           0
SRLOG:     Prod ELECTRIC POWER         2.57  ( 1.2 %)   Total Production     1661669  Demand     8331514
SRLOG:     Prod CONSUMER GOODS        15.99  ( 7.5 %)   Total Production      127864  Demand      305769
SRLOG:     Prod INDUSTRY GOODS         1.32  ( 0.6 %)   Total Production       31486  Demand       51769
SRLOG:     Prod MILITARY GOODS         0.64  ( 0.3 %)   Total Production        2474  Demand        8942
SRLOG: -----------------------------------
SRLOG: Entire Map:
SRLOG:    Population :   2,558,454,000
SRLOG:    Treasury : $ 34,963,104,00
SRLOG:    Debt     :             $ 0
SRLOG:    GDP/c      :    $ 412.65
SRLOG:    Base Build Points:  Ground 275,  Air 182,  Naval 181.  Research 249
SRLOG:     Prod AGRICULTURE        Map Production   2,421,234,000  Map Demand   1,206,783,000  =   1,214,451,000
SRLOG:     Prod RUBBER             Map Production      10,698,093  Map Demand      14,365,435  =      -3,667,342
SRLOG:     Prod TIMBER             Map Production   1,073,329,000  Map Demand   1,655,614,000  =    -582,284,352
SRLOG:     Prod PETROLEUM          Map Production  14,253,017,000  Map Demand  16,412,067,000  =  -2,159,050,000
SRLOG:     Prod COAL               Map Production   1,667,232,000  Map Demand     385,717,216  =   1,281,514,000
SRLOG:     Prod METAL ORE          Map Production     166,820,784  Map Demand     121,978,960  =      44,841,824
SRLOG:     Prod URANIUM            Map Production         137,721  Map Demand       1,042,858  =        -905,136
SRLOG:     Prod ELECTRIC POWER     Map Production   4,009,478,000  Map Demand   4,540,135,000  =    -530,656,768
SRLOG:     Prod CONSUMER GOODS     Map Production     111,814,976  Map Demand     135,196,992  =     -23,382,016
SRLOG:     Prod INDUSTRY GOODS     Map Production      43,119,824  Map Demand      36,674,548  =       6,445,276
SRLOG:     Prod MILITARY GOODS     Map Production       2,438,894  Map Demand       1,243,225  =       1,195,669
SRLOG: -----------------------------------
SRLOG: End of Turn 1
my mods
http://www.bgforums.com/forums/viewtopi ... 79&t=25932 (even techs and units for everyone - AI will own you too)
http://www.bgforums.com/forums/viewtopi ... 79&t=29326 (MARSX2)

arakan94
Warrant Officer
Posts: 46
Joined: Oct 10 2018
Human: Yes

Re: Graphs/Charts to track data points?

#4 Post by arakan94 » Nov 29 2019

That's cool! Does it slow down the game much?'

OP should be able to parse the data using some script and then make the charts out of it..

ski: if you make such tool, be sure to post it here and into the mods - I'd be happy to use it for some experimentation as well :)

ski
Corporal
Posts: 4
Joined: Sep 04 2018
Human: Yes

Re: Graphs/Charts to track data points?

#5 Post by ski » Dec 05 2019

evildari: thx for your help. much appreciated.

arakan94: will definitely let you know how it goes.

Post Reply

Return to “Suggestions - SRU”