• 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 - Officer Corps Recap & AI Improvements

Hi all, and welcome back to today’s developer diary!

It can be very easy to get super-focused on details when looking at individual systems or parts of features - something we often tend to do when writing developer diaries. Each week, we’re going to give you an overview of a core system that we’ve so far introduced in parts, and will include all of the changes we’ve made to that system over the course of development, since we first looked at it.

In addition to this, we’ll also take a look at some changes coming to the AI in No Step Back, so if that’s more your jam, feel free to skip to the end ;D

We’ll begin with an overview of the Officer Corps:

0.png

This image represents a near-final take on what the office corps screen will look like.

As you can see, the branch chiefs, theorist, and military high command have found their way to the officer corps screen, though for ease of access you may still view and appoint them in the country overview screen like before. This kind of change is the sort of thing that comes up during playtesting - while it made sense to collect similar things together, there was no good reason to change the player’s flow expectations.

The manner in which you’ll appoint advisors has changed a bit. We decided during the officer corps development process, to make a bigger deal out of the advisor ‘level’ (specialist, expert, genius) that all non-theorist advisors possess. In addition to adding a flat command power allocation (reduction of max command power) which is reduced by high advisor ranks, political power costs are raised by having a higher rank advisor.

Branch advisors now grant daily experience gain, meaning stacking your command cadre well is vitally important to the pre-war development of your military. To add to the choices, doctrines now cost experience rather than being something you spend a research line on:

1.png


For owners of No Step Back, military branches also possess several specialization options in the form of Military Spirits, which are also unlocked with experience:

2.png


We found during development that less was more when it came to creating a tightly balanced set of choices, and we’ve limited the number of options in each category to around six, with each category being strongly themed around Academy, Military Service, and Command.

To add slightly more nuance to choices here, we ensured that several options in each category would be made available based on situational factors - ideology, doctrine branch, and in rare cases, country choice, can all make new choices available.

The most important part of cultivating a strong officer corps, is the ability to give your trusted commanders advisory roles. Commander traits earned in active combat can make your characters eligible for specific advisory roles:

3.png


Characters promoted to advisory duties this way will continue to advance their advisory rank as their commander level increases - a highly experienced field commander will grow from specialist to genius over the course of their career.

Lastly, we are introducing the preferred tactics weighting system. This allows you to set a national, field marshal, and commander-level preferred tactic, which will weight the chances of picking said tactic in a combat situation. While the national preferred tactic can be switched out for a cost, selecting a preferred tactic for your commanders and field marshals is something that remains a permanent choice, representing their adherence to a particular doctrinal theory.

Of course, a host of minor changes accompany the officer corps, including new alerts, better resource tooltips, and adding some of this information into intel ledgers for opponent countries.

The AI

And now, on to a topic that is sure not to evoke strong opinions from anybody here: the AI.

During the development of La Resistance, work was begun on adding additional tools through an imgui that allow modders and users to see various internal data. In NSB, a significant amount of time was spent adding to this tooling and providing support for future AI development, as well as laying the groundwork for easier iteration on AI behaviour and more.

4.png

One of our new in-game tools for assessing AI font priorities. These tools will be available for modders, who can continue to fine-tune AI for their own needs through the use of strategies and defines. Here, you can see that the AI has evaluated the topmost defense order as desiring a minimum of 7 divisions, an 'ideal' count of 8, and a maximum count of 50. Defense orders tend to fluctuate quite heavily in 'ideal' unit counts: they tend to be quite elastic to make up for units not needed elsewhere.

While much of the work done here was investment for the future, we’ve also made some pretty big changes to the way the AI evaluates where it commits its troops and more.

While it can be hard to indicate objective improvements in terms of AI, there are several key areas we aimed to improve for this release:

Use of specialized divisions - the AI for assigning armor and special forces to appropriate fronts has received some improvement. The practical upshot of this means you ought to see fewer armor divisions assigned to inappropriate orders (garrisons, pure defensive lines etc), and mountaineers used in frontlines that have the right terrain types.

5.png

Did I mention the AI likes tanks?

Unit weight distribution - combined with the new supply system, the AI evaluation of where to put units has been totally overhauled. In practical terms, this is likely to manifest as seeing the AI commit more troops to defend key areas (ports & coasts), care more about the active supply situation on frontlines, and provide something slightly resembling a defense in depth for their own core territory, even during active frontline pushes elsewhere.


6.png


You can see that the AI considers supply carefully when assessing front unit distribution. There are certain circumstances in which the logical supply capacity of a front can be exceeded by the AI - notably when a defensive frontline is facing a numerically superior foe, or when the AI determines that it needs to win a war fast.

7.png

Once Moscow has fallen, the supply situation can get pretty dire as you push east.

Naval Invasions - logic for AI naval invasions has seen significant improvement. You should be encountering larger, less frequent naval invasions overall. The Ai will try to take advantage of weak points in coastal defences, and generally be more keen to invade to support theaters. This got so scary we had to turn the new capabilities down several times (of course, these can be tuned back up).

Counters - while it can be difficult to determine a ‘right’ time to switch templates or create a specialized template, we’ve improved logic for majors utilizing specialized divisions such as Tank Destroyers in relevant circumstances. You should see the AI care a little more about what you throw at it.

Buffer Fronts - Several AI strategies now involve the use of buffer fronts. These are specially defined area defense orders which will request a proportion of national divisions to man them. Where these differ from regular garrison orders, is that these fronts will ‘loan’ their unit distribution counts to nearby fronts or invasion orders.

For example, the heatmap below show the distribution of US troops several months prior to Overlord. The troops stationed in Alexandria and the UK are using buffer fronts, which will supply frontlines in europe, in order to avoid having to relocate troops from much further away. Here you can see the (somewhat anachronistic) defense of Greek territory being supplied by the buffer front in Alexandria, which is in turn supplied with divisions from the US mainland (arriving through the Mediterranean).


8.png

The locations and weightings of these are instructional only.
 
  • 195Like
  • 77Love
  • 10
  • 8
  • 2
  • 1Haha
Reactions:
will we see anymore tank designer stuff because I would like to know how lend lease and licences work and can I convert lets say crap lend lease into unique lets say at or aa guns or up armor (without converting them into your tank models) them with the new tank designer also this diary looks good improvements to AI are always welcome
 
Last edited:
  • 4Like
Reactions:
The AI stuff is always super interesting to read through and I'm really looking forward to the NSB patch notes.

There is one thing I’d like to ask: since you’ve reworked both Poland and the Soviets, surely you’ve changed the states so that the borders for the Molotov-Ribbentrop pact are accurate. I feel it would fit the theme of the expansion as also not be a major thing to implement.

While I'm here I'd like to also like to reiterate another comment I made on the "traiiiiins" diary that never got an answer:
I've got a map from the interwar period that displays (amongst other things) the principal railroads of europe. I noticed that some railways on the map are not present in-game, like the one beween Vologda and Archangel. If it's not too late into development, maybe you could take this resource into account. <3
 
  • 29Like
  • 3
Reactions:
Enjoyed the section on AI. Will we get a diary on performance improvements? If there is a regression with performance due to the new features, can we get some technical explanations on this as well? In either case, more communication with the players will improve reception of NSB.
 
5.png

Is that AI Bulgaria producing medium tank divisions?

If so thats great because I've only seen Germany and a few allied majors ever produce medium templates
 
  • 20Like
  • 6
  • 3Love
  • 1
Reactions:
Will this fix the AI assigning their divisions to hundreds of armies? It makes their frontlines completely chaotic, and it makes it so that most of their army doesn't actually get to have general buffs, it is also pretty cancerous to look at.
Also, plans on reworking how AI handles navies? Countless times have I invaded the UK as a country with little to no navy, just because the british AI couldn't bother putting ships in the straits, not even using the Strike Force order. My issue with that is that It makes the game too easy to just force peace the Allies by doing an invasion of the UK ( which also doesn't bother to have decent garrisons or a mainland defense army )
 
  • 21Like
  • 1
Reactions:
Dear Dev's - please add a command/switch/setting/whatever for units/fronts to ignore the auto-stop of movement when further movement may cause lack of supply.
 
  • 23Like
Reactions:
Also please consider exposing the players to the harsher AI naval invasions anyway or making this a toggle in game settings. If the AI is actually keeping up with good players, don't hobble the AI, let us experience lethal AI (for once).
 
  • 43
  • 16Like
Reactions:
Any changes to the yellow exclamation mark that causes front lines to freeze? many atime this has resulted in divisions not reacting or moving at all leading to easy encirclments and gaps in the front line
 
  • 10
  • 2Like
Reactions:
My test for the AI is going to be if UK AI is finally gonna keep a garrison on their isles at all times instead of leaving it undefended or only a skeleton garrison which happens like 90% of the time.

I also wonder if the AI is now actually gonna raid my convoys that are moving troops, i have not seem AI do that in like 2 years now i think or more. This means for an example (again) the UK isles, if you get one port secured via paratroopers, you can just move your whole army into their land via the English channel without any worries at all of it being sunk despite there being a huge navy presence there from the UK.
 
  • 10
  • 2Like
  • 1
Reactions:
I saw in the polish playthrough dev diary that :
1) AI wasn't actively prioritising railways defense (Caucasus screenshot, 7 divisions defending Rostov, 30 divisions fighting in Caucasus mountains)
2) AI wasn't evacuating by sea low supplied encircled coastal pockets

Questions after today :
3) Can we have more details on those defense orders?
4) Is there any change to tank usage other than front allocation priority?
5) How is the AI dealing with variable terrain combat width?
 
  • 13
  • 9Like
Reactions:
I'm wondering if there's a way to encourage AI to put divisions on fronts between two other nations. For instance, if Britain has military access to Poland before WW2 begins (and thus is not in faction Britain), is it possible to write an AI strategy that would encourage Britain to put units in Polish-German border to prepare against an upcoming German invasion?
 
  • 5
  • 4
Reactions:
Love the new changes to the AI especially the increased weighting of AI defending ports and supply centers. Some questions considering this the AI DD,

In your guys and gals test runs with NSB, how has Russia been doing against the Axis? Is it starting to (on historical) consistently start to push the Axis harder?

Has the Japanese AI been reworked to not, or limit, its invasions of India on historical. Especially considering that they'll often have a land route via Vietnam and Laos. (Naval invasions of Burma are fine and historical, its just annoying to see the India, Australia, and New Zealand all capitulate on historical).

How have the Allies been handling the supply changes, especially around D-day and other naval invasions. This tends to be their fatal weakness RN, so some comments on this would be helpful.

Are there any weights for the alt-history branches for Poland, the Baltics, or Russia? (For instance, if Russia goes monarchist, Poland will avoid the pro-Soviet communist tree?)

Has AI Spam been addressed at all with the current changes?

Finally, any news on an ETA for NSB? Can you share or hint when we'll possibly be hearing about some marketing info on NSB?
 
  • 9Like
  • 1
Reactions: