• 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.

Horst_Helios

First Lieutenant
3 Badges
Apr 8, 2009
289
0
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis IV
Why is it that if FRG or India (maybe some other countries, but saw theese ones) are released in 30-s, at the beginning of the game - their AI start producing all kind of military forces - infantry, garrisons, tanks, aircrafts, ships etc. But if they are released after the war, in 1946 or later - they only produce infantry. And how to fix this?
 

MartinBG

Darkest Hour Developer
2 Badges
Nov 16, 2007
5.634
257
  • Hearts of Iron II: Beta
  • Hearts of Iron IV Sign-up
When a country is released the engine searches for a suitable AI file starting from TAG_YYYY.ai where YYYY is the current year and goes down to YYYY - 10. If no AI file with that name is found the engine checks if there is a file named TAG.ai. If there is no such file either the game loads either minor_default.ai (for minors) or default.ai for majors (USA,ENG,GER,JAP,ITA,FRA,SOV).

The simplest fix is to make TAG.ai file for every country if you want unique AI files or edit default.ai and minor_default.ai. A more complex solution would be to make more yearly AI files (TAG_YYYY.ai).

Of course you can make a new AI file and load it via event to any country too.
 

MartinBG

Darkest Hour Developer
2 Badges
Nov 16, 2007
5.634
257
  • Hearts of Iron II: Beta
  • Hearts of Iron IV Sign-up
Do the yearly AI files update once that year is reached, or do you have to use ai events to set nations to their proper AIs?

By default it is disabled and countries change AI files only on demand (switched by events), but there is an AI setting that can enable AI to change AI file each year automatically (I don't remember what the name of that setting was).
 

Rotten Venetic

Field Marshal
6 Badges
Jun 10, 2006
4.289
10
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis IV
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • 500k Club
So, basically, with the current ai files, you need a small event to load, for example, ind_1936.ai, if india is released after '46?
 

Horst_Helios

First Lieutenant
3 Badges
Apr 8, 2009
289
0
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis IV
Another solution is to rename ind_1936.ai to IND.ai

I renamed all *_1936 files that way and it look like everething is fine now. But why this thing was in the game in the first place? Was it a bug or was there some purpose in not loading those AI's automaticly? Will this problem still be in DH after the next patch?
 
Last edited: