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

yamato2cz

Lt. General
8 Badges
Sep 15, 2010
1.203
502
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings III
i made a testing mod, to better understand AI inside the exe which i cant see. i created 9 nations, divided existing nations between them and let them be with default_mixed AI.
started from 1936 with NO units. and unchanged IC/leadership/manpower
summary from 1944:
manpower reserves around 4 years of voluntary service in every country
ic:about 33% increase in all nations
army:consisted of 6 garrison brigades (if nation had islands it had garrisons there too) and many MANY (200-1000) infantry brigades, for every 2 INF another 2 supports which seems to be randomly selected (roughly same numbers of ART, AA, AT, AC, ENG) AND all units were reserves (found out that reserves generate literary zero threat) also found out that auto deployment of units doesnt work, it only assigns units to first theater.
some navy and shittone (like really, biggest nation had 150) of transports.
and planes
i traced all these in default_mixed.lua except how AI decides whether to build reserves or fulltime units.
and i didnt traced down where it gets signal to stop hurling out units.
anyone had luck with some of these? i know how to influence which units are build and so on, but i dont know how to influence number of total build units. and if anyone knew about way to tell ai to assign units to all theaters and to actually create new ones, it would be nice.
 

Wraith11B

Call Kenny Loggins, you're in the DANGER ZONE...
53 Badges
Dec 5, 2008
5.117
3.472
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Sword of the Stars
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis IV: Conquest of Paradise
  • Imperator: Rome
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Stellaris: Leviathans Story Pack
  • Stellaris: Federations
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: La Resistance
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: Expansion Pass
  • Stellaris - Path to Destruction bundle
  • Stellaris: Megacorp
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Conclave
  • Battle for Bosporus
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • Imperator: Rome - Magna Graecia
  • 500k Club
  • Crusader Kings II: Way of Life
  • Stellaris
  • Europa Universalis IV: Call to arms event
  • Darkest Hour
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
I thought that the individual nations' LUAs are what dictated how that particular country built it's military forces up?
 

marxianTJ

Lt. General
37 Badges
Apr 11, 2011
1.609
233
  • March of the Eagles
  • Tyranny - Tales from the Tiers
  • Stellaris: Synthetic Dawn
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Magicka
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Darkest Hour
  • Arsenal of Democracy
  • Cities in Motion
  • Hearts of Iron II: Armageddon
  • Crusader Kings Complete
  • Battle for Bosporus
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Bastards Wound
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Pillars of Eternity
  • 500k Club
  • Victoria 2
  • Stellaris - Path to Destruction bundle
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II
The AI can't tell the difference between support brigades - so that's why it selected them seemingly at random.

The AI will *only* build reserve units *unless* it is at war.

Those are the only things I really know of that can be helpful to you :(
 

yamato2cz

Lt. General
8 Badges
Sep 15, 2010
1.203
502
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings III
The AI can't tell the difference between support brigades - so that's why it selected them seemingly at random.

The AI will *only* build reserve units *unless* it is at war.

Those are the only things I really know of that can be helpful to you :(
so AI wont build full time units to prepare for offensive war? thats strange.
 

marxianTJ

Lt. General
37 Badges
Apr 11, 2011
1.609
233
  • March of the Eagles
  • Tyranny - Tales from the Tiers
  • Stellaris: Synthetic Dawn
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Magicka
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Darkest Hour
  • Arsenal of Democracy
  • Cities in Motion
  • Hearts of Iron II: Armageddon
  • Crusader Kings Complete
  • Battle for Bosporus
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Bastards Wound
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Pillars of Eternity
  • 500k Club
  • Victoria 2
  • Stellaris - Path to Destruction bundle
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II
They'll generally mobilize their reserves once their neutrality drops to a certain point - which is basically what a human who was trying to play optimally would do as well - since the only "cost" of only building reserve units is slightly lower XP per division than regulars - but the reserves are *much* cheaper both in raw IC cost and consumer goods maintenance costs - and generate less threat, so there's virtually no reason not to build reserves exclusively. Excepting when one is at war with the highest draft laws (requirement) as reserve unit costs are only *slightly* less than regular units - but with the same XP penalty (so building regulars isn't a bad idea) not to mention that countries at war pay very little IC into consumer goods so the "tax" as it were on regular units isn't as punishing.
 

yamato2cz

Lt. General
8 Badges
Sep 15, 2010
1.203
502
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings III
i ran a second test, with a little updated AI (so it wont spam transport ships) and now i started war.

i must say, i am truly amazed by AI (in a good sense)

original situation:
at first 3 countries against 1. all 3 mobilized before the defender. forces ratio about 2 attackers 3 defenders. attackers possesed 2 million soldiers mobilized. defender 3 million. about 100 planes on both sides. about 200 ships on both sides.

war:
war started as expected. defender didnt even fight and withdraw ALL of his forces. in about first 2 weeks. nothing major happened, defender retreated while covering his units with somehow effective air campaign (he bombed infra of the attackers) thats very first thing that was quite interesting, instead of its normal routine of ground bombing. both navies engaged in vicious fight in day one. total naval war was over after 6 months where attackers run out of ships and only several subs were present here and there, defender was in charge of seas. air forces would fight for rest of the conflict relatively stable.

(1942) durning first two months i found one thing-default AI gets big about of partisans. like, really alot. almost every week uprising, every month big one. and defender didnt even build them, they appeared out of thin air. they were nuisance at best, still pretty interesting. the war was in stalemate. and it will be for 2 next years until attackers run out of manpower. fight were vicious. rough estimate of looses is 100k per week all sides combined. only in fights, no major encirclement happened until end of war in europe. durning these 2 years, one thing impressed me. both attackers and defender launched one landing after another on unguarded islands in the mid as well as several landings seemingly at random spots behind enemy lines, which failed because AI uses regular infantry as default garrison unit. but it was interesting.

after 4 years of war (1946), there is a stalemate in asia as both armies get their manpower too quickly, so both sides manage to hold same armies they started with. europe was overwhelmed by defender after two attackers ran out of manpower (interesting was that AI was permanently keeping undermanned units 3 provinces from front, probably ready to get in fight after they get replenished)

conclusion about AI:it amazed me. defender was able to fight on 3 fronts at the same time, launch multiple landings (which one was in "great britain" one of attackers), organize properly its units and give them a lot of air support.

what didnt amazed me and even made me pretty sad, australia-philipines-japan-dutch indies, united under one territory, didnt garrison its territory and garrisoned only continent on which was their capital (australia) capital was "Nangalala" province in north of australia. they onyl send units after landings on one of their islands.

also-found out that if you carry out ground attack with 181 plane units at one single target, effect is quite substancial (i literary wiped 50k soldiers in 1 day)
 

WSnova

Colonel
60 Badges
Jun 12, 2014
1.153
2.156
  • Crusader Kings II
  • Pillars of Eternity
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Arsenal of Democracy
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Magicka
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • 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: Sword of Islam
  • Darkest Hour
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Call to arms event
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Warlock 2: The Exiled
Nice!

Keep us posted with your observations.

Good to see the AI is seemingly perfoming well. This reminds me of a test that was done on Lahf Life 2 where the AI was actually pretty competent when the level design didn´t confuse it
 

yamato2cz

Lt. General
8 Badges
Sep 15, 2010
1.203
502
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings III
update:from 1946 to 1948-territory of india, indochina and china waged trench war with defender (russia, germany and minors around those plus conquered rest of europe and africa) and noone was able to get upper hand. i calculated total loses around 25 million soldiers in all wars from 1936 to 1948 (counting even countless ships and whole air wing wiped out). final average experience level on asia/"russia" front was 80%.
funny is, "allies" won the game, even tho no allies were around, whole game was without factions.

note:this war was fought WITHOUT any armor/mechanised/battleships/carriers/strat bombers and with very few motorised as default AI doesnt produce them or considered them not needed. i will update the AI and see if it can fare better with armor and more ships. also, "defender" had about 800 wasted IC on average since it didnt build any units after fielding about 3 million soldiers, just pumped infra and after it upgraded some infra (about 100-200 provinces) it again spitted out few new units. not much regular units on any side except partisan units. also, defender managed to acquire 96 partisan units (those that dont eat supplies, retreated from enemy held provinces) and after upgrade, they were very formidable force.