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

KuromiAK

Private
70 Badges
Jun 18, 2017
14
37
  • Cities: Skylines Industries
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • 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
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Europa Universalis IV: Res Publica
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron 4: Arms Against Tyranny
  • Crusader Kings III
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Victoria 2
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords

Integrity​

I have verified my game files (on Steam)​

Yes

I have disabled all mods​

Yes

Required​

Summary​

AI score for barracks / naval base considers all pops to be non-accepted

Description​

In defines/00_ai.txt, there is this block:

Code:
	GOVERNMENT_BUILDING_STATE_ARMY_NON_ACCEPTED_POP_FACTOR = -250 # Multiply this score by fraction of discriminated Pops in the state
	GOVERNMENT_BUILDING_STATE_ARMY_ACCEPTED_POP_FACTOR = 250 # Multiply this score by fraction of accepted Pops in the state
	GOVERNMENT_BUILDING_STATE_NAVY_NON_ACCEPTED_POP_FACTOR = -250 # Multiply this score by fraction of discriminated Pops in the state
	GOVERNMENT_BUILDING_STATE_NAVY_ACCEPTED_POP_FACTOR = 250 # Multiply this score by fraction of accepted Pops in the state

The game currently always subtracts 250 from AI score for barracks and naval bases, which seems to mean it considers all pops to be non-accepted. 1.8's changes to discrimination might be the cause.

It's hard to say what effect this has on AI behaviors. I find AI to be less eager to build up military (especially navy) to the scripted sizes since 1.8, but it is hard to quantify.

Steps to reproduce​

Start a new observer game. Observe France / Prussia / Austria. (These countries are chosen to avoid qualification issues. Britain also works, though they start with Economic Imperialism strategy which gives extra score for naval bases.) Run the following console command:

ai_evaluate_government_construction building_barracks
ai_evaluate_government_construction building_naval_base

One can see that the scores are 750 as opposed to 1000 or 1250. We can confirm that "non-accepted pops" is the cause by modding those factors to 0, and observe that the score goes back to 1000.

Game Version​

1.8.6

OS​

Windows

Additional​

Bug Type​

AI (non-player characters)

Save Game​



Attachments​

Screenshot 2025-01-30 193720.png

Player Pain​

3

 
Upvote 0