Stellaris - AI does not respect energy budget

  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning

slv

Captain
16 Badges
Nov 21, 2014
315
43
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Stellaris
  • Europa Universalis IV: Rights of Man
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Synthetic Dawn
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Stellaris: Federations
  • Crusader Kings II
Description
AI does not respect energy budget

Game Version
2.6.*

What version do you use?

Steam

What expansions do you have installed?

Do you have mods enabled?
No

Please explain your issue is in as much detail as possible.
There exists a new undocumented "feature" which causes problems in the lategame AI development.

In 2.5.* AI was building buildings trying to stay below energy upkeep specified in /common/ai_budget/00_energy_budget.txt. Which means that it was possible specify your energy upkeep to be a 0.8 fraction in peacetime and 1.2 in wartime causing AI to smartly stockpile energy during peace and then spend it during wars (fleet outside of starbase has higher upkeep).

In 2.6.* there is a hardcap, AI will never let it energy upkeep be above its energy income. This may sound great if you don't think about it too much, but it means that in the lategame any AI, modded or not will eventually have all their planets empty from buildings and will not build new buildings because they have energy upkeep.

In 2.5 it was possible to make energy_upkeep_budget be higher than 1.0 allowing to circumvent the issue, but it's no longer possible.

Another problem with this hardcap is AI being stuck because of exceeding their navalcap. You see, anchorages, strongholds and starbases all have energy upkeep, so if an AI is exceeding their navalcap (as both the human players and the AI frequently do in the lategame) and hitting the cap they will not try to increase their navalcap. So even though a fortress/anchorage or a starbase will eventually decrease the spending due to decreasing ship upkeep it will not get built because the building itself has an upkeep.

It would be really great to have AI respect the budget again instead of having uncircumventable hidden block at 0 energy upkeep.

Steps to reproduce the issue.


Upload Attachment
 
Last edited:
  • 2
Reactions:
Upvote 0

YokoZar

Sergeant
36 Badges
Sep 25, 2018
51
82
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cossacks
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Common Sense
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Pillars of Eternity
  • The Showdown Effect
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Stellaris - Path to Destruction bundle
  • Magicka 2
  • Stellaris: Synthetic Dawn
  • Sword of the Stars
  • Europa Universalis IV: Res Publica
  • Magicka
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Arsenal of Democracy
I think this is potentially the root of a lot of issues (starbases in particular)
 

YokoZar

Sergeant
36 Badges
Sep 25, 2018
51
82
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cossacks
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Common Sense
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Pillars of Eternity
  • The Showdown Effect
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Stellaris - Path to Destruction bundle
  • Magicka 2
  • Stellaris: Synthetic Dawn
  • Sword of the Stars
  • Europa Universalis IV: Res Publica
  • Magicka
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Arsenal of Democracy
Another strong possibility here is that the AI just isn't valuing energy income that highly. If you take a midgame save and look at all the empires very few of them seem to have a significant energy stockpile or positive balance. Once their stockpile is low and their balance is near 0, they aren't going to do much.

Looking at the economic plans, most of them have the AI focus 10 times the alloy surplus as energy surplus - eg, early game when they are at +6 energy and +25 alloys, they'll focus alloys more than energy (where their focus is +10 / +50)

I wonder what happens if we just tweak those numbers up a bit and have the AI plan on a bit more energy.
 
  • 2
Reactions:

hart30

Lt. General
14 Badges
May 13, 2017
1.637
200
  • Warlock 2: The Exiled
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall - Revelations
  • Stellaris: Federations
So thats what the empty Building Slots / especially if a planet switched ownership from gestalt to Default empire or from Default to gestalt in lategame mean. For contingency reconquests its the same. The AI started to refuse building their own Buildings there, sometimes even stopped colonizing. Until 2500 the AI was getting stronger and stronger, but from there their Overall fleet power and science didnt increase anymore so i could surpass them easily and i started to wonder why.