Hello! I am trying to create a CK3 mod that adds a new religious family, religion, and faiths to the game, but I am encountering some strange issues. (I am using the Nearly Blank Map as a starting point.) I will explain everything I have done in exacting detail. (For context, I am trying to lay the groundwork for a CK3 version of After the End by creating the Americanist and Libertarian faiths.)
The first thing I did was create a new religious family called the Antiquarian family. I did this by copying the Abrahamic religion family file, renaming the file to "00_antiquarian", renaming the family inside the file to "rf_antiquarian", and changing the hostility doctrine from "abrahamic_hostility_doctrine" to "antiquarian_hostility_doctrine". I then added this "antiquarian_hostility_doctrine" to the 01_doctrines_religions file, underneath the vanilla hostility doctrines.
Next, I created my religion file by copying the 000_test_religion file and renaming it to 000_patriotic. I changed the first line to "patriotic religion = {", changed the second line to "family = rf_antiquarian", and changed the first doctrine to "doctrine = antiquarian_hostility_doctrine". I then added the religion's default doctrines and changed the god name localization keys. I also changed the holy order localization keys and changed the holy_order_maa line to read as "holy_order_maa = { minuteman }". Neither the keys nor the soldier type exist in the code as of right now.
I then began adding my faiths under a "faiths = {" block. I started with "americanist = {", defining its color as "color = hsv { 0.3 0.3 0.8 }" and its icon as "icon = americanist". This icon exists and is in the correct folder (gfx/interface/icons/religion). I also gave them a new special doctrine called "special_doctrine_freedom_of_speech" and a series of unique tenets. Both this new special doctrine and these new tenets exist, and are defined in the doctrines folder inside the "ate_doctrines_special" and "ate_tenets" files respectively. Next, I added "libertarian = {", defining its color as "color = hsv { 0.4 0.4 0.4 }" and its icon as "icon = libertarian". Again, this icon exists and is in the correct folder. I then added a few doctrines to Libertarian so it would have different mechanics from Americanist, and gave them a new localization block that changes most of their god names and their pantheon name. I then created a localization file and localized as many of these new things as I could. Then, I launched the game.
I noticed two things right away. First of all, the test ruler was now Americanist rather than test_faith, even though I had not touched any part of the history files during this entire process. Second, the faith's adjective was showing up as "americanist_adj" rather than Americanist, even though I had localized that string. (A screenshot of this is included below for reference.)
Most of the other Americanist localization seemed fine.
I have no idea why this is happening, and I cannot proceed any further with my mod until I can diagnose and fix this issue. I will post the full Patriotic religion file below so that you may examine it for yourself. (I suspect that the issue originates with this file specifically.) If you want a copy of the entire mod, please let me know and I will DM it to you.
EDIT: Issue resolved - the test character in the Nearly Blank Map has his faith set to "test_religion" in the character history files. It should be "test_faith".
The first thing I did was create a new religious family called the Antiquarian family. I did this by copying the Abrahamic religion family file, renaming the file to "00_antiquarian", renaming the family inside the file to "rf_antiquarian", and changing the hostility doctrine from "abrahamic_hostility_doctrine" to "antiquarian_hostility_doctrine". I then added this "antiquarian_hostility_doctrine" to the 01_doctrines_religions file, underneath the vanilla hostility doctrines.
Next, I created my religion file by copying the 000_test_religion file and renaming it to 000_patriotic. I changed the first line to "patriotic religion = {", changed the second line to "family = rf_antiquarian", and changed the first doctrine to "doctrine = antiquarian_hostility_doctrine". I then added the religion's default doctrines and changed the god name localization keys. I also changed the holy order localization keys and changed the holy_order_maa line to read as "holy_order_maa = { minuteman }". Neither the keys nor the soldier type exist in the code as of right now.
I then began adding my faiths under a "faiths = {" block. I started with "americanist = {", defining its color as "color = hsv { 0.3 0.3 0.8 }" and its icon as "icon = americanist". This icon exists and is in the correct folder (gfx/interface/icons/religion). I also gave them a new special doctrine called "special_doctrine_freedom_of_speech" and a series of unique tenets. Both this new special doctrine and these new tenets exist, and are defined in the doctrines folder inside the "ate_doctrines_special" and "ate_tenets" files respectively. Next, I added "libertarian = {", defining its color as "color = hsv { 0.4 0.4 0.4 }" and its icon as "icon = libertarian". Again, this icon exists and is in the correct folder. I then added a few doctrines to Libertarian so it would have different mechanics from Americanist, and gave them a new localization block that changes most of their god names and their pantheon name. I then created a localization file and localized as many of these new things as I could. Then, I launched the game.
I noticed two things right away. First of all, the test ruler was now Americanist rather than test_faith, even though I had not touched any part of the history files during this entire process. Second, the faith's adjective was showing up as "americanist_adj" rather than Americanist, even though I had localized that string. (A screenshot of this is included below for reference.)

Most of the other Americanist localization seemed fine.
I have no idea why this is happening, and I cannot proceed any further with my mod until I can diagnose and fix this issue. I will post the full Patriotic religion file below so that you may examine it for yourself. (I suspect that the issue originates with this file specifically.) If you want a copy of the entire mod, please let me know and I will DM it to you.
Code:
patriotic_religion = {
family = rf_antiquarian
doctrine = antiquarian_hostility_doctrine
#Main Group
doctrine = doctrine_temporal_head
doctrine = doctrine_gender_equal
doctrine = doctrine_pluralism_fundamentalist
doctrine = doctrine_theocracy_lay_clergy
#Marriage
doctrine = doctrine_monogamy
doctrine = doctrine_divorce_approval
doctrine = doctrine_bastardry_legitimization
doctrine = doctrine_consanguinity_cousins
#Crimes
doctrine = doctrine_homosexuality_shunned
doctrine = doctrine_adultery_men_crime
doctrine = doctrine_adultery_women_crime
doctrine = doctrine_kinslaying_extended_family_crime
doctrine = doctrine_deviancy_shunned
doctrine = doctrine_witchcraft_crime
#Clerical Functions
doctrine = doctrine_clerical_function_taxation
doctrine = doctrine_clerical_gender_either
doctrine = doctrine_clerical_marriage_allowed
doctrine = doctrine_clerical_succession_temporal_fixed_appointment
traits = {
virtues = { brave just honest ambitious }
sins = { craven arbitrary deceitful content }
}
custom_faith_icons = {
custom_faith_1 custom_faith_2 custom_faith_3 custom_faith_4 custom_faith_5 custom_faith_6 custom_faith_7 custom_faith_8 custom_faith_9 custom_faith_10 dualism_custom_1 zoroastrian_custom_1 zoroastrian_custom_2 buddhism_custom_1 buddhism_custom_2 buddhism_custom_3 buddhism_custom_4 taoism_custom_1 yazidi_custom_1 sunni_custom_2 sunni_custom_3 sunni_custom_4 ibadi_custom muhakkima_1 muhakkima_2 muhakkima_4 muhakkima_5 muhakkima_6 judaism_custom_1
}
holy_order_names = {
{ name = holy_order_minutemen }
{ name = holy_order_marine_corps }
{ name = holy_order_national_guard }
}
holy_order_maa = { minuteman }
localization = {
HighGodName = patriotic_high_god_name
HighGodNamePossessive = patriotic_high_god_name_possessive
HighGodNameSheHe = CHARACTER_SHEHE_HE
HighGodHerselfHimself = CHARACTER_HIMSELF
HighGodHerHis = CHARACTER_HERHIS_HIS
HighGodNameAlternate = patriotic_high_god_name_alternate
HighGodNameAlternatePossessive = patriotic_high_god_name_alternate_possessive
#Creator
CreatorName = patriotic_creator_god_name
CreatorNamePossessive = patriotic_creator_god_name_possessive
CreatorSheHe = CHARACTER_SHEHE_HE
CreatorHerHis = CHARACTER_HERHIS_HIS
CreatorHerHim = CHARACTER_HERHIM_HIM
#HealthGod
HealthGodName = patriotic_health_god_name
HealthGodNamePossessive = patriotic_health_god_name_possessive
HealthGodSheHe = CHARACTER_SHEHE_HE
HealthGodHerHis = CHARACTER_HERHIS_HIS
HealthGodHerHim = CHARACTER_HERHIM_HIM
#FertilityGod
FertilityGodName = patriotic_fertility_god_name
FertilityGodNamePossessive = patriotic_fertility_god_name_possessive
FertilityGodSheHe = CHARACTER_SHEHE_HE
FertilityGodHerHis = CHARACTER_HERHIS_HIS
FertilityGodHerHim = CHARACTER_HERHIM_HIM
#WealthGod
WealthGodName = patriotic_wealth_god_name
WealthGodNamePossessive = patriotic_wealth_god_name_possessive
WealthGodSheHe = CHARACTER_SHEHE_HE
WealthGodHerHis = CHARACTER_HERHIS_HIS
WealthGodHerHim = CHARACTER_HERHIM_HIM
#HouseholdGod
HouseholdGodName = patriotic_household_god_name
HouseholdGodNamePossessive = patriotic_household_god_name_possessive
HouseholdGodSheHe = CHARACTER_SHEHE_IT
HouseholdGodHerHis = CHARACTER_HERHIS_ITS
HouseholdGodHerHim = CHARACTER_HERHIM_IT
#FateGod
FateGodName = patriotic_fate_god_name
FateGodNamePossessive = patriotic_fate_god_name_possessive
FateGodSheHe = CHARACTER_SHEHE_IT
FateGodHerHis = CHARACTER_HERHIS_ITS
FateGodHerHim = CHARACTER_HERHIM_IT
#KnowledgeGod
KnowledgeGodName = patriotic_knowledge_god_name
KnowledgeGodNamePossessive = patriotic_knowledge_god_name_possessive
KnowledgeGodSheHe = CHARACTER_SHEHE_HE
KnowledgeGodHerHis = CHARACTER_HERHIS_HIS
KnowledgeGodHerHim = CHARACTER_HERHIM_HIM
#WarGod
WarGodName = patriotic_war_god_name
WarGodNamePossessive = patriotic_war_god_name_possessive
WarGodSheHe = CHARACTER_SHEHE_HE
WarGodHerHis = CHARACTER_HERHIS_HIS
WarGodHerHim = CHARACTER_HERHIM_HIM
#TricksterGod
TricksterGodName = patriotic_trickster_god_name
TricksterGodNamePossessive = patriotic_trickster_god_name_possessive
TricksterGodSheHe = CHARACTER_SHEHE_HE
TricksterGodHerHis = CHARACTER_HERHIS_HIS
TricksterGodHerHim = CHARACTER_HERHIM_HIM
#NightGod
NightGodName = patriotic_night_god_name
NightGodNamePossessive = patriotic_night_god_name_possessive
NightGodSheHe = CHARACTER_SHEHE_HE
NightGodHerHis = CHARACTER_HERHIS_HIS
NightGodHerHim = CHARACTER_HERHIM_HIM
#WaterGod
WaterGodName = patriotic_water_god_name
WaterGodNamePossessive = patriotic_water_god_name_possessive
WaterGodSheHe = CHARACTER_SHEHE_HE
WaterGodHerHis = CHARACTER_HERHIS_HIS
WaterGodHerHim = CHARACTER_HERHIM_HIM
PantheonTerm = patriotic_pantheon_the_founders
PantheonTermHasHave = pantheon_term_have
GoodGodNames = {
patriotic_high_god_name
patriotic_high_god_name_alternate
patriotic_good_god_jefferson
patriotic_good_god_franklin
patriotic_good_god_adams
patriotic_good_god_hamilton
patriotic_good_god_lincoln
patriotic_good_god_roosevelt
patriotic_good_god_uncle_sam
patriotic_good_god_the_flag
}
DevilName = patriotic_devil_name
DevilNamePossessive = patriotic_devil_name_possessive
DevilSheHe = CHARACTER_SHEHE_HE
DevilHerHis = CHARACTER_HERHIS_HIS
DevilHerselfHimself = CHARACTER_HIMSELF
EvilGodNames = {
patriotic_devil_name
patriotic_evil_god_the_tyrant
}
HouseOfWorship = patriotic_house_of_worship
HouseOfWorshipPlural = patriotic_house_of_worship_plural
ReligiousSymbol = patriotic_religious_symbol
ReligiousText = patriotic_religious_text
ReligiousHeadName = patriotic_religious_head_title
ReligiousHeadTitleName = patriotic_religious_head_title_name
DevoteeMale = patriotic_devotee
DevoteeMalePlural = patriotic_devoteeplural
DevoteeFemale = patriotic_devotee
DevoteeFemalePlural = patriotic_devoteeplural
DevoteeNeuter = patriotic_devotee
DevoteeNeuterPlural = patriotic_devoteeplural
PriestMale = patriotic_priest
PriestMalePlural = patriotic_priest_plural
PriestFemale = patriotic_priest
PriestFemalePlural = patriotic_priest_plural
PriestNeuter = patriotic_priest
PriestNeuterPlural = patriotic_priest_plural
AltPriestTermPlural = patriotic_priest_alternate_plural
BishopMale = patriotic_priest_alternate
BishopMalePlural = patriotic_priest_alternate_plural
BishopFemale = patriotic_priest_alternate
BishopFemalePlural = patriotic_priest_alternate_plural
BishopNeuter = patriotic_priest_alternate
BishopNeuterPlural = patriotic_priest_alternate_plural
DivineRealm = patriotic_divine_realm
PositiveAfterLife = patriotic_divine_realm
NegativeAfterLife = patriotic_afterlife_negative
DeathDeityName = patriotic_death_deity_name
DeathDeityNamePossessive = patriotic_death_deity_name_possessive
DeathDeitySheHe = CHARACTER_SHEHE_HE
DeathDeityHerHis = CHARACTER_HERHIS_HIS
WitchGodName = witchgodname_patriotic_marx
WitchGodSheHe = CHARACTER_SHEHE_HE
WitchGodHerHis = CHARACTER_HERHIS_HIS
WitchGodHerHim = CHARACTER_HERHIM_HIM
WitchGodMistressMaster = witch_master
WitchGodMotherFather = witch_father
GHWName = ghw_intervention
GHWNamePlural = ghw_interventions
}
faiths = {
americanist = {
color = { 0.3 0.3 0.8 }
icon = americanist
#no religious head title yet
#special doctrine
doctrine = special_doctrine_freedom_of_speech
doctrine = tenet_due_process
doctrine = tenet_interventionism
doctrine = tenet_american_dream
}
libertarian = {
color = { 0.4 0.4 0.4 }
icon = libertarian
#no religious head title yet
#special doctrine
doctrine = special_doctrine_freedom_of_speech
doctrine = tenet_due_process
doctrine = tenet_pacifism
doctrine = tenet_american_dream
#altered doctrines
doctrine = doctrine_pluralism_righteous
doctrine = doctrine_divorce_allowed
doctrine = doctrine_homosexuality_accepted
doctrine = doctrine_deviancy_accepted
doctrine = doctrine_clerical_gender_female_only
doctrine = doctrine_spiritual_head
}
}
}
EDIT: Issue resolved - the test character in the Nearly Blank Map has his faith set to "test_religion" in the character history files. It should be "test_faith".
Attachments
Last edited: