• 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:
I'm not sure, devs of KR support such claims - they seemed to be nice guys when I used to take part in their Discord discussions.

But, well, fan community is able to spoil image of anything.

As far as I know, the devs are reasonable people I've had excellent discussions with, who are all well-versed in the countries they help create.

The fans, I made a few friends, but the vast majority are unpleasant.
 
i don t get why expert ai get s so much credit

for my last pre mtg playthrough i chose an operation overhaul usa, and i conquered japan faster than in vanilla
i bombed that country to zero, simply because my 2k bomber didn t see a japanese figter over mainland japan, while the ai tried to secure air superiority over the neighbouring sea zones filled with my submarines
the japanese ai's navy was decimated simply because it chose to build convoys with 30 dockyards, and my 16 carriers found the game one-sided after that
now i know that this may be operation-overhauls fault, although i don t know what that mod tinkers with the ai, and elite ai claims to not work around some of this stuff, still the modded japanese ai was a lot easier target, due to not defending against bombing attacks and not building navy, both of which i have seen in the vanilla game from it
ofc, if i am wrong enlighten me, but elite ai still feels like just in some ways (especially ground) a bit more challenging ai, not some serious upgrade over the fight they can bring

So you played some other random mod and then make judgements on Expert AI? Makes no sense. None of the overhaul mods implement expert AI mod, some have tried but failed 100%.
 
So you played some other random mod and then make judgements on Expert AI? Makes no sense. None of the overhaul mods implement expert AI mod, some have tried but failed 100%.

Well, Operation Overhaul it is not a random mod. It may not be able to reproduce on a 100% the enhancements of Expert AI since it adds new stuff, but it was built to use EAI and cannot run whithout it.

At the very least their work is good enough to Chrondite as he flagged Operation Overhaul as compatible with Expert AI where other overhauls mods are not.

The problem is that some people believe that Expert AI is some kind of miraculous work that it will fix the AI when that is something that only Paradox can do. If the AI in @minimouse007 game decided to derp as Japan and was unable to use properly it's airforce and fleet that is not something a mod can fix.

What EAI does fix and help is with production logic, templates, focus tree order to prevent suicidal wars and if the player wants it some cheats for the AI such as free convoys
 
Well, Operation Overhaul it is not a random mod. It may not be able to reproduce on a 100% the enhancements of Expert AI since it adds new stuff, but it was built to use EAI and cannot run whithout it.

At the very least their work is good enough to Chrondite as he flagged Operation Overhaul as compatible with Expert AI where other overhauls mods are not.

The problem is that some people believe that Expert AI is some kind of miraculous work that it will fix the AI when that is something that only Paradox can do. If the AI in @minimouse007 game decided to derp as Japan and was unable to use properly it's airforce and fleet that is not something a mod can fix.

What EAI does fix and help is with production logic, templates, focus tree order to prevent suicidal wars and if the player wants it some cheats for the AI such as free convoys
agreed, overall my only major negative experience in this case with the eai was that the ai chose to produce convoys with 30 dockyards, making my securing of pacific a cakewalk, i know eai is likely not responsible for worse experience than vanilla in this case, however, for the 3-5k convoys, it is
maybe if the naval production ai was built around the ai getting free convoys, it would have worked better, but then i would liked to see some words about : "hey check this box or the naval production goes mad"
it was funny to see german navy becoming a serious force to reckon with, not 3 ships not yet hunted down by the allies, but next time i will see how the naval production works with free convoys
 
Additionally, there are additional arrogant claims from the KR community that "if it wasn't for KR, HOI4 would have been a failure."

All they want to do is feel totally and utterly superior..

Sounds a lot like the MP gang also.
 
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.

Could you add a "Null" or "Do nothing" AI plan for multiplayer games, so you can prevent non player south american minors from building hundreds of divisions that lag the game?
 
Until winter counteroffensive under Moscow Soviet people were kinda not aware about fact that they don't have choice with any other adequate option except fighting. Still, even in worst first weeks of war people were desperately fighting, inflicting unexpected losses to Germany - and you don't fight so under the fear of execution or inprisonment as would @RommelTheDesertFox assume. In such cases you kill own commanders and/or commissars and surrender - which happened too but not at all at the degree, that could allow to say, it was widespread or common phenomenon.

I sadly dont have the ability to bring sources at the moment (other than you taking my word for what my history prof has stated), but the news of the death squads spread really fast. Its impossible to know if the knowledge of death squads arbitrarily killing people was the only reason why the soviets fought as hard as they did, but it was most certaintly a known factor by the late fall.

Additionally, outside of death squads its surprisingly easy to motivate people to fight when your country is being suddenly invaded. Nationalism is a very powerful ideology after all.


I just trying to explain that for every communist or non-communist alternative without foreign intervention you have to be inside the system - to be the one, who has the right to give unquestionable orders, using features of regime to own benefit. All other variants are as possible and plausible as MacArthur, becoming king - funny and memey but has nothing to do with history, alternative or not.

And position inside the system for the actor of struggle for power gives own benefits, but own restrictions too - when you using communist system to give yourself legitimacy, you HAVE to be communist yourself, at least publically.

I agree with you somewhat here. In essence the USSR is one of the few countries where any ideology change basically needs a civil war to make sense. Even with a civil war Monarchism is questionable compared to other monarchist trees.

For example compare Hungry restoring Otto von Habsburg to whomever the legitimate Romanov heir was. Otto was legitimately already offered the throne, and in 1936 Hungry still had the pretense that they were a monarchy with Horthy as just the regent. In that sense Otto coming back seems valid. Conversely, the legitimate Romanov is a historical nobody (I dont even know the persons name), the Romanov dynasty had a major revolution which lead to it abidicating and then a bloody civil war. Also the entire main branch was murdered. Very hard to make a monarchical relying point when nobody knows them, and the family is tainted with the stain that is the failure in ww1.

Id honestly prefer if the alt-history trys to stay away from the super implausible scenarios like communist-Japan or monarchist-Russia, unless caused by foreign powers. Internally its just really unlikely in 2-4 years or so for such changes to occur.

That being said though, I do really want to see a 3rd French Empire under Napoleon V (or was it VI at this point?). But tbh even that seems more realistic than a Romanov restoration. Couldnt care less about the Bourbons or Orleans though - those guys are so vanilla compared to the glory of the Bonapartes.
 
Could you add a "Null" or "Do nothing" AI plan for multiplayer games, so you can prevent non player south american minors from building hundreds of divisions that lag the game?

From what I've read on the forums, this is not the solution to game lag.

@SteelVolt said he made significant optimizations to the division AI with 1.3.3. A forum user tested this with 1.4 (i.e. comparing game speeds with and without deleting all the Latin Americans). The result was that deleting all those divisions made very little difference to game speed. What slows the game down now isn't divisions, it's divisions in combat. Anecdotally, this tallies with my experience. Even on my puny setup (two-core i3 with integrated graphics), the game speed is fine until Germany & the USSR begin to wrestle with hundreds of divisions.

If my info is now out of date, do please correct me; none of us read every thread in this forum.
 
From what I've read on the forums, this is not the solution to game lag.

@SteelVolt said he made significant optimizations to the division AI with 1.3.3. A forum user tested this with 1.4 (i.e. comparing game speeds with and without deleting all the Latin Americans). The result was that deleting all those divisions made very little difference to game speed. What slows the game down now isn't divisions, it's divisions in combat. Anecdotally, this tallies with my experience. Even on my puny setup (two-core i3 with integrated graphics), the game speed is fine until Germany & the USSR begin to wrestle with hundreds of divisions.

If my info is now out of date, do please correct me; none of us read every thread in this forum.

There are several popular MP mods that either consolidate most of the countries that historically weren't very relevant to the war into a single entity called "Neutral Land" or the like, which doesn't build divisions, or they leave said countries like they are in vanilla but prevent them from building divisions by stripping them of manpower, etc. Both methods considerably boost game speed: MP can actually be played at speed 5, speed 3 becomes vanilla's speed 4, and so on.
 
Id honestly prefer if the alt-history trys to stay away from the super implausible scenarios like communist-Japan or monarchist-Russia, unless caused by foreign powers. Internally its just really unlikely in 2-4 years or so for such changes to occur.
As it was stated earlier, communist Japan is not that impossible, but the problem was (and is) with completely incorrect depiction of how they got to power and what were they doing.

"Communist" Japan had some plausibility, but not in the way paradox made it. The Young Officers (the clique for poor army officers who weren't part of any samurai family) coup on the 26th of february (in 1936) could have succeeded thus installing a semi-communist but still very much pro-Emperor government. But considering that Young Officers were de facto Kodoha 2.0 it wouldn't have differed in any way from, well, the Kodoha path. Or it would be neutrality path with full isolation.

Edit: when I'm thinking about it, the path could have had Emperor change or something, considering that Hirohito didn't like the fact that another government got slaughtered. Wiki says that Prince Chichibu could have been an option. Anyone with more knowledge about 1930s Japan would be really helpful right now.
This looked pretty logical from my point of view. Not as if I was a specialist in Japanese modern history, but scenario looks believable.

That being said though, I do really want to see a 3rd French Empire under Napoleon V (or was it VI at this point?). But tbh even that seems more realistic than a Romanov restoration. Couldnt care less about the Bourbons or Orleans though - those guys are so vanilla compared to the glory of the Bonapartes.
As far as I understand, fascists could try using Napoleon as a popular figurehead - or am I wrong at this assumption?
 
As it was stated earlier, communist Japan is not that impossible

As plausible as winning the jackpot in the lottery five times in a row.
 
That being said though, I do really want to see a 3rd French Empire under Napoleon V (or was it VI at this point?). But tbh even that seems more realistic than a Romanov restoration. Couldnt care less about the Bourbons or Orleans though - those guys are so vanilla compared to the glory of the Bonapartes.
That depends on how you count.

Napoléon proclaimed his son Emperor as Napoléon II in 1815, but even French textbooks don't count him as an Emperor. Napoléon III picked number 3 as an acknowledgement of "Napoleon II", who had died in a decade before. Napoleon III and his dynasty were officially overthrown by the Parliament, so number IV is still officially 'open'. But, if you consider that every successor to Napoleon III was in fact the Emperor, that would have been Napoleon VI, who in real life joined the Résistance and was wounded in action.
 
Last edited:
As it was stated earlier, communist Japan is not that impossible, but the problem was (and is) with completely incorrect depiction of how they got to power and what were they doing.


This looked pretty logical from my point of view. Not as if I was a specialist in Japanese modern history, but scenario looks believable.

Even that scenario is not very communistic though. I dislike group things that are not the same together because they are somewhat similar.

As far as I understand, fascists could try using Napoleon as a popular figurehead - or am I wrong at this assumption?

I mean, the fascists could but iirc Napoleon VI (I checked thats how he self-styled himself) was not fascistic. Besides Bonapartism is not particularly fascistic.

That depends on how you count.

Napoléon proclaimed his son Emperor as Napoléon II in 1815, but even French textbooks don't count him as an Emperor. Napoléon III picked number 3 as an acknowledgement of "Napoleon II", who had died in a decade before. Napoleon III and his dynasty were officially overthrown by the Parliament, so number IV is still officially 'open'. But, if you consider that every successor to Napoleon III was in fact the Emperor, that would have been Napoleon VI, who in real life joined the Résistance and was wounded in action.

Agreed depending on how you count it does change significantly, but I was referring to what he self-styled himself as. Which the internet suggests is Napoleon VI.
 
Yeah-yeah, half population sat there, another half - secured them. Never getting old...


Until winter counteroffensive under Moscow Soviet people were kinda not aware about fact that they don't have choice with any other adequate option except fighting. Still, even in worst first weeks of war people were desperately fighting, inflicting unexpected losses to Germany - and you don't fight so under the fear of execution or inprisonment as would @RommelTheDesertFox assume. In such cases you kill own commanders and/or commissars and surrender - which happened too but not at all at the degree, that could allow to say, it was widespread or common phenomenon.


If you want the explanation to such cases, check the number of Party members and compare with general population figures. "Stalinist machine" wasn't interested in machinations on elections of such level, while the fact of election as a deputee gave little privilege, but a lot of duties.

Well, just as Party membership, btw. Under Stalin's rule Party membership was something that you should deserve to get - through work or heroic deeds, it would become just universal social elevator for timeservers a bit later.


I just trying to explain that for every communist or non-communist alternative without foreign intervention you have to be inside the system - to be the one, who has the right to give unquestionable orders, using features of regime to own benefit. All other variants are as possible and plausible as MacArthur, becoming king - funny and memey but has nothing to do with history, alternative or not.

And position inside the system for the actor of struggle for power gives own benefits, but own restrictions too - when you using communist system to give yourself legitimacy, you HAVE to be communist yourself, at least publically.
I wasn’t saying that Gulags were why they fought as it was for their Motherland and not for Stalin or Communism like propaganda would have you believe. Though under Stalin for a while thousands of Soviets were killed due to his ultimatum to not retreat or die by your country’s hands (not to mention for quite a while in the war men were without rifles so it was either guaranteed to die by the Germans or to die by the hands of your people).
 
I sadly dont have the ability to bring sources at the moment (other than you taking my word for what my history prof has stated), but the news of the death squads spread really fast. Its impossible to know if the knowledge of death squads arbitrarily killing people was the only reason why the soviets fought as hard as they did, but it was most certaintly a known factor by the late fall.

Additionally, outside of death squads its surprisingly easy to motivate people to fight when your country is being suddenly invaded. Nationalism is a very powerful ideology after all.




I agree with you somewhat here. In essence the USSR is one of the few countries where any ideology change basically needs a civil war to make sense. Even with a civil war Monarchism is questionable compared to other monarchist trees.

For example compare Hungry restoring Otto von Habsburg to whomever the legitimate Romanov heir was. Otto was legitimately already offered the throne, and in 1936 Hungry still had the pretense that they were a monarchy with Horthy as just the regent. In that sense Otto coming back seems valid. Conversely, the legitimate Romanov is a historical nobody (I dont even know the persons name), the Romanov dynasty had a major revolution which lead to it abidicating and then a bloody civil war. Also the entire main branch was murdered. Very hard to make a monarchical relying point when nobody knows them, and the family is tainted with the stain that is the failure in ww1.

Id honestly prefer if the alt-history trys to stay away from the super implausible scenarios like communist-Japan or monarchist-Russia, unless caused by foreign powers. Internally its just really unlikely in 2-4 years or so for such changes to occur.

That being said though, I do really want to see a 3rd French Empire under Napoleon V (or was it VI at this point?). But tbh even that seems more realistic than a Romanov restoration. Couldnt care less about the Bourbons or Orleans though - those guys are so vanilla compared to the glory of the Bonapartes.
If the only options for the Soviets are Communist and Democratic than I could care less about Russia.
 
I wasn’t saying that Gulags were why they fought as it was for their Motherland and not for Stalin or Communism like propaganda would have you believe. Though under Stalin for a while thousands of Soviets were killed due to his ultimatum to not retreat or die by your country’s hands (not to mention for quite a while in the war men were without rifles so it was either guaranteed to die by the Germans or to die by the hands of your people).
You definitely have to read original text of Order 227 - to understand, what it is about, first of all.

And I'm open to any proof of events where Soviet soldiers were thrown in a battle without any weapon. "Enemy at the gate" movie doesn't count.