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

Gray_Lensman

First Lieutenant
70 Badges
Jul 16, 2003
237
195
Visit site
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Rome: Vae Victis
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
I'm currently trying to study the AI file contents, so I can possibly rework/improve them, as I consider them to be the major deficiency in the game as released. I am currently looking at improving the various England AI files first, as they are a pushover for a Human German player.

Anyhow, in the "ai_file_doc.txt" file, under the "admiral = {" section, there is a subsection "base = {". This does not seem to be used in any of the naval powers AI files. Is it even used in HoI2, or is it leftover code from a previous game? My reasoning is, if it works, can it be used to keep the main fleet of the British Navy based in more out of reach locations, such as Scapa Flow.
 
Fuagh...my mind is going...I can feel it...

IIRC, the base = section of the admiralty portion tells the AI what provinces to use as a base for invasions. Not being an AI type of guy, I'm not 100% positive about this though. More like 50-50. :p Hopefully someone a bit more versed in the innards of the AI files will drop by and enlighten us..
 
Mithel said:
I can see how the AI might have trouble with this though. If more ships exist than naval bases can handle it might do some stupid stuff.

actually a naval base can handle any size of navy. size only matters of org. regain and repair speed.
 
I'm just starting to play around with the AI as well, but if you are asking about this portion:

invasion = {
base = 0.1 #Relative modifier. (lower = specific targets much more important.)

I believe that it modifies the weighting for the target provs that are listed a bit farther down. As I said, I am far from an expert however.

One thing that I have found so far is that although there is a fair amount of documentation for modding events there seems to be far less for modding the AI. Has anyone done a command list or modding guide for HoI2 yet?
 
What they are referring to is a sub-parameter of the section called 'Admiral', which you'll find toward the top of the AI file. You can open a savegame file (.eug) and you'll find all the current AI parameters as well as other info on the various countries.

Anyhow, the AI_file_doc.txt is located in the DOCS subdirectory and has some rudimentary info on the parameters. Better yet is to google "Havard's HoI Hacking" something or rather and you'll get good info on the HoI 1 parameters, which still are the meat of the AI parameters.

So, Gray, you had it correct because here is a copy/paste from the AI_file_doc file:

#Which provinces to use as bases..
base = {
592
...
}
 
base does work I just did not have the time to put it in for all of the countries for 1.1


base in the admiral section tells the AI which bases he should "TRY" to use (This does not mean he will)

There is a different parm in the invasion section where the AI will use specified points for invasion massing.
 
Last edited: