• 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
16
41
  • Stellaris: Synthetic Dawn
  • Cities: Skylines Industries
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Megacorp
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV: No Step Back
  • Victoria 3 Sign Up
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Crusader Kings III
  • Stellaris: Federations
  • Stellaris: Leviathans Story Pack
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • 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
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave

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