• 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.

TheLand

Post-Captain
43 Badges
Dec 19, 2004
4.586
619
  • Surviving Mars: First Colony Edition
  • Pillars of Eternity
  • Knights of Pen and Paper 2
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Surviving Mars
  • Age of Wonders III
  • Cities: Skylines - Parklife
  • Crusader Kings II: Way of Life
  • BATTLETECH: Flashpoint
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Victoria 3 Sign Up
  • Europa Universalis III Complete
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis IV
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Crusader Kings II
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Hearts of Iron: The Card Game
Can anyone tell me where to find the weights the AI uses for build logic? I am sure I've seen them somewhere.

I made some changes to universities which have resulted in the AI scrapping all its universities, I'm guessing because it's decided that the new costs aren't worth the benefits.
 
Do I need to go into more details, or can you figure it out from here?

Got it, thanks.

However I think that is the answer to a different question. What I'm seeing is the AI scrapping its existing universities, after I changed the balance of input labour to innovation output. Russia scraps them fastest, and other countries more slowly (but still pretty promptly).

It strikes me this probably be able to fix this by adding an ai_value to country_weekly_innovation_add in modifier_types as this looks like it tells the AI how to weight non-goods outputs when considering whether a building is actually profitable. But this does not work, even at very high values. And it's a bit suspicious there wasn't one in the first place, though there is for (e.g.) Bureaucracy.
 
Aha! Got it.

It wasn't connected to the building costs or output values at all.

But I had reduced innovation caps, which meant that all nations were close to their innovation cap.

In Defines I amended these values - all countries previously had more innovation than their Desired Threshold so the AI went "ok we're good to scrap all these universities then". With the desired threshold higher than 1, the AI is no longer doing that.

Code:
MONEY_SPENDING_INNOVATION_CRITICAL_THRESHOLD = 0.75 # If innovation production compared to cap is worse than this, AI considers it very important to improve
MONEY_SPENDING_INNOVATION_DESIRED_THRESHOLD = 1.5 # If innovation production compared to cap is worse than this, AI considers it important to improve