Hearts of Iron IV - PDX Chakerathe
Good morning/evening/night!

Summer break is over here in Sweden, most of the team is back from vacation and it's full steam ahead towards the finnish line. As mentioned in the last Swedish DD there’s two designers for the Swedish tree, so you might see both of us answer in the comments below. Without further ado

Communist Sweden
In game the path to communist Sweden is to the left side (we finally managed to have the communist path on the left and the fascist one one the right) of the democratic historical path where you instead choose to align with the Swedish trade union to unlock some communist advisors


When your support for the cause is high enough, you can flip communist with the leader Nils Flyg. This guy definitely does not fit into the HoI mold as he became disillusioned with the Soviet Union and became pro-axis.


In game this means that the non-comforming Flyg can join the Axis (for the rest of you historical figures it would really help us if you only stuck to your designated 4 allowed ideologies please)


Flygs grip on power will be challenged by Karl Kilbom after a period of time, where you can choose to align more with the allies for a less radical future.

As you flip communist the fascists are not all too pleased and will start gathering support for a counterrevolution, eventually also dragging in the military if you wait too long. Preventing a counter revolution will expose the big ringleaders of the plot.


The ringleaders are 3 of your generals, and you get to decide what to do with them. Either you prosecute them for treason using the legal system, which retires them permanently but gives stability, or you “promote” them away from power where they can do any real harm, keeping them as generals but getting a debuff.


In any case fascism is crushed in the country and we now get to a cornerstone of the communist branch, socialist reforms. All those toasters that you used to throw away? They are now used for something


You also get to enact different policies that relates to consumer goods, turning your civilian population into a potential powerhouse.


To the left there are two refuge focuses. The first one is quite self explanatory.


The second allows Sweden to get foreign communist advisors depending on what focus path other countries are going for. In this example Portugal has gone down the Iberian Wedding path, Poland has gone with the April constitution and Ethiopia has gone down the Fascist path, so these advisors will flee to Sweden and become available. This list will grow or shrink depending on what other countries pick as their focus path. Regardless, the player will always get the specialized Communist Military Council.


State planning committee and Establish Politibury both expand on the consumer goods decisions and give some needed factories, while the Starve the fascists/allies of iron embargoes your future enemy and increases your output at the cost of consumer goods.


The end of the tree deals directly with your neighbors, for Norway and Denmark you can more easily influence them and eventually topple their government in a civil war for that James Bond (™) spy experience.


The Finnish version is more about actively helping the Finns and use them as a buffer state against a potential angry USSR.


The capstone focus of the tree is when you offer everyone a base minimum income, which will help with newly conquered states compliance. At the end the path merges with the late game focuses as described in the first DD.

As you might see, a lot of this path is focused on using consumer goods in a beneficial way. You can control how much/little goods you spend, thus increasing the strength of Folkhemmet at the cost of your consumer industry.


In this extreme example I have gained a lot of bonuses


But it has also resulted in my civilian economy tanking.

Small changes since last time
There's some small changes since the last DD that I think I should mention, first of which are changes to how Hungershield works.

Previously if you were under a % stability threshold the game would roll a die each month, and if the player were unlucky enough they would get strikes. While being under the threshold had the desired effect being at unease I never liked putting the player at the hands of RNGesus for such a critical component.

The most likely outcome if a player got a bad roll would probably just be reloading from the latest autosave, which was something I wanted to avoid.


The system is now more deterministic. The player can always see the conditions for the strikes starting to tick down, and it gives you some time to adjust your strategy accordingly, which is a more fair system. If you have ever played Mexico this might look familiar to you.

The Nordic defense council branch also got some additions. There are some new focuses, and the entire branch now hooks directly into the tail end of the democratic branch so that it is no longer just a dead end..


And if you get to a fully powered council you get to build the ultimate battleship, but it might sink your economy for a little while.


If you are unlucky and no one accepts your invitation, you can now coax them to join, so even if no one initially joins its not game over and you have to restart.


And here is the council portrait itself



Raoul Wallenberg is now an advisor and operative and Sweden now gets a snow focused armored car


Resource balance boggolo two
Unrelated to Sweden here are some new numbers on the upcoming steel changes coming in the accompanying patch. All stats are at game start (‘36), with infrastructure and no production lines. The (start) rows are with the starting trade law of the country, while (total) is on closed economy.

Germany
PRE-AAT
AAT
Delta
Steel (start)
381
253
-128
Steel (Total)
508
284
-224
Austria
-
-
-
Steel (start)
5
15
10
Steel (Total)
10
29
19
France
-
-
-
Steel (start)
457
313
-144
Steel (Total)
914
625
-289
UK
-
-
-
Steel (start)
229
262
33
Steel (Total)
452
524
72

As you can see Germany and France still get axed in regards to some of their steel production, but not as bad as before. With the drastically reduced steel production presented in the first dev diary Germany had no option to go on any other law (unless spending massive amounts of resources on trade).

While making Germany more reliant on trade and reducing the overabundance on steel that the game has, essentially allowing Germany and France to bypass a lot of the resource aspect of the game was a goal, I did not want to force players to be on limited trade and that was the end all be all, which would be the same as free trade being the end all be all before.


Now a German player has the ability to go on Free Trade while still hovering on the green (barely) at game start with no additional mils (using the starting lines).

If the goal is to build civs for the first years of the game free trade might still be lucrative for you, but once you start ramping up military production you will probably be forced to change laws.

Vice versa if you are more into a mil rush build you might want to bump the law to export focus instead.

France instead has gained some steel from before, mostly due to Africa.


Northern Africa's deposits are now more abundant than before (note that you don’t access it all due to compliance at the start but can unlock it all with the Blum -Violette proposal). My hope is that it is gonna incentivize the Northern African campaign from both sides, with the allies wanting to secure the steel and the axis wanting to claim it.

As you can see the UK has also gained some resources, those are from the Sierra Leone and Ghana mines


This is to give a larger purpose to areas of Africa that historically in game has had little reason of justification to hold or conquer. The real value of the steel is a bit higher than is presented here but is lower due to occupation and compliance.



Germany also has 1 new focus where it can gain resource rights for Västerbotten, giving them a nice 49 tungsten, 55 steel and 21 chromium, and some nice buffs to Sweden’s economy



Additionally Operation Weserübung now has the additional effect of adding civilian factories if Germany controls Narvik. This hopefully will add some extra incentive to control the port. However this also gives the option of the UK launching Plan R 4


If the UK invades Narvik they can be given the option to go into Sweden, blow up the Swedish iron ore mines and get out. Successfully doing this will remove all the civilian factories that Germany has gotten from controlling Narvik, and sabotaging the Swedes mines. It will also give the UK the option to white peace Sweden to avoid a full scale Swedish war. This will only be available for a short period though as if you fail the operation the public will see through the charade of “we are just trying to help the Finns”, leading to a large drop in stability.

Currently the resource gained from compliance has also been increased from 60% to 65%, but as always balance is in flux and these might be changed later. Germany still starts with 2 extra civs.

Fascism and Monarchism
Let’s dive into the other ideological alternate history paths for Sweden, those being monarchism and fascism. It isn’t really accurate to categorize Swedish far-right activity during this period as simply fascist. The public were largely disdainful of Italian style fascism, seeing it as a foreign ideology trying to undermine the foundations of their nation, much the same as they viewed communism. Instead, many would-be fascists looked to German National Socialism for inspiration due to the strong cultural and economic links between Sweden and Germany. While this would make the movement more palatable to Swedes, it would have repercussions for the movement in the long-run.


The National Socialist movement in Sweden during this time period, while active and visible, was unsuccessful in gaining much traction with the public. There were many reasons for this, but we shall try to summarize the main points. Perhaps the primary factor that undermined them, and the communists for that matter, was the success of the Social Democrats in providing a strong social safety net and employment for the masses. This meant people were less likely to be radicalized in the same way that occurred in Germany or Italy following the Great Depression. Furthermore, there were multiple National Socialist parties all bickering with one another, keeping the movement fragmented.

Geo-political factors also contributed to undermining far-right activity. The historic animosity with Russia led many to see communism as a Trojan horse for Russia to gain influence over Swedish affairs. This prevented the communists gaining too much support and in turn prevented large numbers of would-be National Socialists joining movements to curtail them, as had occurred in Weimar Germany following WWI. Furthermore, Swedish neutrality over the previous century meant there was little appetite for the militaristic rhetoric that was so successful in other nations of the time period and there were no seriously pressing territorial disputes that could be called upon to galvanize the public against a common foe. Instead, most of the public supported the nation’s continued neutrality, save for the Winter War when many Swedes were prepared to fight in defense of their eastward neighbor, Finland.

As mentioned above, the far-right in Sweden were predominantly National Socialist in character and this would ultimately be the undoing of the far-right in Sweden. Once World War II began there was a shift in Swedish attitudes against National Socialism, due to the threat Germany now posed to Swedish independence. While there were those of a ‘Quisling’ persuasion who hoped to be swept to power by a German occupation of Sweden, the National Socialist Movement fragmented further and was forced to drop their militaristic uniforms and tone down their rhetoric to maintain any semblance of support among the public.

With regards to the monarchy during this period, King Gustaf V had reigned since 1907 and had overseen the transition of the nation from a highly centralized power structure around himself, to a constitutional monarchy with universal suffrage. While there was much controversy over the King’s actions during the time period and high proportion of aristocrats in positions of power in the military, there was no movement advocating for the return to absolute monarchy.


Given all of this, you might be wondering if we even bothered to make a fascist or monarchist path for Sweden. Well, rest assured that we did. And whilst it took some time to figure out how to do it, I think we were successful in creating some engaging alt-history narratives that give players an immersive experience into how different things could have been in little old Sweden. So let’s get into it.


As you’re well aware by now, the National Socialists and the monarchy both suffered from similar issues and their supporters shared common grievances. Therefore, the path to restoring the monarchy or installing a National Socialist regime are initially the same. By taking the focus ‘The Old Enemy Stirs’ players can use the public’s fear of the Soviet Union and communism to gain support for their nationalist agenda. Players will have to walk a tightrope between lowering stability enough to gain support for radical political changes, while not enraging the political opposition too hastily and triggering civil disobedience.

The first real choice in this path is between undermining the fascists or revoking the anti-militia laws. ‘Undermine the fascists’ will put the player on the path towards restoring the powers of the King and becoming an absolute monarchy once more.



Meanwhile, ‘Revoke the Anti-Militia Laws’ will lead to the National Socialist movement coming to power. The historical context for this focus comes from 1931 when the Munckska kåren, a paramilitary organization of anti-communists were unveiled which led to a debate over such groups among the public. In 1934, the government would outlaw such organizations before they could get out of hand. This prevented the same sort of street violence that occurred in other nations during the time period, but in this scenario we are reversing course. In game play terms, this will allow players to recruit Stormtrupper militia divisions. These will be crucial to the player should the nation be embroiled in a civil war.

The following focus is shared between the monarchist and National Socialist branch, but allows the player to increase support for their respective ideology via decisions. However, these boosts in support will come at a price. Once democracy is suspended, missions will be activated whereby the player must fulfill their obligations to these benefactors, or face severe hits to stability.




On the National Socialist Side, another path must be chosen between pursuing a purely independent movement in Sweden, or approaching the German Reich for support. Gaining the support of Germany will be the easiest path for changing ideology and offers great rewards, however it will come at the cost of becoming their puppet. At least for now…


Let's take a closer look at the ‘Delegation to Berlin’ sub-branch first. As you can see, there are multiple mutually exclusive focuses here that allow the player to tweak the nation to their play style. While many will be content to fight alongside the Axis as a puppet, there are those who enjoy the challenge of overthrowing an overlord, both options are viable here. The path culminates in a decision to become the master of Scandinavia in the German sphere of influence or to backstab the Germans by declaring an independent Swedish Reich and attempting to defeat them militarily. Timing your betrayal of Germany with the war turning against them can be extremely fun.


Over in the independent part of the branch, the path to power requires gaining enough support to orchestrate a putsch. With the country undergoing so much internal turmoil in such a short space of time, the following focus gives a boost to rebuilding the nation and preventing adversaries from undermining the new regime via espionage.


If a monarchist play through is more your interest, you’ll have noticed the ‘Meet With the King’ branch. This section was inspired by three main factors, one being the historic ties between the Swedish royal family and Germany. The King’s wife, Queen Victoria, was one of many royals of German descent for example. These historic ties lead many to believe that King Gustaf was somewhat sympathetic to Germany during the time period. This wasn’t helped by him writing to Hitler of his support for the invasion of the Soviet Union in 1941. The second factor that influenced our narrative was that the King invited the leader of the National Socialist party, Sven Olav Lindholm to the royal palace for a meeting. The third factor in our narrative was King Gustaf’s willingness to insert himself into political discussions despite the undemocratic nature of doing so. For example, in 1940 he threatened to abdicate as a means of forcing his preferred policy option during the ‘midsummer crisis.’
In our monarchist path, we’ve expanded on these factors so that we can see what might have happened if the King had been a little bit more politically active. The ‘Meet With the King’ focus triggers an event for unifying the nationalist movements of the nation under the banner of the King. Decisions are then unlocked to boost support for the King and the restoration of his authority. In order for this to work, the authority of the Social Democrats and the unions has to be undermined in the following focus. Finally, with enough support and destabilization, the King can return to power as absolute ruler.


Now, with either the King or the National Socialists in power, we come to ‘The Counter Revolution’ and the job of rebuilding Sweden upon a new ideology. This focus triggers the previously mentioned missions for fulfilling obligations to the supporters of your chosen movement as well as removing the Social Democrats’ Folkhemmet national spirit. This in turn allows the nation to more rapidly expand the military at the expense of stability. You may have noticed a number of hits to stability in this branch of the tree, this is because we wanted the process of changing Sweden from a well established, neutral democracy to a more authoritarian government to feel challenging.


Finally we come to the foreign policy aspect of this alt-history branch, which unsurprisingly allows for multiple expansionist opportunities at the expense of your neighbors. While we won’t go into every possible route today, the overarching theme for initial expansion is similar to Germany in the 1930s. These focuses give Sweden the opportunity to create an international crisis over small territorial disputes with their neighbors that ultimately undermines the integrity of said neighbors and allows Sweden to eventually conquer or puppet them.


However, we also have more co-operative methods of foreign policy here too. Sweden has the opportunity to approach the Allies and join their faction in exchange for Sweden’s historical overseas territories being returned to them. If accepted, Germany will be starved of much needed Swedish resources during the war and give Sweden territory in the Caribbean, Africa and India.


To the opposite end of this branch, we have opportunities to cooperate with the Axis and Finland in their dealings with the Soviet Union. This side culminates in Sweden gaining claims on the lands of Eastern Europe that once had historical ties to the Swedish vikings in centuries past. For those unaware, much of Russia and Ukraine was invaded or colonized by vikings who used the river networks of the region to navigate deep into the continent. While this may seem far fetched at first, it’s not unheard of for nationalistic movements to demand some sort of ownership of distant lands due to long forgotten or dubious claims. So it seems fitting that such a movement in Sweden would make such outlandish claims too. Plus, you’re still going to have to conquer and occupy those regions which offer interesting challenges.


The ultimate culmination of this branch though, is the creation of the Greater Nordic Reich. This focus allows Sweden to fully integrate the Nordic regions of their empire, gaining greater access to their resources and manpower.


That’s it for this week's dev diary! Hopefully you enjoyed this foray into alternate history Sweden and are looking forward to playing it for yourself in the not so distant future! Next week’s diary will be on alternate history Denmark with Daniel. See ya!



Aug 28, 2023
Hearts of Iron IV - PDX Chakerathe
Generals!

The Steam Strategy Fest is starting now! We've got the deals for you all to get the packs you want or need for up to 70 percent off!

Base Game

  • Hearts of Iron IV 70% off
  • Hearts of Iron IV: Starter Edition 70% off
Expansions
  • Hearts of Iron IV: By Blood Alone 30% off
  • Hearts of Iron IV: No Step Back 30% off
  • Hearts of Iron IV: Battle for the Bosporus 50% off
  • Hearts of Iron IV: Death or Dishonor 60% off
  • Hearts of Iron IV: Together For Victory 60% off
  • Hearts of Iron IV: Waking the Tiger 60% off
  • Hearts of Iron IV: La Résistance 50% off
  • Hearts of Iron IV: Man the Guns 50% off
Music & Model Packs
  • Hearts of Iron IV: Eastern Front Music Pack 50% off
  • Hearts of Iron IV: Eastern Front Planes Pack 50% off
  • Hearts of Iron IV: Allied Speeches Music Pack 50% off
  • Hearts of Iron IV: Radio Pack 50% off
  • Hearts of Iron IV: Sabaton Soundtrack 50% off
  • Hearts of Iron IV: Sabaton Soundtrack Vol. 2 50% off
  • Hearts of Iron IV: Allied Armor Pack 50% off
  • Hearts of Iron IV: Axis Armor Pack 50% off

Hearts of Iron IV - PDX Chakerathe
Generals!

Our next Feature Breakdown Video on Arms Against Tyranny is here!

With it comes a look at the Finnish Focus Tree and a look at the first Major Feature of the Expansion: The International Market!

Make sure to check out the video here




Hearts of Iron IV - PDX Chakerathe
Hej everyone, it’s me, Carlo! Katten has been staring at me from the other side of the office all morning, which can only mean one thing: it’s time for me to write another Dev Diary! Now, I’ve already talked about Historical Norway, the Joint Focus Tree, and modding stuff so there’s only one more thing I could write about, and that’s our favorite kamerat, LevTrotskij.

Known outside of Norway as Leon Trotsky, he was one of the most prominent members of the bolsheviks in the Soviet Union, renowned marxist theorist, known for his permanent revolution, and even more permanent exile. He was Lenin’s successor apparent, but Stanlin’s political maneuvering forced him out of the government and eventually out of the Soviet Union. After that, he was allowed to move to Norway, with the newspaper editor, Konrad Knudsen. So far so good.


The important thing for us happens in an August much like this one, in 1936, when Quisling’s thugs ransacked Knudsen’s house, and would’ve gotten away with it if it wasn’t because Knudsen’s daughter drove them off. So much for the tolerant left, smh. This event will be represented in AAT’s Norway, regardless of the path you take, and it’s the start of trotskij’s event chain.


Historically, the pressure from fascists and stalinists was too much for the Nygaardsvold Cabinet, so he was put under house arrest in a farm in Hurum, which, by his own account, was one of the worst periods of his life. After that he was allowed into Mexico, and received by the artist Frida Kahlo and her husband Diego Rivera. And then they lived happily ever after. Though he was, indeed, kicked out when Diego Rivera found out he was having an affair with Frida Kahlo and then was killed with an ice pick by a Soviet Union agent. Other than that he had a good time in Mexico by all accounts.


Of course, you don’t need to care about what happened historically. You can just imprison him, or send him to Mexico right away and use this altercation as a justification for increasing political repression, send him straight to Stalin, and even put him in government. Those last two are especially useful if you’re going the communist route by the way.

Communist Route?... Oh, right, that’s what I was supposed to write about, Alt History content for Norway! Since I already wrote about Trotskij's fate, let me tell you about the options you have for
turning Norway even redder.


First step, the labor movement needs to regain its momentum, with the ‘A Resurgent Labor Movement’ focus. This will set Norway on to the path of Communism, but which one? You can compromise with the NKP to adopt their Stalinist stance or prosecute them and let the Labor Party embrace Trotskij’s teachings, and if you kept him in Norway you’ll also have him as an advisor and general.



Each path has advantages and disadvantages: you can be beholden to the Soviet Union and their support, or you can go your own path and bring the Permanent Revolution to the rest of the world.

Regardless of your communist goals, you will need to rouse the proletariat in states that are industrialized enough, and when you’re ready you can trigger the communist revolution and fight in a civil war against the old Norway! Now of course, riling up the workers has its cost, because they’ll do some heavy damage to your factories and infrastructure once they rise up for the revolution.


Let’s take a better look at the ‘Rouse the Proletariat Decisions’. The first level will grant you the state once the civil war starts, but will leave your buildings in a pretty rough shape.


You can reduce this damage by bringing it to Level 2 and you will also be granted 2 irregular divisions.


Then if you’re really serious about that state you can fully rouse its working class, reducing the damage to the buildings and upgrading those troops to Militias.


And before you think “But Carlo, what if I just rouse the whole country and I skip the civil war?”, I’ll tell you now, that won’t work. You will have to choose carefully how to approach these decisions, as you can’t go over 20 Total Support for the Revolution and no matter what, the other side will have Oslo.

Ok now, let’s go over the things you’ll be able to do once you’ve seized the means of production in Norway. If your senpai Stalin noticed you, there will be plenty of improvements to your industrial base, manpower and a close collaboration with the Soviet Union, and even help them invade Finland. Maybe the Arms Against Tyranny thing is just aspirational.


If instead, you decided to go with uncle trotskij, as I said before, you’ll get an extra advisor and general, and that will put you behind the wheel of your very own communist faction, the Norintern with the focus ‘The Permanentest Revolution’. That’s what it’s actually called, and nobody has complained about it so I guess the name is final? Defend Finland, bring the war to Stalin, Sweden, Norway and even Hitler, bringing about a new, Trotskyist world order.


To summarize, with Stalin you’ll get soldiers and industry. With Trotsky you’ll get easy wargoals and offensive bonuses. Your pick.

Now let’s move slightly to the right. To the allied democratic branch, which starts with a fictional Vote of No confidence that the Nygaardsvold government loses. This branch is what happens when militaristic industry tycoons take control of the government. It overlaps somewhat with the democratic branch, except you can skip the whole Broken Gun thing and go straight for rearmament, so you’ll have more time to get ready for what’s coming, but at the cost of a lot of civilian industry.



This path leads to a more centralized government, so all the local preparations are pooled together, letting you start nation-wide initiatives, both during peacetime and war time.





It also overlaps a little with the Trotskyist path, just not the commie parts, and you’ll be able to join the allies instead of forming your own faction.


Let’s keep going, I have actual work to do, so I’m gonna skip the historical path. A few things have changed, but not enough to care, and the dog is still there so onwards to the fascist path, which, of course there is one.


It starts with The Stumbling Storting, in this reality the labor party fails to secure political stability for Norway, leaving the door open to fascists, and other undesirables.


Let’s go with Undesirable Elements #1, fascists. In this scenario Quisling is somewhat good at making people think he’s competent and that fascism is reasonable. The Nasjonal Samling will lurk in the shadows and build support for their agenda state by state, seeking support from the Fatherland League (A proto-fascist nationalist movement), industrialists, conservatives and even fascists abroad.


Eventually, you’ll reach a familiar focus, ‘Quisling’s Coup’, except this time, you’re ready for it, you have built the support needed to make the takeover as easy as possible for you and the foreign fascist invaders, whom you invited! Yes, in this path you can invite the most suitable fascist regime to invade Norway so you can take over the government and help them on their fascist crusade. Don’t worry if they say no, that rejection will also allow you to start the coup without them, who needs Hitler anyway.


The coup, as expected, will trigger a civil war in which, unlike the communist one, you’ll only control Oslofjord. That’s alright though, you prepared for this, which means that you can take over states where you built support in. If you only prepared base level support, you’ll get the state, not too shabby! But if you built more support, you will be rewarded for your efforts with a brand new Military Factory, and maybe even a couple of militias too if you fully prepared it.


This should put you on the right footing to start your fascist campaign, have fun making the world a worse place! Eventually, you’ll make it to your outlandish viking theme claims around the North Atlantic. Classic.


Now onto the last branch: The monarchist branch. For some reason a lot of people who want nordic focus trees also want a monarchist path, I can understand why, but I still think they’re wrong. I still made a monarchist path for Norway, whose king was reluctant to become their king, and even when he took over, by all accounts had no intention of becoming anything more than a figurehead.



This reality starts much like the fascist one, with the Storting devolving into chaos, and the Royal Chamberlain, Anker Peder Wedel-Jarlsberg uses this opportunity to build support for a more involved monarchy, with his steady hand at the helm of course. Obviously, he is not part of the real Wedel-Jarlsberg noble family that lives in Norway, any similarities are purely coincidental, etc. He’s not Wedel-Jarlsberg with a ‘-’, his is a minus symbol. Just do me a favor and don’t tell the legal team, they don’t need to stress about it.



Peder Anker will travel all around Norway proselytizing his monarchist cause, giving you bonuses for building defensive buildings, and adding more building slots, which will of course reduce the available manpower in the state, because, you know, they’re all busy being monarchists so they don’t have time to be soldiers.



Except… If you go all the way with your monarchism you get 2 free militia divisions, and once you get the power as the Regent of Norway you can edit to your heart’s content. They’ve been so converted that they are now soldiers for monarchism.



Once the Absolutist Regency is the rule of the land you’ll recruit the crown prince, Olav to join either the Navy or Army staff, since he was indeed employed in both during the war. In this case you’ll probably want him dedicating all his efforts on one thing, so he can become either a General or an Admiral and will allow you to specialize your country further.




And of course you can get an extra set of outlandish claims. Faroe Islands, Iceland, Greenland, part of Russia, and even part of Sweden. At the end you’ll be able to consolidate your kingdom to make it easier for Peder Anker to rule over his king’s land.



And well that’s it. Obviously there’s tons more to unearth if you ask the right questions ;) and many more things I’ll either keep as a secret for release or haven’t implemented yet, like the new Trotskij portrait and the [Redacted] of [Redacted]. Also, don’t forget to stay tuned for the Sweden alt history Dev Diary, where you’ll see how wildly different the world would be if Sweden had privately managed vacation instead of state managed ones.
Hearts of Iron IV - PDX Chakerathe
Esteemed Generals!

As the warmth of summer fades and the brisk embrace of winter draws near, we are thrilled to unveil the pre-order for the upcoming expansion, "Arms Against Tyranny." Mark your calendars for its grand release on the 10th of October.


To add an extra touch of coziness to the impending chill, by securing your pre-order, you will unlock exclusive access to the captivating bonus track, "Säkkijärven Polka". Oh, and did we mention? Sweden's getting a communist focus tree. Because who doesn't love a cozy ideological makeover?

https://store.steampowered.com/app/2183930/Expansion__Hearts_of_Iron_IV_Arms_Against_Tyranny/


Hearts of Iron IV - PDXKatten
Generals!

The moment has arrived for us to orchestrate a magnificent Q&A livestream scheduled for the 17th of August at 16:00 CEST.

If you have any questions eager for answers, we kindly request you to submit them using this FORM
Hearts of Iron IV - PDX Chakerathe
Hey everyone! I’m Plankie and one of the programmers on Hearts of Iron. Large parts of my work consists of feature work, bug fixing, and general game improvements. My absolute favorite part of game development is working with the AI and trying to make it more fun and interesting and immersive to play with. So, in this week’s dev diary I’ll focus on showing how the AI interacts with one of our major new features: The International Market

On a very high level, there are a few things that the AI needs to be able to do in order to utilize the market:

  • Gain market access so that we can see what other countries have put up for sale
  • Sell equipment to others, i.e. putting equipment up for sale on the market
  • Buy equipment from others, i.e. decide what we want to buy and how much

It also needs a surplus of equipment to sell, but fortunately the AI already knows how to produce equipment, so that just needs a little bit of tweaking!

The basis of the AI’s behavior on the International Market is the surplus/deficit it has of different types of equipment on the production stockpile (you know that list of equipment you see under the logistics tab). In general, it will try to buy equipment it has a deficit of and will offer to sell equipment it has a surplus of. This base behavior is then modified by other factors, such as AI strategies.


The familiar logistics tab showing what equipment is available on the production stockpile. The right-most number showing surplus/deficit is an important component of how the AI interacts with the International Market.

Putting things up for sale
Before anyone can buy equipment from the AI, it obviously needs to put equipment up for sale. Just like for a human player, it is only possible for the AI to add equipment to the market if it has a surplus of it. However, just because there is a surplus doesn’t mean that it’s a good idea to put all of that surplus up for sale. And if the surplus disappears and we start lacking equipment again, the AI should take the equipment off the market so it can use it itself instead. We basically want something like the following behavior:

  • If we need the equipment ourselves, don’t sell it
  • If we have a lot of surplus equipment, start selling some of it, but not all of it

The problem is that we need to define how much “a lot” is so we know when to start putting the things up for sale. This could depend a lot on what type of equipment it is and what situation our country is in. We could do something simple and say that “if we have a surplus larger than 200, then start selling”, but 200 infantry equipment and 200 strategic bombers are on completely different scales so using absolute numbers is not a good idea. But manually having to define the numbers for different equipment types and situations and countries also means a lot of work and balancing, so we at least want some good default behavior with a possibility of tweaking it.

In one of the first iterations of the market AI, we just made it put a certain ratio (say 20 %) of its surplus equipment up for sale. Despite the simple approach it worked pretty well, and since it’s simple it’s also easy to understand and debug. It had some shortcomings so we modified it a little bit, but it’s still the basis of how the AI puts things up for sale. Every market AI update, it calculates its total surplus of every equipment type (surplus on production stockpile + anything on the market stockpile) and makes sure that the ratio is correct.

This means that if the AI needs the equipment themselves, they have a total surplus of zero, so they put 0.2*0 = 0 equipment up for sale, i.e. they won’t sell it. They will also pull back anything already up for sale so they can use it themselves. And if they have a total surplus of 100 equipment, it will put 0.2*100 = 20 equipment up for sale (assuming a ratio of 20 %). So the more surplus it has the more it tries to sell, while still retaining a buffer in case things go sour and it starts needing the equipment itself. It also means that we don’t need to specify an absolute number for the threshold, it adapts itself to the situation.

But as mentioned, the approach had some shortcomings. The AI had a tendency to “trickle in” equipment on the market, trying to sell 1 rifle as soon as it had a surplus of 5 rifles, etc, and this felt very artificial and not very human-like. This led us to modify the algorithm so that the AI thinks about the equipment in batches instead of singular weapons. The size of a batch is roughly how much equipment can be delivered in one month using one factory for payment, so instead of seeing the AI try to sell 3 rifles, it now waits until it reaches around 350 rifles (one “batch” of surplus) before putting it up on the market.

At this point we had a reasonable default behavior for how the AI puts equipment up for sale, but we still needed the capability of tweaking it. This is done through scripted AI strategies! If you don’t know what AI strategies are in HoI4, it’s essentially a way that content designers and modders can tweak the AI behavior through script. With AI strategies, it’s possible to modify things like

  • how much equipment is needed before considering it as a surplus to sell on the market
  • the ratio of equipment the AI wants to put on the market
  • the min and max amount of equipment to put up for sale (overriding the default batch size)

With the AI strategies, it’s possible to for example prevent minor countries from selling all their trains (which aren’t used much before the war, so they are technically a surplus). It is possible to script Germany to not sell their huge surplus of weapons when preparing for war (fun fact: the German AI isn’t really aware that its going to end up in a big war until just a few months before the war breaks out, so without different scripted AI strategies they wouldn’t prepare enough for it). Needless to say, the AI strategies are a very useful tool for the designers!

Buying equipment
If the AI is lacking some type of equipment, it will consider buying it from the International Market (assuming there is someone offering to sell it). First of all it decides how many civilian factories it is willing to spend on purchasing equipment. Second, it looks at all the available equipment up for sale and determines if there is anything there that matches what it needs. After that, if the AI has factories to spend and there is equipment it wants to buy, it’s just a matter of deciding what to buy first and how much of it. This is done by computing a score for each potential deal, a score which takes into account:

  • Construction cost of needed equipment - we prefer to fix our biggest needs first
  • How good the equipment is - we prefer newer equipment with better stats
  • How expensive the equipment is - we prefer cheaper stuff
  • Applicable subsidies - if we have any subsidies we prefer to use them
  • Scripted AI weight - we want to make the content designers and modders happy


Example of a debug info window for the market AI. Here, the US AI has a deficit of 294 tactical bombers and almost 19k infantry equipment. It would prefer to buy bombers since the value of the lacking bombers is higher than the value of the lacking infantry equipment, but for the moment only British infantry rifles are up for sale, so the Americans start buying that instead.

So, now we know WHAT we want to purchase, but what about HOW MUCH? If we asked to buy 19k infantry equipment but only were prepared to pay with one factory, we could end up with a deal that would go on for years. In order to circumvent problems like these, the AI tries to create contracts that are neither too small nor too large by tweaking the amount of equipment and assigned factories until the completion time is acceptable. At the time of writing (and subject to change), the AI avoids purchasing more equipment than what can be delivered in about 10 months. It also uses the aforementioned “batch size” as a minimum limit of how much equipment to buy.


Paying off 19k infantry equipment with just one civilian factory takes a couple of years. Long-term weapon deals sound better before you do the math…

Of course there are also AI strategies for affecting how the AI purchases equipment. These are values that either go into the scoring calculation (affecting what the AI prefers to buy and from whom if there are multiple alternatives), or that tweak things like the threshold of when it wants to buy equipment of a certain type.

Establishing market access
Now we know how the AI puts equipment up for sale, and we know how they determine what they want to buy. But all that is for nothing unless the AI has access to another country’s market, so of course it needs some way of gaining market access.

This is a relatively simple process since market access is nothing more complicated than a normal diplomatic relation, like docking rights or a non-aggression pact. Naturally, the AI is able to respond to requests for market access if you ask them, but it would be a pretty boring feature if they never took the initiative themselves. The exact factors that go into the AI’s desire to have market access with another country are of course subject to change as we balance the game, but at the time of writing the most important factors are:

  • Diplomatic opinion - I really like this since I think opinion is underused in HoI4. It makes it possible for you to achieve market access with a country as long as you are prepared to spend some sweet PP to maintain it ;)
  • Trade influence
  • “Ideological” opinion - Some ideologies like other ideologies more or less
  • Competing factions - If the two countries are in different factions

The Soviet Union is really not interested in opening their market to those British capitalists.

The result of this is that you tend to see something similar to trade blocs, groups of countries that trade with each other (often along faction or ideological lines). The boundaries between the trade blocs are soft, however, and it’s often possible to convince countries to trade with you by raising their opinion of you.

Producing surplus equipment
Finally, since the International Market revolves around surplus equipment, it wouldn’t be much fun if there was no equipment to trade with. This ties into some changes to how the AI produces equipment, especially when they have already fulfilled all their own needs.

As some of you may have noticed, since BBA a lot of smaller countries have been bad at fully utilizing their military factories. As soon as they have fulfilled all their equipment needs (including having a buffer for any armies in the field), they stop using their military factories. This behavior was not introduced with BBA, but because of some other changes to how the AI recruits armies the problem became much more visible. The reason they stop producing equipment is because they technically don’t need any more equipment, and if you don’t have any equipment you need to produce… well, they simply stop producing it. As human players, we know that a war is looming on the horizon and there is no reason to stop production just because “we have enough”. It’s better to be prepared with a larger stockpile. And with the International Market making its entry, we can suddenly satisfy our inner capitalists and earn something by selling our surplus equipment.

So, now, when the AI gets to the point where they have enough equipment to fulfill their own needs, they start transitioning into a “surplus production state”. In this state, they once again use AI strategies to determine what to produce. This makes it possible to script countries to produce different types of surplus equipment, which in turn would allow for more “equipment diversity” on the market place and a larger selection of equipment to choose from.

Summary
We are nearing the end of this dev diary, so let’s quickly sum it up!

We did a little deep dive into the AI for the new International Market feature, and got to see the logic for how it puts surplus equipment up for sale and how it constructs purchase requests. In addition, we looked at the factors affecting how the AI opens up their market to other countries, and finally, how surplus equipment is produced when all other needs are fulfilled.

I hope you found it interesting to see some of the inner workings of the market AI, and I definitely hope you will enjoy playing the game with your new trade partners! In next week’s dev diary you will get to join some of our content designers for a closer look at how to mod Hearts of Iron! Stay tuned!
Hearts of Iron IV - PDX Chakerathe
Generals!

As many of you saw, the Open Beta has now been closed, but that doesn't mean we don't want to hear back from you. We know the Beta sparked a lot of discussion, but R&D want to hear directly from the frontlines!

If you participated in the Summer Open Beta, let us know in this survey below how its been for you.

Fill it out here -> https://pdxint.at/47f0R6O




That's all from us today, see you next week with yet another Developer Diary, and have yourselves a great weekend!



Hearts of Iron IV - PDX Chakerathe
Greetings all,

We’re still well in the middle of Swedish vacation time, but our regular schedule is not entirely interrupted: today’s diary covers a few of the smaller features being added in AAT.

Special Forces Doctrine

For a while now we’ve wanted to give countries a way of specializing their special forces. Numerous militaries relied heavily on these elite troops, and some branches of what HOI4 terms ‘special forces’ really found their identity during and around the second world war.

I believe we’ve reached a good saturation point for equipment designers, and I wanted to tackle special forces in a manner that better befits strategic capability over detailed stat modification. The prolonged global conflict our game portrays led to significant doctrinal development when it comes to how militaries employed elite forces, and this seemed like a good place to start.

In AAT, a fourth doctrine page has been added:


While any country can continue to make use of the Mountaineers, Marines and Paratroopers they are familiar with simply by researching the tech, doing so will unlock the ability to choose the corresponding special forces branch specialism.

These doctrines will also cost experience, however unlike the other military doctrines each branch here will use the corresponding experience type: Army XP for mountaineers, Naval XP for Marines, and Air XP for paratroopers.

The number of branch specialisms you can pick is limited however: initially to 1. Some nations earn the early ability to unlock a second (and final) branch specialism in their focus trees, but all nations that reach major status (this condition may be relaxed) will eventually earn the right to pick their second branch during the progress of the war.

Why not all 3? The [[i]Insert Country Here[/i]] military used all three of these!

Well, partly for balance reasons, and partly because these specialisms don’t represent the ability to use paras, mountaineers or marines, but the adoption of their capabilities as part of a military’s core doctrinal philosophy.

We also wanted these doctrine choices to do more than give you stat bonuses - although of course these will be present. We wanted the choices you make here to a) change how you consider designing your divisions, and b) potentially change how you actively use your special forces on a strategic level.

Mountaineers


Initially, elevating the mountaineers will grant you a mountaineer supply usage reduction (decimal bug noted!), and some general special forces combat bonuses. Importantly, you’ll also unlock the Rangers support company: a more combat oriented alternative to mounted recon, with higher organization, bonuses in adverse terrain types, and which can be further specialized by the mountaineers branch specialism in the following two doctrines:



Here you are making the choice to train your elite ranger companies in rough+hot or rough+winter terrain. I’ve added a Snow adjuster here (usable by mods, of course - although for performance reasons this does not extend to one adjuster per weather type I’m afraid) which means you can guarantee improved combat performance in your preferred terrain/weather type, and the support company now also exerts a division-wide buff to cold/hot acclimatization.

While I won’t go through each doctrine individually, we’re making use of the new battalion modifiers to adjust how you are incentivized to build divisions:


Mountain artillery gives you a good reason to use artillery support in your mountaineer divisions, at the cost of a mutually exclusive choice with the following option:


Balance subject to change, of course.

The final choice (and a choice which exists in each of the branch specialisms) is to decide between adopting your mountaineers as the core of your elite armed forces, or integrating them more widely:


The new modifier ‘[Type] Special Forces Cap Contribution’ is a dynamic modifier that reduces the cap consumption of that special forces type, when counted against your cap. So, you’ll be able to support significantly more mountaineers, but not more paratroopers or marines.


Here you’ll get bonuses that are more applicable to a wider array of circumstances. If you plan on unlocking and utilizing a second branch of special forces, this option might be more your cup of tea.

Marines


The initial investment for the Marines branch will net you some similar small bonuses to special forces efficacy, a slight increase in naval invasion capacity (which can be acquired quite early), and you’ll unlock the Pioneers support company.

Pioneers are used here to represent marine-trained sappers and combat engineers, and will be an alternative to standard military engineers. They have increased offensive capability in notably hostile environments, and can be further specialized as shore parties or jungle climate specialists:



The second mutually exclusive choice in the Marines tree is as below. If you want to go all-in on highly elite, more self-sufficient marines, you can go down the Marine Commando route. Marine commandos are a new line battalion that have the ability to perform quick hit & run naval invasions with an equally quick getaway plan - they no longer need to be at a port in order to exfiltrate. All battalions in a division must have this ability in order for it to function.


Further down the tree you can capitalize on the hit & run playstyle:


The alternative path will take you down a combined arms path, integrating more closely with other branches of your military:



Paratroopers


Elevating the paras will grant you tougher air transports, generally improved special forces, and the ability to field a small amount more paras.


The first choice you will have to make is which paradrop effect you want to adopt. Aimed at disruption, the recon and sabotage doctrine will damage enemy constructions after a successful landing.


Combat insertion is intended to augment well-planned general advances. If utilized carefully, this approach can put a hole in even the best fortified enemy frontline - however, the risk is high.\


It had to be done.

The mutually exclusive branches for paratroopers once again distinguish between a focus on paratrooper combat and support ability, or a wider combined-arms benefit:


Make use of signals companies to coordinate a hasty defense after a drop.


At the cost of increased training time, ensure that only the toughest recruits find their way to the paras.

Or choose to integrate the paras more traditionally into your armed forces:



And now, who doesn't like seeing some more of the 3D models?



















That’s all I have to show this time - as always, feedback on the details is encouraged; constructive criticism welcomed.

/Arheo
Hearts of Iron IV - PDX Midgeman
Generals!

Part Two of the Arms Against Tyranny Feature Breakdowns is here!

Find out more about Sweden's new content and take a closer look at the Joint Focus Trees

https://pdxint.at/3OxsrVw
...