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

HoI4 Dev Diary - AI Plans

Hello, and welcome back to the very last feature DD before we release Man the Guns on February 28th. Today we will be showing you a few more details of the AI strategy plans you can set in the Custom Game Rules Menu.

In Waking the Tiger, we created the backend support to give the AI multiple paths it can go down, and in the free 1.6 'Ironclad' update releasing together with Man the Guns, we have expanded this feature by combining it with the Custom game Rules menu, which now allows you to pick which path a country should go down.

Every country with a unique focus tree now has at least two AI strategy plans, depending on the number of branches in the focus tree. You can either pick which plan the AI should follow specifically, let the AI pick a plan at random, or tell the AI to obey the other game settings.

Screenshot_17.jpg


The setting for an AI overrides all other game settings, so if you check historical focuses but tell the German AI to restore the Kaiser, it will pick Oppose Hitler anyway.

Since this would allow you to set up scenarios that would make some achievements fairly trivial, these settings largely disable achievements.

It should also be noted that this allows you to create combinations that lead to situations we didn’t anticipate when we made some focus trees (“Should Democratic Germany really ally with Communist Hungary to contain Fascist France? What if Britain is Communist?”) or event chains. Given the often mutually-exclusive nature of focus trees and the sheer number of possible combinations, that can lead to situations where one AI can no longer continue its path or things behave in an unexpected way.

Today, we are going to go through a little AAR based on one of the little scenarios people around the office have been using: “How many monarchies can I have at the same time?”

So Germany will bring back the Kaiser, Hungary will restore Austria-Hungary, Romania will aim to achieve Balkan Dominance, Japan will restore the Emperor, Manchukuo will attempt to gain independence, Britain will give support to the King’s Party (Charles II of Romania approves, but is quietly told that is not what that means) and finally the Netherlands will try to support the only man in the Dutch government - Queen Wilhelmina. France is kept as default (so it will react to Imperial Germany), the US and Mexico are set to be random. We will observe from the country of Uruguay.

Screenshot_18.jpg


Germany kicks off the Monarchist revival with their civil war. As a little sidenote: we have reworked the positioning of the armies at the start of the German Civil War a little to give a more coherent front line. Meanwhile, the Hungarian AI has decided to strengthen the Monarchists, Britain is still building up its industry and Japan is supporting the Kodoha Faction.

Screenshot_19.jpg


While the German Civil War rages, Britain continues to build up and Hungary is rushing down the branch to restore the monarchy. With Romania set to expand later, that is probably the right choice.

Hitler’s Summer Offensive has the Royalists in Germany on the backfoot for most of 1936 before they manage to contain it. At the same time, Otto von Habsburg has assumed the Hungarian Crown. Incensed by Edward’s insistence to marry Wallis Simpson, the British government has resigned. Manchukuo is still biding its time, building up its industry.

Screenshot_20.jpg


By October 1936, the Royalist counter-offensive is in full swing and has largely succeeded in restoring the original frontline. Meanwhile, Otto’s first act as King of Hungary is to start an ambitious program of industrial expansion - believing, no doubt, that providing jobs to the Hungarian workers will help build support for his rule.

Surprising many observers, Alf Landon has defeated Roosevelt in the presidential elections and wastes little time in returning the dollar to the gold standard in a bid to undo the damage wrought by the irresponsible policies of his predecessor.

As 1936 turns into 1937, the Royalists in Germany have pushed deep into fascist territory in the South and the far North. The British Empire has broken into pieces as the Dominions have shed the last ties to their former mother country, causing one British Civil Servant to exclaim “Not since Helen of Troy has such misfortune been brought over a great nation by a single woman!” (Churchill, reportedly, remarked “If only she had been single.”)

Screenshot_22.jpg


About a year after the insurrection started, the writing is on the wall for Hitler. A last-ditch offensive in Mecklenburg has failed with only moderate territorial gains. As the King’s Party solidifies support for the monarchy in Britain, Otto von Habsburg has begun to take the next step on his way to restore the old lands of his dynasty: Turning Hungary into Austria-Hungary by adding Austria through a referendum.

Screenshot_24.jpg


By early April 1937, the fighting has reached Berlin. Hitler orders all available resources to be thrown in a counterattack under General Steiner, but is informed by his Generals that this attack did not take place. He takes the news with his usual stoicism. The city falls a few days later, and the fascist government does not survive the end of the month.

In Britain, Edward has taken the crown and is evidently preparing a great coronation ceremony. Against all expectations, the people of Austria vote to return to the rule of a Habsburg King.

Screenshot_26.jpg


The rather hasty departure of India from the British Empire brings the question of the Muslim population in the country to the forefront: worried about a lack of representation, Muslims in Pakistan and Bangladesh have taken up arms to defend their freedom. Observers expect a long and bloody struggle.

Screenshot_29.jpg


By this point, the Civil War in Spain is considered little more than a sidenote, as Alf Landon shocks the world with a strong commitment to a policy he calls simply “America First”.

Screenshot_31.jpg


The news of a minor incident in the Zeppelin Hindenburg is missed by most major newspapers, although German Princess Victoria Louise has reportedly shown a great interest in it.

Meanwhile in Asia, Generalissimo Chiang Kai-Shek is preparing a new offensive to finally bring the warlords on the periphery under his control. Emperor Puyi has successfully re-negotiated the relationship to Japan, giving him much more control over internal matters.

As the press in Europe prepares to attend the official ceremony in which King Otto of Hungary is crowned Kaiser of Austria-Hungary and the German Military Government declares its commitment to restoring the monarchy, the central government in China has declared the “Southern Pacification Campaign” against the obstinate Guangxi Clique and the governor of Yunnan.

Screenshot_32.jpg

The Spanish Civil War ends in a Republican victory. In his first speech as Emperor of Austria, Otto announces that his government will seek to deepen ties with the former provinces of Bohemia and Slovakia, while also extending his warmest congratulations to the German government for defeating “the poisonous snake of fascism” in their country, promising to do what he can to help them in restoring the old order.

Seeing the way the wind is blowing (especially since their traditional ally, France, seems to face a resurgence of communism and may not be available to protect them for much longer), the Czechoslovakian government decides to accept Otto as King of Bohemia and be absorbed again into the resurgent Austria-Hungary. Not to be outdone by his now much larger neighbour, Charles II of Romania takes steps to institute a Royal Dictatorship.

Screenshot_34.jpg


In India, Pakistan has shocked observers by reversing initial Indian gains and taking the offensive, with fighting now in the outskirts of Delhi. In Manchukuo, Emperor Puyi has purged the General Affairs Council of everyone he suspects of divided loyalties. In neighbouring China, the war in the southern part of the country has ground to a stalemate while Chiang Kai-Shek turns towards what many suspect was his true objective all along: eliminating the small base of the Communist party.

On the 4th of August, 1938, some 20 years after he was forced to abandon his throne, Kaiser Wilhelm II returns to Germany. The world, he remarks, seems to have finally understood why it needs monarchs. Meanwhile, Austria-Hungary, although still technically under the provisions of the Treaty of Trianon, has begun a barely-concealed rearmament program.

Screenshot_35.jpg



The fortunes of war in India have turned once again, as India has launched a major offensive along the entire front and has pushed back Pakistani forces all along the line.

With the demise of the Hitler government in Germany, fascist Italy is looking increasingly alone on the world stage. This is cemented by diplomatic maneuvering at the highest level, with an exchange of personal letters between Kaiser Wilhelm II and his distant cousin Edward VIII. It appears that both see eye to eye with regards to Italy, and some diplomats even speculate that this is but the first step towards a full-scale alliance between the previous enemies. With France looking increasingly likely to fall to communism, Germany is eager to secure its back while it deals with the communist threat on the continent.

Screenshot_37.jpg


In the final days of 1938, Indian forces finally crush the last bits of Pakistani resistance and end the long and bitter struggle.

At the start of 1939, the political landscape of Europe has changed quite dramatically. Two monarchs regained the thrones they had lost in 1918, and one has brought back the crown to a level of power not seen in centuries. In the Far East, Emperor Puyi is biding his time, as he knows that Japan must eventually strike against the Soviet Union - and when it does, his moment has come. The King of Romania has cemented his power, and although any attempt to strongarm Hungary is now impossible, he may yet assert his position on the Balkans.


Screenshot_38.jpg


Meanwhile, in the US, conservative and reactionary elements have made a comeback, leading to a decisive shift to the right of US politics. With the post-war order in Europe collapsing and old thrones being restored, the US starts to prepare for an intervention in Europe, should it come to that.


That’s all for today. Next week we will have a MASSIVE RECAP episode, and then it’s time for the 1.6 Patchlog and Man the Guns release the week after.
 
Last edited by a moderator:
These custom game rules look like a great addition to the game. They basically multiply the fun possibilities opened up by all the NF changes in WTT and MTG.

I'm glad there is attention to AI aswell. I was hoping for battleplan and country development improvements for AI but still giving us more control over AI is better than nothing.

Yes, I was also hoping for a diary focusing on AI algorithms as well. They are almost completely unmoddable, so the fact that none of the devs seems to be very interested in them is somewhat frustrating. All the evidence from previous patches is that @Archangel85 is right and we have some AI improvements coming, but in an ideal world the team would include someone who's as passionate about AI_strategy files as @Bratyn is about division namelists :p (which hugely improved the game for me).

Folks, you have to understand AI doesn't sell; Paradox uses its budget to develop features that will sell. AI can't really be shown on the store page, or YouTube playthroughs. By the point you notice the AI is lackluster, you've already bought the game, which is all what matters ;)

C'mon devs, please prove this person wrong when the patchlist comes out! ;)

Does Germany ever naval invade Norway?

They are removing the fall of Norway from the requirements for the MacDonald Proposal (UK swaps Northern Ireland for Irish alliance), which suggests it's very unlikely that there's new scripting for Germany attacking Norway.

Please Paradox, fix the rocket sites, so they actually work :(

What is supposed to be wrong with them? I've never had a problem, but I've only used them in a couple of games.

It also needs a Jacobite tree for the British.

The UK is going to get a focus tree revision in MTG, just a fortnight away. It would be unfair for the devs to give more time to the British NFs in the next couple of years.

Nothing to stop you modding it in yourself, though. I'd imagine that could be quite a popular mod.

This is very, very simple to fix, but appears to be something that doesn't interest the devs. It's to do with the fact that currently the AI focus list means that GER will invade the Low Countries as soon as it's attacked POL, whereas if you rearrange the list and add a couple of basic AI strategies you can achieve the historical result.

I don't know why they've never done this.

GER invading ENG and NOR are similar examples.

We've been told many times that AI is usually much harder than it looks and naval invasions in particular have traditionally been a difficult concept for wargames to handle. I would have thought that successful German invasions across the North Sea would require quite a bit of time to script and test, even though the necessary mechanics are already present.

You're probably right that creating a Phoney War is at the easier end though. My guess is that it simply never made it into the specifications for patches/DLCs focused on China and naval warfare respectively (why would it?). I hope that 1.7 will be combined with a Country Pack, rather than new mechanics, so that the devs can focus on some of these long-standing lacunae in the game's algorithms.

Makes me think, is there a Russian monarchist path to restore the Tsars?
Maybe they find Anastasia

I think that's inevitable if the telemetry still shows the popularity of the Kaiserreich path.

Any chance on a HOI4 dev clash the upcoming few weeks? I really enjoy those, but they are usually focussed on EU4 and Stellaris.

Sorry to spoil your fun, but I'd rather the devs played games in their own time and focus on, erm, developing in their office hours. :rolleyes:

Next week we will have a MASSIVE RECAP episode

I've already written that for you - see the link in my sig. Cut and paste it, then pour yourself a beer/hot chocolate/tea while the boss thinks you're working. :p
 
Absolutely wonderful. I figuratively can't wait!
 
That was not my question, my question is can I set up a Multiplayer game, I am playing Mexico a friend plays Spain and another France and then I set Hungary and Germany both on monarchist paths, is that possible? I don't want to force players to do anything but the AI in a MP game.

If you can force any kind of rule in multiplayer games I don't see why you shouldn't be able to set the AI on a certain path while maintaining the players ability to choose their destiny.
 
Well, I have to say I am impressed with the story and also i can't wait to mix and play with this new feature! Proably I am gonna do fascist Britain and democratic Germany.
But these are the wrong way round! :mad:
 
I think that's inevitable if the telemetry still shows the popularity of the Kaiserreich path.
Yes! Tsardom focus path must happen (as well as a proper Fascist and Democratic path that is either Kerensky's Dem. Socialism or a Conservative/Reactionary form of Democracy)!
No, God, please, no!
Down with Communism! God Save the Tsar!
 
Yes! Tsardom focus path must happen (as well as a proper Fascist and Democratic path that is either Kerensky's Dem. Socialism or a Conservative/Reactionary form of Democracy)!
Kerensky? Are you kidding me? He was a political corpse back in autumn 1917. It is even worse than Japanese communist path in HOI4. Close level of madness would be establishing monarchy in USA.

Down with Communism! God Save the Tsar!
And another completely dead idea. Monarchists were marginal minority in White forces during Civil war, all members of Romanov family in emigration have close to zero legitimacy. The only way to restore Tsardom is to bring in on bayonets at the same way as Puyi was the "ruler" of Manchuko.

The only non-communist alternatives, I'm ready to discuss are either neutral autocracy in the form of military junta, or same military junta, but nationalist one. Both will still have to disguise themselves under some of Soviet slogans, at least in internal politics.
 
So, does this mean that (in vanilla), when I select historical, Germany will do Sitzkrieg (not invade France/Lowlands until 1940)? I have yet to play a “historical” game where Germany doesn’t immediately invade after defeating Poland...not historical at all, IMHO.

HOI IV does not do a good job of simulating winter combat. Airplanes still fly, ammunition still works, no winter clothing is issued. Fights in January have same outcome as fights in July. Soviets do not launch winter war offensive in late 41 through March 42.


we only do betas on minor patches. We will make a steam beta branch tho so you can stay on 1.5 if you want to finish a campaign

You gave us beta access for Together for Victory and Death or Dishonor and we the community found several bugs you did not find causing a patch before release. You did not give us beta access for Wake the Tiger and you had 4 fixes, not one for it. The carrier air game is still broken. Maybe you should consider releasing a beta so the inevitable fix can come out with the release and not a few days later. Just saying.
 
Kerensky? Are you kidding me? He was a political corpse back in autumn 1917. It is even worse than Japanese communist path in HOI4. Close level of madness would be establishing monarchy in USA.


And another completely dead idea. Monarchists were marginal minority in White forces during Civil war, all members of Romanov family in emigration have close to zero legitimacy. The only way to restore Tsardom is to bring in on bayonets at the same way as Puyi was the "ruler" of Manchuko.

The only non-communist alternatives, I'm ready to discuss are either neutral autocracy in the form of military junta, or same military junta, but nationalist one. Both will still have to disguise themselves under some of Soviet slogans, at least in internal politics.
1. I know that Kerensky was highly unpopular but seeing as how he is already the leader of the Democratic party in the vanilla game and you can get Trotsky back which causes a second civil war it does not seem that far out in the paradox realm to me (and maybe they can represent his low popularity in a civil war and have a minimal amount of land and military might at the outbreak of a civil war but other nations that would like to see the fall of the USSR like Germany, Italy or the UK can have the option to send various amounts of support and in the case of a Kerensky victory you can do something like the Kaiserreich US civil war and root out the opposition to restore order).
2. Again Tsardom is far from impossible in the realm of HOI4 due to things like Trotsky coming back to the Soviet Union starting a civil war, Kerensky being the leader of the vanilla game Dem. party and being able to get him to power without a civil war, and a Communist Japan even being a thing that can happen so a Tsardom restoration path is far from out of the question.

EDIT: You are thinking historically BUT not being open minded as many things could've happened differently (no matter how unlikely) and in the realm of HOI4 as long as there was a minor chance that it could happen then it could be implemented so just keep that in mind.
 
1. I know that Kerensky was highly unpopular but seeing as how he is already the leader of the Democratic party in the vanilla game and you can get Trotsky back which causes a second civil war it does not seem that far out in the paradox realm to me (and maybe they can represent his low popularity in a civil war and have a minimal amount of land and military might at the outbreak of a civil war but other nations that would like to see the fall of the USSR like Germany, Italy or the UK can have the option to send various amounts of support and in the case of a Kerensky victory you can do something like the Kaiserreich US civil war and root out the opposition to restore order).
2. Again Tsardom is far from impossible in the realm of HOI4 due to things like Trotsky coming back to the Soviet Union starting a civil war, Kerensky being the leader of the vanilla game Dem. party and being able to get him to power without a civil war, and a Communist Japan even being a thing that can happen so a Tsardom restoration path is far from out of the question.
That's the problem of PDX - they are pathologically unable even to Google anything, when it comes to USSR in HOI4, so we get Kerensky as dem. leader, failed purge, leading to NKVD uprising, led by regimental commander Vlasov, and Soviet interwar diplomacy, beginning and ending in M-R pact.

Trotsky is sort of memey stuff, but, if we assume that Stalin is killed through the coup, and leaders of the plot are openly antistalinist, his return makes sense. He has supporters in USSR - in the Party, in the army, in the NKVD, in the Comintern. It is weird scenario but still something to be considered alt-HISTORY.

Kerensky is noone. He had no support even among White forces during civil war, and I wonder, why no white emigrant never attempted to assassinate Kerensky after end of Civil war - they had good reasons to blame him for everything, that led to communist takeover in October 1917.
 
Apart from settings, will the AI follow alternative paths reacting to new focuses? For egzample will Japanese change their behaviour when America fall into civil war? What will mexico do? And vice versa, how will USA react to Mexico's rise in power?

Also will there be the border correction to change made for allowing after-war Poland? The part that is today polish-ukrainian border makes it impossible to achieve mid-war german-soviet border. This problem was already agreed by one of developers and promised to be fixed but after watching streams and dds i feel like it was forgot...
 
@CrazyZombie Also another thing that I would like to mention is that it is difficult to get historical accuracy with a game like this no matter how hard you try so just keep that in mind as well (but something that is a simple fix and bugs the heck out of me is that they have the Soviets named the Soviet Union when everyone that knows history knows that their official name was the Union of Soviet Socialist Republics or U.S.S.R. for short).

EDIT: also I know Paradox is more than willing to have long names for countries since they have long names for many countries that turn Communist.
 
Last edited:
I think the retrn of the czar is a realistic option if its in order to legitimize a military take over. Its not about really restoring monarchy but having a figurehead.
Kerensky is not a realistic figure. The guy was so incompetent he didn't even make for a good scapegoat.
 
That's the problem of PDX - they are pathologically unable even to Google anything, when it comes to USSR in HOI4, so we get Kerensky as dem. leader, failed purge, leading to NKVD uprising, led by regimental commander Vlasov, and Soviet interwar diplomacy, beginning and ending in M-R pact.

Trotsky is sort of memey stuff, but, if we assume that Stalin is killed through the coup, and leaders of the plot are openly antistalinist, his return makes sense. He has supporters in USSR - in the Party, in the army, in the NKVD, in the Comintern. It is weird scenario but still something to be considered alt-HISTORY.

Kerensky is noone. He had no support even among White forces during civil war, and I wonder, why no white emigrant never attempted to assassinate Kerensky after end of Civil war - they had good reasons to blame him for everything, that led to communist takeover in October 1917.
I'm not saying that I don't agree with you but that it still has a chance to be implemented by Paradox as I would much prefer something like a Reactionary Democracy for a Russian Democratic path.
 
@CrazyZombie Also another thing that I would like to mention is that it is difficult to get historical accuracy with a game like this no matter how hard you try so just keep that in mind as well
I call for giving other focus paths in the frames of theoretically possible. That is the trick with alt-history, without which it is not alt-history, but some silly memes.

Otherwise, by the arguement "why not" we can get ressurection of dead body of Nikolai II, or summoning the spirit of Karl Marx ("ghost of communism" trait). Because, why not? MORE MEMES!
 
I call for giving other focus paths in the frames of theoretically possible. That is the trick with alt-history, without which it is not alt-history, but some silly memes.

Otherwise, by the arguement "why not" we can get ressurection of dead body of Nikolai II, or summoning the spirit of Karl Marx ("ghost of communism" trait). Because, why not? MORE MEMES!
Delete this before Bratyn sees it!
 
The way I see this is that we want MP groups to make mods with their favorite rules (which will work in MP as long as you all have the mod. say you make a "Duke_Dave's MP Rules" mod for when you host. Then if some rules end up being very popular we will integrate them in the base game when we release patches.
Find it humerous the devs are kicking this back to the mods to instill it for them. Seriously doesn’t that just scream your reluctance to bother getting involved with us directly? Also how far are you are willing to go and extend that rules sections in terms of specifics? You gonna input a fort limiter In tiles? You gonna put a zone restriction of where kamikazes can operate in? Are you gonna restrict the type of divisions that can be build Aka space marines or set a limitor of the division sizes aka must be 10-20 width or higher? And so on and so forth.

In all honesty you would save yourself a lot of time if you just hopped in several of the big name communities and shaped your development based off the general concepts throughout those rule sets.