• 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:
Do you have any intention to proceed with Korea's states segmentation? Also, do you have any intention of deploying the South Korean government in exile in China and the North Korean government in exile in the Communist Party of China and the Soviet Union?
 
I don't understand why are people so angry abour altfocuses. It gives so much fun to the game even after 500 hours for me. I understand that some people love simulators and are playing them ,but if you are so in love in them there are still these routes for you. You can play what you want ,but most of the people are in love with altfocuses so why are you flaming them ?

Because it's around 75% the new content they make these days. Making that content requires a lot of time and effort; resources that could be spent improving on the WW2 experience instead. There's so many major events from the time period not represented that it's appalling: Pearl Harbor, the Winter War (represented only in name), the Continuation War, the Pacific island hopping campaign (no reason to do it), the Anglo-Russian invasion of Persia, etc.

There's also the fact that every time they make these bizarre fantasy trees, they have to go back and readjust the other trees (e.g. making AI FRA go fascist if GER goes democratic), which in itself is very time-consuming (I know this as a modder). It'd be better IMO if they focused on delivering a reasonably accurate portrayal of the era first before adding in the crazy stuff.
 
I tried to look trough all the posts since the dev diary didnt cover it but is there no mention on the AI:
  • suicide transports, not the feature for the player?
  • building correct fleets for mtg?
  • Building better division templates and continued work on unit roles?
  • Optimizing the AI industry?
  • front management and priorization?
These are the bigger issues (and the aircraft bug) that made me stop playing shortly after buying last dlc.

We've been merely told to look at a changelog. So far they're putting a lot of expectations on it in all this silence.
 
Because it's around 75% the new content they make these days.

That percentage feels like it's based a fairly narrow take on 'content' - I'd imagine something like the ship designer (which I'd at least consider as content, but if I'm wrong by all means call me out, there may be terminologies or categories I'm not familiar with) or naval terrain (which is a mechanic as well, but the terrain then needs to presumably be set out, art added and what-have-you) and mines all to have strong content elements. Most of the decisions we saw in WtT were also historically-based (I'll probably forget something, but apart from the nation-forming decisions, most of the decisions seem to be slanted towards the historical side of things).

I'd agree that a significant proportion of national focus trees is alt-history (and some of it pretty alt alt-history), but I'd argue a large amount (I wouldn't want to take a punt on a percentage - I'd need to have multiple spycams in Paradox Central for that :)) of work is going into 'core gameplay' content that makes the game more like WW2, rather than less.
 
That percentage feels like it's based a fairly narrow take on 'content' - I'd imagine something like the ship designer (which I'd at least consider as content, but if I'm wrong by all means call me out, there may be terminologies or categories I'm not familiar with) or naval terrain (which is a mechanic as well, but the terrain then needs to presumably be set out, art added and what-have-you) and mines all to have strong content elements. Most of the decisions we saw in WtT were also historically-based (I'll probably forget something, but apart from the nation-forming decisions, most of the decisions seem to be slanted towards the historical side of things).

I'd agree that a significant proportion of national focus trees is alt-history (and some of it pretty alt alt-history), but I'd argue a large amount (I wouldn't want to take a punt on a percentage - I'd need to have multiple spycams in Paradox Central for that :)) of work is going into 'core gameplay' content that makes the game more like WW2, rather than less.

Content as in focuses, events, decisions, etc. Not general mechanics that apply to the game all the time no matter how you play it.
 
Content as in focuses, events, decisions, etc. Not general mechanics that apply to the game all the time no matter how you play it.

Everything inside the scripts/text files is "content", so alot of it can be connected to features that applies to everyone all the time no matter how you play it.

This means content is everything from names of ships/modules, description of buildings, new technologies, translations, terrain/weather, tooltip information explaining how new mechanics work and so on.
 
Everything inside the scripts/text files is "content", so alot of it can be connected to features that applies to everyone all the time no matter how you play it.

This means content is everything from names of ships/modules, description of buildings, new technologies, translations, terrain/weather, tooltip information explaining how new mechanics work and so on.

Sure, but I was specifying which type of content I meant in my post. I guess the proper term would be flavour content.
 
Because it's around 75% the new content they make these days. Making that content requires a lot of time and effort; resources that could be spent improving on the WW2 experience instead. There's so many major events from the time period not represented that it's appalling: Pearl Harbor, the Winter War (represented only in name), the Continuation War, the Pacific island hopping campaign (no reason to do it), the Anglo-Russian invasion of Persia, etc.
I'd agree that a significant proportion of national focus trees is alt-history (and some of it pretty alt alt-history), but I'd argue a large amount (I wouldn't want to take a punt on a percentage - I'd need to have multiple spycams in Paradox Central for that :)) of work is going into 'core gameplay' content that makes the game more like WW2, rather than less.
I'd say it's at least four different categories they work on: vanilla game/engine fixes, new mechanics and historical/alt-history content. Out of the four alt-history content probably is most profitable because it requires less research than historical content, less coding than new mechanics and neatly belongs into the payed DLC compared to vanilla improvements. In fact the more fantastical the alt-history is, the better it fits the DLC concept because it is strictly optional/orthogonal to the main game. The things that I (and probably @Fulmen) hope they do either clearly belong into the base game or are at least harder to maintain and justify when putting them in a DLC (e.g. the historical part of the reworked japan NF tree went into vanilla).
 
Content as in focuses, events, decisions, etc. Not general mechanics that apply to the game all the time no matter how you play it.

Fair enough - from a modding perspective, this feels fairly narrow (and I'm still not sure when events/decisions are included it'd hold up - when I last looked through the decisions and event files, the impression I got (ie, I haven't crunched the numbers, so could be off) by far the majority of decisions/events that werent 'mechanical' (ie, decisions relating to civil wars, or generating war support, that tend to be the same for everyone) were based on historical events) - but there's no doubt that the focuses in particular, and some events and decisions have a fairly high proportion of alt-history stuff.

Say, for example, when WtT introduced skills for generals, and the content designers had to work out what they were and script them in - I'd argue strongly that this is content that, done well, makes for a more historically plausible game (and I imagine takes some time).

I'd also suggest caution before assuming how much work that takes though (for example, I'd be very surprised if 75% of a content designers' work was on alt-history, although Murphy's law says that now I've posted this, one of the content designers will probably post after this and prove me misguided o_O).

As @bitmode well outlines, it also seems that there's a fair interest in the consumer base for this stuff. Note, I'm not suggesting I'm particularly strong on the alt-history stuff myself - while I enjoy a good romp in ahistorical mode (and look forward to playing a tough UK game being able to use the rules in this dev diary to make sure the US stays out of the war), most of my games are in historical mode, and my modding is aimed at being 'boringly historically plausible' (well, it's not aimed at being boring, I do that naturally :p ). So on that note, I'm not suggesting there's anything wrong at all with calling for more historically plausible stuff :).
 
I think alt-history is one if the most important aspects of the game. It adds interesting scenarios and provide ground to some fun gameplay (because what's the point of having freedom to do anything in the game EXCEPT changing the way WWII plays out?). Damn! I even got to know HOI4 thanks to some meme videos (we all know what I'm talking about).

So all those who argue against alt-history must remember: are you truly free if you're only allowed to walk one way?
 
I think alt-history is one if the most important aspects of the game. It adds interesting scenarios and provide ground to some fun gameplay (because what's the point of having freedom to do anything in the game EXCEPT changing the way WWII plays out?). Damn! I even got to know HOI4 thanks to some meme videos (we all know what I'm talking about).

So all those who argue against alt-history must remember: are you truly free if you're only allowed to walk one way?
Well let’s just say that you are still free as the game is called a WWII game so it wouldn’t be the end of the world if in the first place there was no alternative history as you just wouldn’t have to buy the game if you didn’t want that but that isn’t the situation and the people that don’t like the alt history options don’t have to buy the game either as there is the core game which is quite historical and then the option to veer off for the crowds that either like just alt history or both.
 
There was a post by a dev last week explaining that the random decision making does not work how we all assume it does, it does some weird weighted RNG that results in decisions that have under a 30% chance (or something like that) never happening.
Damn... I was hoping to see AI Germany do something ahistorical when I turn "Historical Focuses" off.
 
I think alt-history is one if the most important aspects of the game. It adds interesting scenarios and provide ground to some fun gameplay (because what's the point of having freedom to do anything in the game EXCEPT changing the way WWII plays out?). Damn! I even got to know HOI4 thanks to some meme videos (we all know what I'm talking about).

So all those who argue against alt-history must remember: are you truly free if you're only allowed to walk one way?

I would have no problem with adding more alt history stuff, as I find it interesting, but the base WW2 experience feels incredibly neglected even if they're trying to remedy it. There's no Phoeny War, fall of France follows immediatly after the fall of Poland. No forming of Vichy France. Germany basically never invades Norway, or even attempt to use paratroopers to do it. Italy near instantly loses North Africa and you don't have a fairly interesting campaign there. Japan tends to completely win against China way too early. On historical. :eek:

Of course, experiences vary from time to time and they should be allowed to have some wiggle room, but some of the things that happen are just ridiculous.
 
First, the computer that plays go is not your average computer sitting under your desk, nor is it a fully tricked out server. Its a super computer. You cannot afford it. Paradox cannot afford it.
Second to make it work, would require this super computer to hook to yours and in a sense play multiplayer with you. It plays all the other countries and you play yours. It would have to do this for the entire community. Possible but expensive.

We would have to pay for said super computer's time. So its possible just not practical.
It was trained on a super computer.
When the GO AI played it was just running PC from my understanding.
Besides that I would say the AI has come a long way since the GO AI. It's now playing Star Craft 2 at an unbeatable level.
 
This feature doesn't seem to have been tested, many countries won't follow the behaviour you set.

The most egregious being the US that won't go fascist or communist, because it needs to hire an advisor to progress in those branches.
Similarly, setting the Dominions to alternate is useless as they won't prioritise those branches, and will be locked in the war by then.
 
It was trained on a super computer.
When the GO AI played it was just running PC from my understanding.
Besides that I would say the AI has come a long way since the GO AI. It's now playing Star Craft 2 at an unbeatable level.

As a SC2 fan, I have to clarify that AlphaStar (AlphaZero's name in the game) did beat human players in a quite impressive way, BUT with many restrictions to help the AI (just one mapa where it had trained, just one type of enemy which it had trained against...), and it showed very little flexibility, it just picked a build and stick with It until the end (although with incredible combat management). So it's not quite there yet. Yet...
 
I'd say it's at least four different categories they work on: vanilla game/engine fixes, new mechanics and historical/alt-history content. Out of the four alt-history content probably is most profitable because it requires less research than historical content, less coding than new mechanics and neatly belongs into the payed DLC compared to vanilla improvements. In fact the more fantastical the alt-history is, the better it fits the DLC concept because it is strictly optional/orthogonal to the main game. The things that I (and probably @Fulmen) hope they do either clearly belong into the base game or are at least harder to maintain and justify when putting them in a DLC (e.g. the historical part of the reworked japan NF tree went into vanilla).

This is part of what disturbs me. Greatly. The financial incentive is no longer to work towards delivering the game I purchased, it's to develop the game in other directions entirely. Paradox has historically done right by their customers but they're not immune to the broader trends in the industry, and I fear they'll eventually be forced to follow these trends by shareholders.
 
Last edited:
As a SC2 fan, I have to clarify that AlphaStar (AlphaZero's name in the game) did beat human players in a quite impressive way, BUT with many restrictions to help the AI (just one mapa where it had trained, just one type of enemy which it had trained against...), and it showed very little flexibility, it just picked a build and stick with It until the end (although with incredible combat management). So it's not quite there yet. Yet...
Don't forget the limitations they put on it as well.
Limited actions per minute.
Only interacting with units that are currently on screen.
If it had just been unleashed it would of ended the game in minutes.