CK III - Creating the Mozarabic Head of Faith title consumes gold but doesn't create the title

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

philanthropic19

Khan of Khans
36 Badges
Sep 13, 2013
449
738
  • Crusader Kings II
  • Cities in Motion 2
  • Magicka
  • Hearts of Iron III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Republic
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Age of Wonders III
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Crusader Kings III
  • Hearts of Iron IV Sign-up
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Magicka 2
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Cities: Skylines
  • Victoria 2
  • Stellaris
  • Cities: Skylines Deluxe Edition
Short summary of your issue
Creating the Mozarabic Head of Faith title consumes gold but doesn't create the title

Game Version
1.6.1

What OS are you playing on?
Windows

What platform are you using?
Steam

What DLC do you have installed?
Royal Court,

Do you have mods enabled?
No

Have you tried verifying your game files (Steam only)?
Yes

How much "pain" is this causing you?
10

Please explain the issue you experienced in the most condensed way possible
Clicking on the "Recreate Head of Faith title" button in the Faith menu as a Mozarabic ruler after having broken off from Rome consumes the 300 gold but doesn't create the title.

Please explain how to reproduce the issue
1. While playing as a Mozarabic ruler, use the "Break Off from Rome" decision. In my case, I went with the Pluralist route.
2. Ensure you control at least 2 Mozarabic holy sites with Mozarabic holders.
3. Go to your Faith screen and click on "Recreate Head of Faith title".
4. Notice that it consumes the gold but does not create the head of faith.

Is there anything else you think could help us identify/replicate the issue?
It happened in an Ironman Achievements enabled run. I have attached the save file.

I have attached a save game
Yes

Upload Attachment
File(s) attached
 

Attachments

  • Ramlid_867_01_01.ck3
    18,8 MB · Views: 0
  • 20220622030142_1.jpg
    20220622030142_1.jpg
    1,6 MB · Views: 0
  • 2
Reactions:

Mcgan

Colonel
18 Badges
Mar 19, 2020
1.191
1.728
  • Crusader Kings III: Royal Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Stellaris: Distant Stars
  • Stellaris: Synthetic Dawn
  • Stellaris: Leviathans Story Pack
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Stellaris: Nemesis
  • Stellaris: Humanoids Species Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Lithoids
  • Stellaris: Necroids
I've encountered this bug too. I'm not sure how to fix it exactly, but I tried something which made it work for Mozarabic only:
Removed because it was a bad idea
There must be a better way to go about it though.

Edit: Yeah, there is a better and much simpler way:
Okay, not sure this actually helps anything.
events\religion_events\faith_creation_events.txt
for faith_creation.0011 and faith_creation.0012, replace:
Code:
        create_title_and_vassal_change = {
            type = created                  <-- no title is created here
            save_scope_as = change
            add_claim_on_loss = no
        }
With:
Code:
        create_title_and_vassal_change = {
            type = granted
            save_scope_as = change
            add_claim_on_loss = no
        }

Edit2:
It seems the bug happens because the decision "Break with Rome" can be used even without holding any holy site, resulting in:
This is then causing a problem with set_up_dynamic_spiritual_hof_title_effect in \common\scripted_effects\00_religion_effects.txt, which requires you to control at least one holy site (or have someone who controls the holy site be a member of your new faith on creation, perhaps an independent wife or family member who converts with you could satisfy it), and if there isn't one then the HoF mechanic becomes bugged for you.
A holy site is necessary to be used as the HoF title's capital. It seems that if the title does not have a capital, it is considered invalid, and can't be held by anyone.
Real fix there: https://forum.paradoxplaza.com/foru...doesnt-create-the-title.1532713/post-28363362
 
Last edited:
  • 2
Reactions:

FunGaming

Captain
4 Badges
Nov 24, 2013
482
421
  • Cities: Skylines
  • Surviving Mars
  • Crusader Kings III
  • Crusader Kings II
I've encountered this bug too. I'm not sure how to fix it exactly, but I tried something which made it work for Mozarabic only:
common\scripted_effects\00_religion_effects.txt
Original:
Code:
create_head_of_faith_title_effect = {
    [...]
        # Spiritual HoF
        else_if = {
            limit = {
                faith = {
                    has_doctrine_parameter = spiritual_head_of_faith
                }
            }
            if = {
                limit = {
                    faith = {
                        NOT = { exists = religious_head_title }
                    }
                }
                trigger_event = faith_creation.0002 # Creates new dynamic title
            }
            else = {
                trigger_event = faith_creation.0012 # Re-uses existing title.
            }
        }

Make a small change to force the recreation of the title for Mozarabic:
Code:
        # Spiritual HoF
        else_if = {
            limit = {
                faith = {
                    has_doctrine_parameter = spiritual_head_of_faith
                }
            }
            if = {
                limit = {
                    faith = {
                        OR = {
                            NOT = { exists = religious_head_title }
                            this = faith:mozarabic_church
                        }
                    }
                }
                trigger_event = faith_creation.0002 # Creates new dynamic title
            }
            else = {
                trigger_event = faith_creation.0012 # Re-uses existing title.
            }
        }

There must be a better way to go about it though.
We need a fix like this for every faith, having the issue with 3 different faiths so far and I hope it gets a fix soon
 

FunGaming

Captain
4 Badges
Nov 24, 2013
482
421
  • Cities: Skylines
  • Surviving Mars
  • Crusader Kings III
  • Crusader Kings II
Looks like the issue is with this new code they use

The new code is this

faith_creation.0001 = {
hidden = yes

trigger = {
faith = {
has_doctrine = doctrine_temporal_head
can_create_temporal_head_of_faith_title_trigger = yes
}
}

immediate = {
set_up_dynamic_temporal_hof_title_effect = { NEW_HOLDER = root }
}
}

# Fired when you make a faith. Spiritual rel head setup
faith_creation.0002 = {
hidden = yes

trigger = {
faith = {
has_doctrine = doctrine_spiritual_head
can_create_spiritual_head_of_faith_title_trigger = yes
}

}

immediate = {
set_up_dynamic_spiritual_hof_title_effect = { CREATOR = root }
}
}


The old code how it use to be


faith_creation.0001 = {
hidden = yes

trigger = {
faith = {
has_doctrine = doctrine_temporal_head
can_create_temporal_head_of_faith_title_trigger = yes
}
}

immediate = {
faith = {
save_scope_as = my_faith
}
create_dynamic_title = {
tier = duchy
name = REL_HEAD_TITLE_NAME
}

create_title_and_vassal_change = {
type = created
save_scope_as = change
add_claim_on_loss = no
}
scope:new_title = {
set_destroy_if_invalid_heir = yes
set_no_automatic_claims = yes
set_definitive_form = yes
set_always_follows_primary_heir = yes
change_title_holder = {
holder = root
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
faith = {
set_religious_head_title = scope:new_title
}
add_realm_law_skip_effects = same_faith_succession_law
scope:new_title = {
generate_coa = religious_title
add_title_law = temporal_head_of_faith_succession_law
}
}
}

# Fired when you make a faith. Spiritual rel head setup
faith_creation.0002 = {
hidden = yes

trigger = {
faith = {
has_doctrine = doctrine_spiritual_head
can_create_spiritual_head_of_faith_title_trigger = yes
}

}

immediate = {
faith = {
save_scope_as = my_faith
}
create_dynamic_title = {
tier = duchy
name = REL_HEAD_TITLE_NAME
}

create_title_and_vassal_change = {
type = created
save_scope_as = change
add_claim_on_loss = no
}

if = {
limit = {
any_theocratic_vassal = {
faith = root.faith
}
}
ordered_theocratic_vassal = {
limit = {
faith = root.faith
}
order_by = head_of_faith_selection_weight
save_scope_as = new_religious_head
}
}
else = {
create_character = {
location = root.capital_province
age = { 30 50 }
gender_female_chance = root_faith_clergy_gender_female_chance
trait = education_learning_4
faith = root.faith
culture = root.culture
learning = { 14 22 }
save_scope_as = new_religious_head
}
}

scope:my_faith = {
random_holy_site = {
limit = {
county.holder = root
}
alternative_limit = {
county.holder = {
target_is_liege_or_above = root
}
}
save_scope_as = holy_site
}
}

scope:new_title = {
set_capital_county = scope:holy_site.county
set_landless_title = yes
set_destroy_if_invalid_heir = yes
set_no_automatic_claims = yes
set_definitive_form = yes
set_always_follows_primary_heir = yes
change_title_holder = {
holder = scope:new_religious_head
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
faith = {
set_religious_head_title = scope:new_title
}
scope:new_title = { generate_coa = religious_title }
scope:new_religious_head = {
add_realm_law_skip_effects = same_faith_theocratic_succession_law
}
}
}


Might be that this change in the faith_creation_events is what is causing this, I'm going to try and see what the old code will do
 

Mcgan

Colonel
18 Badges
Mar 19, 2020
1.191
1.728
  • Crusader Kings III: Royal Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Stellaris: Distant Stars
  • Stellaris: Synthetic Dawn
  • Stellaris: Leviathans Story Pack
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Stellaris: Nemesis
  • Stellaris: Humanoids Species Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Lithoids
  • Stellaris: Necroids
No, that's not the problem, faith_creation.0001 and faith_creation.0002 aren't called here. "Recreate Head of Faith Title" is calling faith_creation.0011 or faith_creation.0012, and it's those 2 that aren't working for some reason.
 

FunGaming

Captain
4 Badges
Nov 24, 2013
482
421
  • Cities: Skylines
  • Surviving Mars
  • Crusader Kings III
  • Crusader Kings II
Well that old code didnt do it either, so for some reason its a button that simply doesnt work as it should, yes it takes your gold but it doesnt give you the title
 

FunGaming

Captain
4 Badges
Nov 24, 2013
482
421
  • Cities: Skylines
  • Surviving Mars
  • Crusader Kings III
  • Crusader Kings II
No, that's not the problem, faith_creation.0001 and faith_creation.0002 aren't called here. "Recreate Head of Faith Title" is calling faith_creation.0011 or faith_creation.0012, and it's those 2 that aren't working for some reason.
I hope it can be fixed, I asked Morven on Steam if he can take a look too
 

Mcgan

Colonel
18 Badges
Mar 19, 2020
1.191
1.728
  • Crusader Kings III: Royal Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Stellaris: Distant Stars
  • Stellaris: Synthetic Dawn
  • Stellaris: Leviathans Story Pack
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Stellaris: Nemesis
  • Stellaris: Humanoids Species Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Lithoids
  • Stellaris: Necroids
Well that old code didnt do it either, so for some reason its a button that simply doesnt work as it should, yes it takes your gold but it doesnt give you the title
If you really just want a fix that works, there's a very simple solution: make create_head_of_faith_title_effect always use either faith_creation.0001 or faith_creation.0002, because these 2 work.

So basically:
common\scripted_effects\00_religion_effects.txt
In create_head_of_faith_title_effect
Replace:
Code:
        # Temporal HoF
        if = {
            limit = {
                faith = {
                    has_doctrine_parameter = temporal_head_of_faith
                }
            }
            if = {
                limit = {
                    faith = {
                        NOT = { exists = religious_head_title }
                    }
                }
                trigger_event = faith_creation.0001 # Creates new dynamic title
            }
            else = {
                trigger_event = faith_creation.0011    # Re-uses existing title.
            }
        }
        # Spiritual HoF
        else_if = {
            limit = {
                faith = {
                    has_doctrine_parameter = spiritual_head_of_faith
                }
            }
            if = {
                limit = {
                    faith = {
                        NOT = { exists = religious_head_title }
                    }
                }
                trigger_event = faith_creation.0002 # Creates new dynamic title
            }
            else = {
                trigger_event = faith_creation.0012 # Re-uses existing title.
            }
        }
With:
Code:
        # Temporal HoF
        if = {
            limit = {
                faith = {
                    has_doctrine_parameter = temporal_head_of_faith
                }
            }
            trigger_event = faith_creation.0001 # Creates new dynamic title
        }
        # Spiritual HoF
        else_if = {
            limit = {
                faith = {
                    has_doctrine_parameter = spiritual_head_of_faith
                }
            }
            trigger_event = faith_creation.0002 # Creates new dynamic title
        }

The only "problem" (as far as I know) is that it will create a new title instead of using the old one.
 

Mcgan

Colonel
18 Badges
Mar 19, 2020
1.191
1.728
  • Crusader Kings III: Royal Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Stellaris: Distant Stars
  • Stellaris: Synthetic Dawn
  • Stellaris: Leviathans Story Pack
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Stellaris: Nemesis
  • Stellaris: Humanoids Species Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Lithoids
  • Stellaris: Necroids
Tried that but it doesnt work, now when you click the button it takes your gold but also changes the title but it still doesnt give it to you
Oh, I didn't try it with temporal HoF. Will have to test that.

Edit: Can you share your save? I can't reproduce the bug.
Edit2: So it was just a mod problem. No wonder I couldn't reproduce it.
 
Last edited:

Mhoirbheinn

Captain
66 Badges
Sep 17, 2020
402
898
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Victoria 2: Heart of Darkness
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Victoria 3 Sign Up
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Ship Simulator Extremes
  • Sword of the Stars
  • Victoria 2
I think FunGaming and I have worked out that, at least in some circumstances, the bug is being caused by modding holy_sites_to_create_spiritual_head_of_faith to 0 from \common\script_values\02_religion_values.txt

This is then causing a problem with set_up_dynamic_spiritual_hof_title_effect in \common\scripted_effects\00_religion_effects.txt, which requires you to control at least one holy site (or have someone who controls the holy site be a member of your new faith on creation, perhaps an independent wife or family member who converts with you could satisfy it), and if there isn't one then the HoF mechanic becomes bugged for you.

Code:
    # Try to land the new title.
    scope:my_faith = {
        random_holy_site = {
            limit = { county.holder = $CREATOR$ }
            alternative_limit = {
                county.holder = { target_is_liege_or_above = $CREATOR$ }
            }
            alternative_limit = {
                county.holder = {
                    faith = $CREATOR$.faith
                    is_ai = yes
                }
            }
            save_scope_as = holy_site
        }
    }

For people who want to play with a zero holy site requirement, I've written and tested a new set_up_dynamic_spiritual_hof_title_effect that will land the HoF title even if you don't control a holy_site, and should enable you to then create a HoF or have one created when you create/reform the faith. It won't work on existing saves, you'll have to use the console to try to trigger events as suggested above.

Save the new trigger within a mod folder structure of \common\scripted_effects\my_zero_holy_sites_HoF_mod.txt

Code:
#Save to a folder structure of \common\scripted_effects\my_zero_holy_sites_HoF_mod.txt

set_up_dynamic_spiritual_hof_title_effect = {
    # Sort scopes & starting processes.
    faith = { save_scope_as = my_faith }
    create_dynamic_title = {
        tier = duchy
        name = REL_HEAD_TITLE_NAME
    }
    create_title_and_vassal_change = {
        type = created
        save_scope_as = change
        add_claim_on_loss = no
    }
    # Nab a suitable character.
    if = {
        limit = {
            any_theocratic_vassal = { faith = $CREATOR$.faith }
        }
        ordered_theocratic_vassal = {
            limit = { faith = $CREATOR$.faith }
            order_by = head_of_faith_selection_weight
            save_scope_as = new_religious_head
        }
    }
    else = {
        create_character = {
            location = $CREATOR$.capital_province
            age = { 30 50 }
            gender_female_chance = root_faith_clergy_gender_female_chance
            trait = education_learning_4
            faith = $CREATOR$.faith
            culture = $CREATOR$.culture
            learning = { 14 22 }
            save_scope_as = new_religious_head
        }
    }
    # Try to land the new title.
    scope:my_faith = {
        random_holy_site = {
            limit = { county.holder = $CREATOR$ }
            alternative_limit = {
                county.holder = { target_is_liege_or_above = $CREATOR$ }
            }
            alternative_limit = {
                county.holder = {
                    faith = $CREATOR$.faith
                    is_ai = yes
                }
            }
            #Modded new catch-all limit even if you don't control any holy sites
            alternative_limit = {
                county.holder = {
                    is_ai = yes
                }
            }
            save_scope_as = holy_site
        }
    }
    if = {
        limit = { exists = scope:holy_site }
        scope:new_title = { set_capital_county = scope:holy_site.county }
    }
    # Configure final effects.
    hidden_effect = {
        scope:new_title = {
            set_landless_title = yes
            set_destroy_if_invalid_heir = yes
            set_no_automatic_claims = yes
            set_definitive_form = yes
            set_always_follows_primary_heir = yes
            change_title_holder = {
                holder = scope:new_religious_head
                change = scope:change
            }
        }
    }
    resolve_title_and_vassal_change = scope:change
    faith = { set_religious_head_title = scope:new_title }
    scope:new_title = { generate_coa = religious_title }
    # We enclose the law safeguard in an if statement to prevent errors when this is only _about_ to be fired.
    hidden_effect = {
        if = {
            limit = { exists = scope:new_religious_head }
            scope:new_religious_head = {
                if = {
                    limit = {
                        NOT = { has_realm_law = same_faith_theocratic_succession_law }
                    }
                    add_realm_law_skip_effects = same_faith_theocratic_succession_law
                }
            }
        }
    }
}
 

Attachments

  • my_zero_holy_sites_HoF_mod.txt
    3,2 KB · Views: 0
Last edited:
  • 1Like
  • 1
Reactions:

Ultrwga

Recruit
Aug 22, 2022
7
5
I've encountered this bug too. I'm not sure how to fix it exactly, but I tried something which made it work for Mozarabic only:
Removed because it was a bad idea
There must be a better way to go about it though.

Edit: Yeah, there is a better and much simpler way:
events\religion_events\faith_creation_events.txt
for faith_creation.0011 and faith_creation.0012, replace:
Code:
        create_title_and_vassal_change = {
            type = created                  <-- no title is created here
            save_scope_as = change
            add_claim_on_loss = no
        }
With:
Code:
        create_title_and_vassal_change = {
            type = granted
            save_scope_as = change
            add_claim_on_loss = no
        }
I tried your fix, changing change to granted, yet creating a new faith head simply consumes gold. BTW mozarabic papacy has no land. Are the two things linked?
 

Mcgan

Colonel
18 Badges
Mar 19, 2020
1.191
1.728
  • Crusader Kings III: Royal Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Stellaris: Distant Stars
  • Stellaris: Synthetic Dawn
  • Stellaris: Leviathans Story Pack
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Stellaris: Nemesis
  • Stellaris: Humanoids Species Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Lithoids
  • Stellaris: Necroids
I tried your fix, changing change to granted, yet creating a new faith head simply consumes gold. BTW mozarabic papacy has no land. Are the two things linked?
Could be, in a way. When the new Mozarabic Papacy was created, were you holding any Mozarabic holy site?
If you weren't, then the problem could be what Mhoirbheinn described before: post-28363362
Because the decision "Break with Rome" also uses set_up_dynamic_spiritual_hof_title_effect.

Honestly, I still don't really understand why a holy site is necessary (the HoF title is supposed to be a landless title, and the holy site is used as the title's capital. Feels weird to need a capital for a landless title). There might be a way to truly make it a landless title, but I don't know how.

Or it's something else entirely. If you don't mind, I'd like to try your save, it might help.
 
  • 1Like
Reactions:

Ultrwga

Recruit
Aug 22, 2022
7
5
I don't know if I had any holy site at the time of my decision. I'm playing struggle for Iberia and it's really difficult to keep land and with the right faith vassal.
I have 2 holy sites when I try to make a new hof. I'm playing without mod and the only edit to game file I made is the one you suggest on top of this thread.


Thank you for your interest.
 

Attachments

  • al-Yiliqi_867_Ironman.ck3
    42 MB · Views: 0
Last edited:
  • 1
Reactions: