• 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:
Oh so now you know what my thoughts are? Interesting, because I've not once said what my position or opinion is. All I have done is point out you keep making statements as facts, that are not actually facts. But way to spin this as me having a opinion that I'm not going to dislodge from, as opposed to the reality of the situation.

Again, do you have something new to say or will you just repeat the same opinion over again?
Quit the drama already and actually tell me your stance if you even have one. Or are you just going to continue on regulating the discussion down to "dats subjective man." Subjective how? I just showed you an example of how the AI is performing in a stupid and flawed manner. All your telling me is "well uhh I haven't said my opinion yet!" Well do it. You clearly are taking an opposing position against my view on the AI and what means could be used to instill a challenging behavioral shift in how it handles those systems.

-Instead of wasting XP on old outdated equipment. It saves and uses it when it researches light tank 2s
-Instead of trading X factories in the hole and weakening their economy Paradox puts in a script to instill 1 to 1 trading between the AI. Or Player with the AI if it fits X factors. If it doesn't meet said factors it will either trade with someone else or forcibly lower the trade threshold it is willing to go.
-Instead of researching their new piece of equipment outright they actual bother to use the licensing system with its allies to get stuff quicker
-Instead of wasting ahead bonuses to get solely 1938 tanks. They consider holding off that for using it on their 1940 tank.

Those are things that I want addressed and some tweaks in the behavior parameters are what is missing here. The competitive multiplayer crowd is an option to fill in that behavior is it the right option? Who knows but I am willing to throw my hat at their ability to at least spit a few ideas to a dev in and reason as to what is a good goal marker the AI could/should reach at in 1940 as Germany.
 
Last edited:
What’s the difference between turning off historical focuses and setting everything to random?
I'm pretty sure random means it will pick one of the paths listed, not that it will just randomly pick NF to do.
 
Quit the drama already and actually tell me your stance if you even have one.
what drama? you are the one making statement that are not factual and accusing people of having opinions that has no basis in reality. Quit trying to make this into something that it isn't. Either come up with something new or move on, as you have already expressed your opinion on this matter. This will be my last reply here as there is no point in reiterating what has already been said. My posting had nothing to do with my opinion, but to try and get you to understand that your opinions are not actual facts. You have done better with presenting since my first reply, but subjective is subjective.
 
@Archangel85

Would it be easily possible to add in a rule that allows you to disable certain focuses in a game? Like the MP Manchukuo example, or maybe you don’t want a German AI influencing Turkey. Honest question, since I have no idea if that could be done with a single reusable code sequence or if you’d have to go in and put in a special exception on every focus.
 
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).
This actually reminds me of an idea I had for the Spanish Civil War. Before and during the war each side could take on more (fringe) factions to increase support, at a price. It would be a great way to represent how Democratic nations would fear Republican Spain and the looming spectre of Communism. Republican Spain is too much of a wildcard for the Allies.
On the Nationalist side, Franco was far from the first choice for caudillo and he took on the Carlists as allies.
For the Nationalists, you could trade minor sovereignty (such as mineral mines) for support from the Axis. Otherwise, you could dissuade Sanjurjo's fashion sense and perhaps restore the monarchy. Or perhaps Mola could avoid Mountain-based-Assassination and ally with the Carlists to depose Franco?
On the Republican side, it was actually not a full-blown Stalinist state from the outbreak (How could HoI4 lie to us?!). It took years of Soviet influence and meddling for it to get there. In reality it was a coalition between moderate, left, socialist, and anarchist parties. Not to mention their unique situation with the Basque and Catalonia.
For the Republicans, you can sell your soul (and Gold) to the Soviets for near-direct intervention (Communist). You can try to take a hardline on going any far left and try to get the British or French to help you (Democratic). Try to balance plates, only to have them come crashing on your head (Historical). Or perhaps, give Largo Caballero total control (???).
 
what drama? you are the one making statement that are not factual and accusing people of having opinions that has no basis in reality. Quit trying to make this into something that it isn't. Either come up with something new or move on, as you have already expressed your opinion on this matter. This will be my last reply here as there is no point in reiterating what has already been said. My posting had nothing to do with my opinion, but to try and get you to understand that your opinions are not actual facts. You have done better with presenting since my first reply, but subjective is subjective.
Again you keep sidestepping and going on this stupid tangent. Anyone who just runs to the logic of "thats your opinion man" Or "Thats subjective" clearly are the types of people who don't wish to discuss things further no matter what. And it's showing rather apparently in this recent exchange. For someone who says this whole thing was pointless or accusing me of repeating myself you sure parallel that to the Nth degree.

I at least have offered some ingame examples or areas that I recognize need improvement because of the flaws within the AI and have inquired about them with you. You have yet to refute that in any capacity in regards to the game either then "uhhh your opinion ain't fact but I just had to let you know that cause I really have yet to offer anything to this discussion either then I say your wrong" well great really appreciate it guy.

What else do you want me to show or tell you? We are in principle discussing the logic in the Ai and how it is failing to effectively use the logic of the systems in play.

-Variants and army XP are meant to be created and used but not 14 of them for the same outdated piece of equipment that you can easily replace if you just wait 190 days or so
-Technology bonuses are supposed to be used but not wasted on equipment that doesn't provide the tactical edge the intended use of the bonus is for. Like not wasting it on 1938 equipment in the middle of 1938
-Trading with people is supposed to occur but if you trade 6-10 factories away with no semblance of equalizing that trade your just gonna hemorrhage your economy and its gonna slow as the game progresses which is not good if your trying to build a strong economic base before war breaks out.

These are basic premises of the systems logic and the AI is failing to uphold that. can you agree with that?
 
Last edited:
All of you calling or citing MacArthur for King: research the following on Google. MacArthur, Duty, Honor, Country. When you have finished listening to his speech, ask yourself, does this man really want to be a King? MacArthur was a consummate Flag Officer of the Untied States who took his oath to the Constitution seriously. Maybe those who aren't from the US do not realize the oath of a career soldier in the US is to the Constitution, not a person but to an ideal. Therefore a monarchy path in the US is ludicrous and totally unrealistic.
 
Cheers for the DD Archangel :D. I really like the way that we've got selective control of what might happen in our games - I'll probably still play most of my games with no rules (although that might change once they release - it's easy to theorycraft but no battle plan survives contact with release code :)) but I can imagine I'll really enjoy playing games, say, as the UK where the US was hardwired to go all Silver Legion, or as New Zealand where Eddie won't step down :).

Also, toughest DD for a ship pic in ages - guess I'll have to get a bit more used to this again :p Here's my best shot - a pic of Kaiser Wilhelm II on the (pre-dreadnought, but you'd have to think an Imperial Germany would be naming another ship after him :)) SMS Kaiser Wilhelm II :cool:

15643868117_43dcc2262c_o.jpg


Also seen a bunch of discussion about AI in the thread. In a game as complex as HoI4, with oodles and oodles (thousands, easily) of moving parts, there will always be room for improvement. If 1000 people were tasked with working on HoI4's AI, beyond the challenges of coordinating that (which would be a tough task in itself) they'd have plenty to keep them going. On balance, though, I find HoI4's AI, as AI (ie, the decision making of computer players, as opposed to buffs/debuffs to make things harder or easier) to be well above average in the strategy genre (and I have no idea how one would compare it to an RPG or a racer, for example :eek:). I'll always encourage the devs to do more work on the AI, as I think with all games, and strategy games in particular, the game itself is playing the computer (even in an MP game, there's always some AI going on), and so the tools of gameplay are to a degree only as good as the AI that uses them - but I've had a lot of fun playing HoI4 to date, and I'm really looking forward to playing MtG on the 28th :D.
 
Same comes for monarchy in Soviet Union/Russia. You can build a military autocracy without foreign intervention, if you act quick but careful during takeover. Sure, you will lose a lot of politically important people in the process, to prevent them creating opposition but, let's assume, that someone to replace them can be found.

Monarchy can be forced only through military defeat of Soviets. And it will hold only on the the fact, that "Tsar" would be heavily guarded by soldiers of foreign power, being at war with Soviets. Or, well, mercenaries from White emigrants. I predict heavy resistance to any attempt of "restoring old orders" - while there sure would be someone to collaborate with occupants and new monarchists, majority of people either supported bolsheviks during Civil war, because disliked status-quo before 1917 (and not willing to be purged in some long coming revenge of Whites), or were born after Revolution and Civil war, which means that they KNOW - bolsheviks were right, Whites are bad, Motherland calls to fight back.
Whites would've preferred some form of democracy over communism so NO the bolsheviks were not right as the bolsheviks were oppressive, killed many of their own people through gulags, famines and other methods and had an economic system that would inevitably crumble (I'm talking more about Stalin than Lenin as Lenin was willing to allow some Capitalism).
 
All of you calling or citing MacArthur for King: research the following on Google. MacArthur, Duty, Honor, Country. When you have finished listening to his speech, ask yourself, does this man really want to be a King? MacArthur was a consummate Flag Officer of the Untied States who took his oath to the Constitution seriously. Maybe those who aren't from the US do not realize the oath of a career soldier in the US is to the Constitution, not a person but to an ideal. Therefore a monarchy path in the US is ludicrous and totally unrealistic.
That is what I and others are saying as the only thing that could possibly happen is a Military Junta under MacArthur BUT the Constitution would still be upheld as FDR pointed out that there isn't really a limit on how many times a person can be elected but the two term maximum was started as a tradition by George Washington.
 
All of you calling or citing MacArthur for King: research the following on Google. MacArthur, Duty, Honor, Country. When you have finished listening to his speech, ask yourself, does this man really want to be a King? MacArthur was a consummate Flag Officer of the Untied States who took his oath to the Constitution seriously. Maybe those who aren't from the US do not realize the oath of a career soldier in the US is to the Constitution, not a person but to an ideal. Therefore a monarchy path in the US is ludicrous and totally unrealistic.
That's what I talk about - it is just understandable for you analogy. Just as you find idea of American monarchy completely impossible, so I see the restoration of monarchy in Russia of 1930-s.

Whites would've preferred some form of democracy over communism so NO the bolsheviks were not right as the bolsheviks were oppressive, killed many of their own people through gulags, famines and other methods and had an economic system that would inevitably crumble (I'm talking more about Stalin than Lenin as Lenin was willing to allow some Capitalism).
I speak about how situation is seen from the perspective of young post-Revolutionary generation in Soviet Union of 1930-s. For them "life is getting better under the wise guidance of Stalin" is an axiom. Were bolsheviks right or not is matter of other discussion.

And really, who in Soviet Union of 1936 gives a f*ck about what would have Whites preferred? They are just sore losers, sitting in emigration and dreaming about "Russia, they have lost". They have zero popular support inside the country.
 
First of all, the Whites weren't democrats in any real sense. They paid mild lip service to democracy to secure weapons and money from the Allies even while they pursued a program of forced Russification and suppression of minorities and worked extensively with proto-fascist paramalitaries like the Black Hundreds. The Whites also massacred anyone they suspected of being Bolsheviks sympathizers, sometimes to the point of arbitrarily executing thousands of workers at a time when they took a city as a pre-emptive measure. This actually began before the Red Terror, and is what prompted it. In that respect, it's difficult to argue that the Reds were any worse than the Whites.

There was also a paradox that even though the Whites were autocratic, the White leaders had basically given up on any idea of restoring the monarchy even if they secured victory, sensing that it was ultimately self-defeating and pointless given how incredibly unpopular and hated it was. IDK what's up with the obsession some people on this forum have with Anastasia. She's dead. Dead. Dead. Dead. Two bloody decades dead by this point. Is she the second coming of Jesus or something? Dead people don't come back to life. There's already perfectly good Romanovs for 1936 who were actually alive..


Also, for Lenin, it wasn't a matter of being able to "willingly allow some capitalism" so much as it was the impossibility of actually transcending capitalism, which existed as a cohesive global social system, in just the territory of the Soviet Union. You have to understand that Lenin's view of capitalism as a coherent global system was strongly based on Bukharin's view. His famous(or infamous, depending on who you ask) work Imperialism: The Latest Stage of Capitalism is not really original, but is actually based on Bukharin's earlier work from 1915, Imperialism and the World Economy.

Zombie, nobody ever believed such a fiction that life was getting better under Stalin; neither ordinary people, nor the party elite who lived a life of relative luxury(as Molotov himself admits in his recollections). Wages and living standards only began recovering to a pre-war level during the NEP, and Stalin's collectivization reduced wages to a mere fraction of what they had been in the late 1920's. Not even the true believers of Marxism-Leninism(unless they were foreigners who had never been to the Soviet Union) ever believed such a fiction that life was good, but rather that the terrible hellscape that they lived in was a necessary sacrifice for crash industrialization.
 
Normally I don't like to criticize, on account of the dev team has done a lot of great work to get us to this point. So with that context in mind, I'll temper my angst and merely say one could easily view the content of this DD as a lot of bells and whistles to distract from the deep underlying AI issues that still plague this game. What I'm trying to say is: I'm moderately disappointed not to hear more about meaningful fixes rather than focusing on what seems to largely be additional fluff.
 
Will it be possible to choose which ideological branch of the generic tree all the minor countries take? Or is it limited to bigger minors/custom focus trees?
 
@Archangel85 What exactly restrict the AI Plans the AI to. Only What Focus not to pick, or can it be also used for a tight list of Foci in a certain sequence to pick for the AI? And also only Foci or also research, building priorities, PP spending and similar?

Would be cool tobe able to mod in AI plans for specific "meta multiplayer plans" for nations, so you can test stuff in singleplayer, meanwhile the AI mostly plays like people would in multiplayer
 
How about Nikolai Bukharin for Democracy (Democratic Socialism)?
I don’t know about that since he was sort of a protégé of Lenin and more of a Leninist than a Democratic Socialist or even just a Socialist.
 
First of all, the Whites weren't democrats in any real sense. They paid mild lip service to democracy to secure weapons and money from the Allies even while they pursued a program of forced Russification and suppression of minorities and worked extensively with proto-fascist paramalitaries like the Black Hundreds. The Whites also massacred anyone they suspected of being Bolsheviks sympathizers, sometimes to the point of arbitrarily executing thousands of workers at a time when they took a city as a pre-emptive measure. This actually began before the Red Terror, and is what prompted it. In that respect, it's difficult to argue that the Reds were any worse than the Whites.

There was also a paradox that even though the Whites were autocratic, the White leaders had basically given up on any idea of restoring the monarchy even if they secured victory, sensing that it was ultimately self-defeating and pointless given how incredibly unpopular and hated it was. IDK what's up with the obsession some people on this forum have with Anastasia. She's dead. Dead. Dead. Dead. Two bloody decades dead by this point. Is she the second coming of Jesus or something? Dead people don't come back to life. There's already perfectly good Romanovs for 1936 who were actually alive..


Also, for Lenin, it wasn't a matter of being able to "willingly allow some capitalism" so much as it was the impossibility of actually transcending capitalism, which existed as a cohesive global social system, in just the territory of the Soviet Union. You have to understand that Lenin's view of capitalism as a coherent global system was strongly based on Bukharin's view. His famous(or infamous, depending on who you ask) work Imperialism: The Latest Stage of Capitalism is not really original, but is actually based on Bukharin's earlier work from 1915, Imperialism and the World Economy.

Zombie, nobody ever believed such a fiction that life was getting better under Stalin; neither ordinary people, nor the party elite who lived a life of relative luxury(as Molotov himself admits in his recollections). Wages and living standards only began recovering to a pre-war level during the NEP, and Stalin's collectivization reduced wages to a mere fraction of what they had been in the late 1920's. Not even the true believers of Marxism-Leninism(unless they were foreigners who had never been to the Soviet Union) ever believed such a fiction that life was good, but rather that the terrible hellscape that they lived in was a necessary sacrifice for crash industrialization.
Right on the money.