• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

butts

Sergeant
63 Badges
Sep 6, 2018
50
63
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Stellaris: Megacorp
  • Europa Universalis IV: Golden Century
  • Stellaris: Nemesis
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Magicka
  • Europa Universalis IV: Res Publica
  • Cities: Skylines
  • Crusader Kings II
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
Apologies if this is a dumb question, but I can't find anything on the wiki and I haven't been able to locate anything in the files.

I saw a suggestion to add a GDP growth rate chart (essentially the derivative of GDP chart) and I want to mod it in as it would be a really nice piece of information to have. However, I can't figure out where I would do that, or if it's even possible.

If anyone has an example or can point me in the right direction I would appreciate it!!
 
I haven't done much GUI modding in Vic3, but I'm guessing this wouldn't be easy. I think you might be able to do it with a scripted gui somehow, and you might be able to get the data you need, but you might also need to use variables and scripted effects to get the right values for those variables.

Your best bet to start is to find a mod with a scripted gui and see how that's done, then you can start modeling what you want from that.
 
What you said gave me an idea on what to look for, and now I know I have to add something like `type v3_plotline_gdp` in the files. It seems though, to do the math for calculating the derivative I believe I would need to actually edit the core game files to add something analogous to `Country.GetGDPTrend`. I'll see if anyone has done anything like that. I'm not sure it's even possible to mod the core C++ files.
 
It is not possible to mod the executable/core functions (at least not in any PDX approved way), unlike say City Skylines or some other games.

That's why I suggested something with variables to get the values you want for the graph.
 
Oh I see, I can set a variable on every week trigger that is the calculation, and then retrieve it. I'll start by trying to just a weekly number visible, then see if I can extend that into a graph. Thank you!!
 
  • 1Like
Reactions:
So, I couldn't really figure out graphing, as it would require somehow saving a huge amount of data and I didn't want to deal with it.

I did however, make a mod that shows monthly GDP difference and Credit Limit difference!! I'll post it here once it passes steam inspection.

I could only get monthly to work, there doesn't appear to be a weekly pulse that isn't tied to journal entries, and I could not figure out hidden journal entries. If anyone can help me with that, shoot me a message.
thumbnail.png
 
  • 1Like
Reactions: