HoI 4 - [v1.12.2.9ebb][e45c] Scripted peace deal for the Anglo-Soviet invasion of Iran ends entire WW2 instead of just peacing out Iran

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

noctefleur

Recruit
1 Badges
Nov 16, 2018
9
0
  • Crusader Kings III
Description of issue
[v1.12.2.9ebb][e45c] Scripted peace deal for the Anglo-Soviet invasion of Iran ends entire WW2 instead of just peacing out Iran

What platform do you play on?
Steam

Game Version
1.12.2 Avalanche

Enabled DLC
Together for Victory, Death or Dishonor, Waking the Tiger, Man The Guns, La Resistance, Battle for the Bosporus

Do you have mods enabled?
No

Description
If the Anglo-Soviet invasion of Iran occurs (i.e. SOV invades PER via their "Preemptive Invasion of Iran" focus and ENG joins) and Iran has time to join a faction (usually the Axis), the scripted peace deal that occurs when Iran finally capitulates ends the entire WW2 between the Allies, Axis and Comintern instead of just peacing out Iran, reverting the world to pre-WW2 borders. This is especially bad for historical AI runs because SOV will always do the invasion of Iran on historical.

For ease of reproduction, I'm attaching an ironman savefile where Iran is just about to be capitulated under these conditions.

Steps to Reproduce
1. Start an ironman game with historical AI on.
2. Wait for SOV to do "Preemptive Invasion of Iran" with ENG joining in.
3. Wait for Iran to join a faction, then capitulate.
4. Observe how WW2 suddenly ends and borders everywhere are reset to where they were before the war broke out.

Upload Attachment
File(s) attached
 

Attachments

  • Ironman United States 2.hoi4
    36 MB · Views: 0
Upvote 0

noctefleur

Recruit
1 Badges
Nov 16, 2018
9
0
  • Crusader Kings III
I've tested a small mod to try and fix this issue and it seems that this can be resolved by ensuring that Iran leaves any faction it may be a part of before triggering the scripted peace:
Code:
                    # FIX BEGIN - don't end WW2 on scripted peace deal
                    if = {
                        limit = {
                            PER = {
                                is_in_faction = yes
                            }
                        }
                        PER = {
                            leave_faction = yes
                        }
                    }
                    # FIX END

Or just not have the on_capitulation trigger fire at all if Iran is in a faction and have the situation be resolved at the end of the game