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

XYN

Guest
Haven't played for a year, I wonder, was this thing fixed?

The AI picking educators seemengly completely randomly, resulting in things like a Norse Germanic court healer assigned as an educator to the heir of the Carolingian realm and converting the heir to Norse Germanic.

The same has happened to me as a player, but I would manually reassign the educator, so it caused issues only to the AI.
 

Serenity84

Field Marshal
31 Badges
May 11, 2016
4.865
3.913
  • Stellaris
  • Stellaris - Path to Destruction bundle
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Stellaris: Federations
  • Stellaris: Nemesis
  • Stellaris: Synthetic Dawn
  • Stellaris: Distant Stars
  • Stellaris: Ancient Relics
  • Stellaris: Humanoids Species Pack
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Charlemagne
  • 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
  • BATTLETECH
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
It's not as much of a problem with Conclave, where the religion and culture can only be changed with Faith or Heritage Focus

Rulers switching religion through their court physician is a bigger issue. That can suddenly turn entire empires Jewish thus making them a target for crusades
 
X

XYN

Guest
It's not as much of a problem with Conclave, where the religion and culture can only be changed with Faith or Heritage Focus

Rulers switching religion through their court physician is a bigger issue. That can suddenly turn entire empires Jewish thus making them a target for crusades

What I've seen is rulers picking "heritage" focus when the heir is educated by a heathen foreigner.

