Prediction of winning a war by AI

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

Dustman

General
38 Badges
Apr 20, 2001
1.856
491
Visit site
  • Stellaris: Distant Stars
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Tyranny - Bastards Wound
  • Age of Wonders
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Pillars of Eternity
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
How does AI calculate its chances?

Just been DoWed by a neighbor while playing IP with Defensive Wars Only. My huge navy of 9 ships quadrupled in less than an year, leaving AI inferior in fleet power. As a nice finisher, we got only one entry point and its blocked by my starhold with 3.2k power, bigger than power of my all whopping 40 corvettes combined.

Can't really see how AI planned on conducting attack even it was just a starport bastion. Not like I complain about possibility to claim something and get some slaves, but designer's logic on when to declare doesn't hit me.
 

beckermt

Field Marshal
56 Badges
Mar 28, 2012
2.555
1.383
  • Crusader Kings II: Charlemagne
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Heir to the Throne
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Megacorp
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Stellaris - Path to Destruction bundle
  • Shadowrun: Dragonfall
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Stellaris Sign-up
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Federations
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Victoria 2
Largely just a direct comparison of fleet power, economic power, etc. The AI doesn't know how much of what you're stockpiling and doesn't assess specific systems. In addition, I don't believe static defenses are accounted for at all. The baseline assumption being that said defenses are speed bumps, but not unassailable.
 

Kami-sama

Captain
2 Badges
Sep 22, 2017
467
745
  • Major Wiki Contributor
Here are the mechanics behind declaring war:

First, the AI will decide if it can declare war on someone. The requirements are to use 50% of their Naval Capacity and have at least 6 attack armies.

Second, the AI will decide if it wants to declare war on someone. That is determined by their AI personality, the AI Aggressiveness setting you picked at game creation and whether they can expand or not. They're twice more likely to want war if they can't expand into systems with habitable planets and 4 times more likely to want war if they can't expand at all. Hive Minds and Driven Assimilators are 10 times more likely to want war when they can't expand.

Finally, the AI will decide if the war is worth it. For this they compare the Relative Power of both empires and then decide whether to declare war or not based on their Bravery, which is determined by their AI personality. I wrote the bravery modifier of every AI personality here: https://stellaris.paradoxwikis.com/AI_personalities. For example the Honorbound Warriors are willing to declare war on an empire stronger than theirs while the Slaving Despots will only declare wars on empires with twice less Relative Power than them.
 

beckermt

Field Marshal
56 Badges
Mar 28, 2012
2.555
1.383
  • Crusader Kings II: Charlemagne
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Heir to the Throne
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Megacorp
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Stellaris - Path to Destruction bundle
  • Shadowrun: Dragonfall
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Stellaris Sign-up
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Federations
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Victoria 2
Here are the mechanics behind declaring war:

First, the AI will decide if it can declare war on someone. The requirements are to use 50% of their Naval Capacity and have at least 6 attack armies.

Second, the AI will decide if it wants to declare war on someone. That is determined by their AI personality, the AI Aggressiveness setting you picked at game creation and whether they can expand or not. They're twice more likely to want war if they can't expand into systems with habitable planets and 4 times more likely to want war if they can't expand at all. Hive Minds and Driven Assimilators are 10 times more likely to want war when they can't expand.

Finally, the AI will decide if the war is worth it. For this they compare the Relative Power of both empires and then decide whether to declare war or not based on their Bravery, which is determined by their AI personality. I wrote the bravery modifier of every AI personality here: https://stellaris.paradoxwikis.com/AI_personalities. For example the Honorbound Warriors are willing to declare war on an empire stronger than theirs while the Slaving Despots will only declare wars on empires with twice less Relative Power than them.

How does diplomatic relation/opinion play into the decision?
 

Dustman

General
38 Badges
Apr 20, 2001
1.856
491
Visit site
  • Stellaris: Distant Stars
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Tyranny - Bastards Wound
  • Age of Wonders
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Pillars of Eternity
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
Static defenses early game are not just speed bumps. They more or less turn into ones later on, especially with jump drives, but in first 40 years or so can be crucial. Not like unassailable for a determined attacker, but a place where losses are anticipated. Quite bad AI can't take it into account when calculating probably invasion routes.

Anyway, the war I mentioned went very uneventful for first few year, not even a single fleet showing close to my borders. Later I simply claimed and grabbed their homeworld but original idea of war declaration was rather stupid.
 

beckermt

Field Marshal
56 Badges
Mar 28, 2012
2.555
1.383
  • Crusader Kings II: Charlemagne
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Heir to the Throne
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Megacorp
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Stellaris - Path to Destruction bundle
  • Shadowrun: Dragonfall
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Stellaris Sign-up
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Federations
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Victoria 2
Static defenses early game are not just speed bumps. They more or less turn into ones later on, especially with jump drives, but in first 40 years or so can be crucial. Not like unassailable for a determined attacker, but a place where losses are anticipated. Quite bad AI can't take it into account when calculating probably invasion routes.

Note that that was simply an assertion on my part. It's possible that the AI takes static defenses into account.
 

Foefaller

General
71 Badges
Apr 22, 2016
1.953
499
  • Tyranny - Tales from the Tiers
  • Stellaris: Synthetic Dawn
  • Sword of the Stars
  • Crusader Kings II: Reapers Due
  • Majesty 2
  • Magicka
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Conclave
  • Crusader Kings III
  • Stellaris: Galaxy Edition
  • Stellaris: Apocalypse
  • Europa Universalis IV: Common Sense
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Lithoids
  • BATTLETECH
  • Surviving Mars
  • BATTLETECH: Heavy Metal
  • Stellaris: Humanoids Species Pack
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Ancient Relics
  • Cities: Skylines - Green Cities
  • Prison Architect
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Horse Lords
  • BATTLETECH: Season pass
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Tyranny - Bastards Wound
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
Note that that was simply an assertion on my part. It's possible that the AI takes static defenses into account.

They take it account in that they will try to avoid them for soft targets if they can, but as far as whether to declare war to start with AFAIK they don't, since it is not considered for your relative military power.