How to modify the behavior of AI switching faction after capitulation?

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

ecpgieicg

First Lieutenant
27 Badges
Oct 27, 2012
263
113
  • Cities in Motion
  • Magicka
  • Leviathan: Warships
  • Cities in Motion 2
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
I am not sure if this is a vanilla behavior or due to the mod I am using. But it is one of the things that diminishes the HOI4 game experience for me.

Currently, in my Japan playthrough, Norway first joined Chinese United Front and after capitulation switches to Allies. The switch is instantaneous without the intermediate stage of being factionless (and thus triggering peace conference on day end).

Is there a way to modify this behavior?
 

FindFloppies

Some Assembly Required
88 Badges
Jul 8, 2015
852
1.468
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Cossacks
  • Stellaris
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Dharma
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • 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
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings III
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Federations
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Stellaris: Nemesis
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sunset Invasion
  • Stellaris: Distant Stars
  • Victoria 3 Sign Up
  • Europa Universalis IV
  • Cities: Skylines - Parklife Pre-Order
  • Stellaris: Lithoids
  • Cities: Skylines - Campus
  • Stellaris: Apocalypse
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Way of Life
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Victoria 2
  • Cities: Skylines - Parklife
  • Stellaris: Necroids
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Hearts of Iron IV: By Blood Alone
  • Europa Universalis IV: Golden Century
Usually that's caused by a focus firing and changing something at a very bad time. It's annoying, I understand, but it's not something that happens often.

I had a time where I had just started invading Greece as Italy, and armies had started to move, and suddenly, they stop, the war stops, and Germany's focus puppets Greece right out from under me.

Still annoying, but it's very rare, and does happen.
 

ecpgieicg

First Lieutenant
27 Badges
Oct 27, 2012
263
113
  • Cities in Motion
  • Magicka
  • Leviathan: Warships
  • Cities in Motion 2
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
Usually that's caused by a focus firing and changing something at a very bad time. It's annoying, I understand, but it's not something that happens often.

I had a time where I had just started invading Greece as Italy, and armies had started to move, and suddenly, they stop, the war stops, and Germany's focus puppets Greece right out from under me.

Still annoying, but it's very rare, and does happen.

Good point but in the mod I play, Norway does not have any National Focus that can allow it to join Allies.

Are you sure the rarity is not due to the majority of countries not having the matching underlying politics to a different faction?
 

FindFloppies

Some Assembly Required
88 Badges
Jul 8, 2015
852
1.468
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Cossacks
  • Stellaris
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Dharma
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • 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
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings III
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Federations
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Stellaris: Nemesis
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sunset Invasion
  • Stellaris: Distant Stars
  • Victoria 3 Sign Up
  • Europa Universalis IV
  • Cities: Skylines - Parklife Pre-Order
  • Stellaris: Lithoids
  • Cities: Skylines - Campus
  • Stellaris: Apocalypse
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Way of Life
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Victoria 2
  • Cities: Skylines - Parklife
  • Stellaris: Necroids
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Hearts of Iron IV: By Blood Alone
  • Europa Universalis IV: Golden Century
Good point but in the mod I play, Norway does not have any National Focus that can allow it to join Allies.

Are you sure the rarity is not due to the majority of countries not having the matching underlying politics to a different faction?
The one that happened to me, wasn't Greece's focus, or Italy's focus. It was Germany's focus that stole Greece from me. Probably wasn't Norway's that did it.
 

FindFloppies

Some Assembly Required
88 Badges
Jul 8, 2015
852
1.468
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Cossacks
  • Stellaris
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Dharma
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • 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
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings III
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Federations
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Stellaris: Nemesis
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sunset Invasion
  • Stellaris: Distant Stars
  • Victoria 3 Sign Up
  • Europa Universalis IV
  • Cities: Skylines - Parklife Pre-Order
  • Stellaris: Lithoids
  • Cities: Skylines - Campus
  • Stellaris: Apocalypse
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Way of Life
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Victoria 2
  • Cities: Skylines - Parklife
  • Stellaris: Necroids
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Hearts of Iron IV: By Blood Alone
  • Europa Universalis IV: Golden Century
Ah.

But no countries have National Focus that can change faction of other countries.
So, maybe it wasn't that. It might have been a bug. Regardless, it's a rare event.

My advice is to start a new game, or if you weren't in ironman, get toolpack, and you can fix the obvious bug/error/other focus, and continue on.

Good luck.
 

ecpgieicg

First Lieutenant
27 Badges
Oct 27, 2012
263
113
  • Cities in Motion
  • Magicka
  • Leviathan: Warships
  • Cities in Motion 2
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
Norway is democratic so has a better place in the Allies.

Being in the CUF is rather the oddity.

Yes, I'd rather Norway joined Allies right away. Not 3 months of gameplay later. That way, I just wouldn't attempt a war on Norway unless I feel like a war against the Allies.

Capitulated country switching faction without intermediate stage is just bad design.
 

ecpgieicg

First Lieutenant
27 Badges
Oct 27, 2012
263
113
  • Cities in Motion
  • Magicka
  • Leviathan: Warships
  • Cities in Motion 2
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
So, maybe it wasn't that. It might have been a bug. Regardless, it's a rare event.

My advice is to start a new game, or if you weren't in ironman, get toolpack, and you can fix the obvious bug/error/other focus, and continue on.

Good luck.

Thanks for the wishes.

But I don't think it's a "rare" event. It -- capitulated AI countries switching faction and doing so without in-game time delay -- seems instead a design flaw that will happen consistently.

It won't be a solution to restart the game though. I am not giving up dozens of hours for this stupid reason. I am instead rolling back a few months to before war with Norway, add behavior for Norway to quit faction on capitulation and continue the original course of invading it. I keep a string of saves just in case. The game has way too many bugs that can derail a game at any time -- if you do anything beyond regular. Apparently invading Europe in 1938 as Japan is already too irregular.
 

ecpgieicg

First Lieutenant
27 Badges
Oct 27, 2012
263
113
  • Cities in Motion
  • Magicka
  • Leviathan: Warships
  • Cities in Motion 2
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
They switch after the war they participated in has ended, right?
No. They switch before the war ends. After the war ends, they probably won't exist.

To put it in context, I am currently playing Japan. I have been at war with ROC, which prompted all Chinese minors to join Chinese United Front due to the mod I play. I invaded Denmark. It joined CUF upon war declaration and joined the bigger Sino-Japanese war. DEN capitulated and quit CUF, causing peace conference to trigger on day end. So I annexed DEN. I then declared on NOR. NOR capitulated and switched to become in Allies instantly on a random day on day start (and called UK to war on start as well).

Have you encountered anything like that?
 
  • 1
Reactions:

SophieX

Major
May 9, 2014
558
505
Is there a way to modify this behavior?

In the defines you will find this:

DIPLOMACY_FACTION_WAR_RELUCTANCE = -50, -- Penalty to desire to enter a faction with a country that we are not fighting wars together with.

If you increase the value lets say to - 5000 ( or even 500000 ) the "future Faction leader " will more likely refuse this nation to become member.
 
  • 2
Reactions:

ecpgieicg

First Lieutenant
27 Badges
Oct 27, 2012
263
113
  • Cities in Motion
  • Magicka
  • Leviathan: Warships
  • Cities in Motion 2
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
In the defines you will find this:

DIPLOMACY_FACTION_WAR_RELUCTANCE = -50, -- Penalty to desire to enter a faction with a country that we are not fighting wars together with.

If you increase the value lets say to - 5000 ( or even 500000 ) the "future Faction leader " will more likely refuse this nation to become member.

Sounds good. Thanks a lot!