I recall having this speculative thought about the potential bug source: the AI character sees that the heir is educated by a heathen foreigner, and selects the "heritage" focus in thinking that it will educate the heir in his (ruler's) culture/religion (maybe a wrong copypasted value somewhere), but in reality makes the heir to be educated in the educator's culture/religion.

UPD: oh, I see, it also might be like this - all the child focuses have values, and when the child is assigned a heathen foreigner educator, the "heritage" focus is available for the AI to pick. So occasionally it picks this focus and changes the heir's culture to something random.

Could anyone post the relevant code please, to confirm? Don't have a game right now.
 
Last edited by a moderator:
X

XYN

Guest
So if I am reading this correctly, it indeed can happen randomly - there are no checks preventing the AI to set the heritage focus, even if the educator isn't fit for it at all.

Code:
potential = {
            is_adult = no
            NOR = { 
                has_character_flag = guardian_asked_to_change_focus
                has_focus = focus_ch_heritage
                character = FROM
            }
            host = { character = FROM }
            OR = {
                liege = { character = FROM }
                prisoner = yes
            }
            OR = {
                is_landed = no
                is_liege_or_above = FROM
                prisoner = yes
            }
            NOT = {
                educator = {
                    culture = ROOT
                    religion = ROOT
                }
            }
        }

Code:
ai_will_do = {
            factor = 1
            modifier = {
                factor = 0.5
            }
        }

Code:
    change_wards_focus_to_heritage  = {
        only_playable = yes
        filter = court
        ai_target_filter = court
        ai_check_interval = 12
       
        from_potential = {
            is_playable = yes
            has_dlc = "Zeus"
        }
       
        potential = {
            is_adult = no
            NOR = { 
                has_character_flag = guardian_asked_to_change_focus
                has_focus = focus_ch_heritage
                character = FROM
            }
            host = { character = FROM }
            OR = {
                liege = { character = FROM }
                prisoner = yes
            }
            OR = {
                is_landed = no
                is_liege_or_above = FROM
                prisoner = yes
            }
            NOT = {
                educator = {
                    culture = ROOT
                    religion = ROOT
                }
            }
        }
       
        allow = { 
            NOT = { 
                age = 10
            }
        }
       
        effect = {
            set_character_flag = guardian_asked_to_change_focus
            if = {
                limit = {
                    OR = {
                        liege = { character = FROM }
                        prisoner = yes
                    }
                }
                hidden_tooltip = {
                    clear_focus = yes
                }
                set_focus = focus_ch_heritage
                break = yes
            }
            hidden_tooltip = {
                liege = {
                    letter_event = { id = ZE.2130 days = 5 }
                }
            }
        }
        revoke_allowed = {
            always = no
        }
        ai_will_do = {
            factor = 1
            modifier = {
                factor = 0.5
            }
        }
    }
 

Admiral_Obvious

Lt. General
98 Badges
Sep 25, 2016
1.328
44
  • Europa Universalis IV: El Dorado
  • Cities: Skylines Deluxe Edition
  • Divine Wind
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris: Humanoids Species Pack
  • Steel Division: Normand 44 - Second Wave
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Expansion Pass
  • BATTLETECH: Season pass
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Monks and Mystics
  • BATTLETECH
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Crusader Kings III
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Apocalypse
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normandy 44 -  Back to Hell
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV
  • Europa Universalis IV: Call to arms event
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Stellaris: Megacorp
  • Europa Universalis IV: Mandate of Heaven
  • Prison Architect
  • Stellaris: Lithoids
  • Imperator: Rome Sign Up
  • BATTLETECH: Heavy Metal
  • The Showdown Effect
  • Prison Architect: Psych Ward
  • Europa Universalis IV: Dharma
  • For the Motherland
I always assumed the AI always chose focuses randomly, especially the first set.

The only time it will change is via event from the educator to the parent as far as I know.
 
X

XYN

Guest
It hasn't been fixed but it really needs to be. The amount of times I've seen one of the Karling kingdom become Jewish is absolutely insane.

I filled a bug report, but in the meantime changing
change_wards_focus_to_heritage
ai_will_do to this in decisions/way_of_life_decisions.txt might help, haven't tested though.
Code:
ai_will_do = {
            factor = 1
            modifier = {
                NOT = {
                    educator = {
                        culture = FROM
                        religion = FROM
                    }
                }
                factor = 0
            }
        }
 

Torngasuk

Colonel
86 Badges
Feb 29, 2012
950
1.455
  • Crusader Kings II
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Charlemagne
  • Cities in Motion
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Divine Wind
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Crusader Kings II: Sunset Invasion
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Conclave
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • Crusader Kings III: Royal Edition
  • 500k Club
  • War of the Roses
  • Victoria 2
  • Europa Universalis III Complete
Rulers switching religion through their court physician is a bigger issue. That can suddenly turn entire empires Jewish thus making them a target for crusades
That actually explains a great deal. A recent game saw a crusade called against a Jewish emperor of Britannia, and I was terribly baffled as to how he even got there in the first place. Definitely something that needs a second look.
 

Admiral_Obvious

Lt. General
98 Badges
Sep 25, 2016
1.328
44
  • Europa Universalis IV: El Dorado
  • Cities: Skylines Deluxe Edition
  • Divine Wind
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris: Humanoids Species Pack
  • Steel Division: Normand 44 - Second Wave
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Expansion Pass
  • BATTLETECH: Season pass
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Monks and Mystics
  • BATTLETECH
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Crusader Kings III
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Apocalypse
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normandy 44 -  Back to Hell
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV
  • Europa Universalis IV: Call to arms event
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Stellaris: Megacorp
  • Europa Universalis IV: Mandate of Heaven
  • Prison Architect
  • Stellaris: Lithoids
  • Imperator: Rome Sign Up
  • BATTLETECH: Heavy Metal
  • The Showdown Effect
  • Prison Architect: Psych Ward
  • Europa Universalis IV: Dharma
  • For the Motherland
That actually explains a great deal. A recent game saw a crusade called against a Jewish emperor of Britannia, and I was terribly baffled as to how he even got there in the first place. Definitely something that needs a second look.
*Sigh* time to light the pyre.

The AI seems to do that about 80% of the time.
 
X

XYN

Guest
Oh, I remember now. I think I actually even talked to a dev that court physicians make AI weird.

Maybe the AI should convert through the doctor only when the religious authority is really low? And never to unreformed Pagan. It would make sense.