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

tom_jones

Lt. General
46 Badges
Dec 20, 2013
1.619
2.640
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Shadowrun: Hong Kong
  • Europa Universalis IV: Rights of Man
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
Don't know which of the issues reported for earlier build are considered fixed, so taking note of what seems to persist.

#1 appears to fail at fitness calculation

a new game started in 1.3, the AI evaluates starting ITA template as follows:

upload_2016-12-15_20-1-10.png

The first upgrade the AI attempts is to add artillery support. In theory, this would be considered a decent move. Unfortunately, the upgrade is then considered by the AI as quite an opposite:

upload_2016-12-15_20-1-29.png

You're seeing it right, the overall fitness score drops, even though target match score increases and the added battalion supplies more stat-wise than it takes:

upload_2016-12-15_19-31-8.png

end effect, the AI never switches its divisions to the newly produced template, and happily cranks out the old ones.

This behaviour raises two questions:

1) fairly obvious, how does the AI manage to arrive to such counter-intuitive fitness score?
2) why does the AI spend points on change to template, if the result is --by the same AI-- considered worth less than what it already has available? This is especially puzzling given the next issue:
 
Last edited:
  • 1
Reactions:
Upvote 0

tom_jones

Lt. General
46 Badges
Dec 20, 2013
1.619
2.640
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Shadowrun: Hong Kong
  • Europa Universalis IV: Rights of Man
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
#2 the AI makes... questionable... upgrade choices.

you may think it's weird the AI gets lower score for including artillery support. But it's actually also weird that it includes one in the first place.

Why? Because it does so even though it's explicitly told not to.

templates_ITA.txt
Code:
infantry_default_ITA = {
(..)
 target_template = {
  weight = 0.9
  match_value = 300.0
 
  support = {
   engineer = 1
   recon = 1
   field_hospital = 1
   anti_tank = 1
  }
 
  regiments = {
   infantry = 9
   artillery_brigade = 3
  }

as you can see, the AI is asked to aim for a template that doesn't have artillery support included. It has other, different things it could pick to place in the infantry division instead, like artillery_brigade, or another infantry battalion, and yet it picks something it's not asked to, even though it then doesn't consider it an upgrade itself.

(incidentally, that naming scheme might be wrong, in the previous build I had to name specialized templates as type_TAG without the 'default', for the game to actually notice them. just in case it is, I've removed the artillery support also from the generic template. The AI still included one as its first choice. Then I set the weight of target template to 1.0, to --in theory-- eliminate the chance of the AI choosing not to follow the target down to the t. Both for the ITA variant, and the generic one, just to be on the safe side. Didnt' do a damn thing, the AI still chooses to put the artillery battalion as the first upgrade, then evaluates it has worse fitness than what it started with, and doesn't use it.
 
  • 1
Reactions:

tom_jones

Lt. General
46 Badges
Dec 20, 2013
1.619
2.640
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Shadowrun: Hong Kong
  • Europa Universalis IV: Rights of Man
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
#3 replaces entire column with different unit type instead of adding a new column, when asked to include single unit of given type in the template

example: JAP starts with 12 infantry battalions in its infantry template. If the target_template includes a single unit of different type, like armoured or mobile battalion, a logical approach would be to either add this single unit in a newly created column, or if the AI has to switch existing column to different type (which will convert 3 infantry battalions to e.g. 3 tanks) at the very least the AI should remove superfluous units, as it will cost it no xp points to do so, and the result will match far better the actual target_template.

(for the record, the AI has more than enough xp points to spare to add a new column, it wasn't being held back by that)

Instead, the AI just swaps the entire column and calls it a day. The patch notes mentioned it should be now able to remove battalions from the template, but it doesn't appear like it wants to actually do it :/
 

tom_jones

Lt. General
46 Badges
Dec 20, 2013
1.619
2.640
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Shadowrun: Hong Kong
  • Europa Universalis IV: Rights of Man
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
#4 AI still replaces support battalions rather than add them

possibly related to

- Removed block from AI preventing it from adding more support than columns of regiments.

If that's the case, the bug still seems to be well and kicking:

upload_2016-12-15_23-30-4.png

upload_2016-12-15_23-30-17.png

(yes, the target template asks for both the recon and anti-tank supports)

edit: 2-column templates replace their supports instead of adding 3rd, and single column templates replace their single support so yeah, definitely seems related to that supposedly fixed block.
 
Last edited: