[1.3.0][5256] specialized ai_templates have wrong names, game doesn't use them as result

  • 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
It seems patch 1.3 has added a set of customized divisions templates for the AI, for all major countries and such.

Unfortunately, the templates are wrongly named (or alternatively, there's a bug in code which puts together names that it's looking for) and as result, the AI uses the generic templates instead.

specifically, the names are in format divisiontype_default_TAG (e.g. infantry_default_ITA) while in order for the game to pick these instead of the generic templates, they have to be named in format divisiontype_TAG (i.e. infantry_ITA for the given example)

fairly easy to verify. This is evaluation score of the starting ITA template, in vanilla game, fresh 1936 start:

upload_2016-12-15_21-1-50.png

If you now change the weight parameter of target_template to 1.0 for the generic infantry_default template, re-launch and start a new game, the score becomes instead:

upload_2016-12-15_21-5-1.png

but the ITA AI shouldn't be giving a damn about changes to generic template, when it has its own... unless it's ignoring its specialized template to begin with.

Now change the name of specialized template to infantry_ITA, restarts, and hey, look:

upload_2016-12-15_21-8-10.png

not only the score is no longer 100% decided by the target_template match (a proper behavior when weight of specialized template target is set to 0.9) it's also different from what the vanilla game generates. That's because only now the ITA AI is actually looking at its specialized infantry template, instead of the generic one.

Just as last verification step, changing weight of generic infantry_default template back to 0.9, and setting weight of infantry_ITA to 1.0 instead...

upload_2016-12-15_21-14-30.png

yup, a proper behavior for once.
 
Upvote 0

podcat

Game Director
Paradox Staff
12 Badges
Jul 23, 2007
12.793
38.305
  • Europa Universalis IV
  • Hearts of Iron III
  • Semper Fi
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: Pre-order
  • Hearts of Iron II: Beta
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Paradox Order
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Together for Victory
Thanks!. reported internally and recently solved
 
  • 1
Reactions: