[Modding] Allow the Centers of Reformation to spawn anywhere

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

Parmelion

Captain
20 Badges
Mar 14, 2016
319
708
  • Europa Universalis IV
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron IV: Cadet
  • Europa Universalis 4: Emperor
  • Crusader Kings II
  • Europa Universalis IV: Art of War
Approximately half a year ago, I was attempting to add Nestorian centers of reformation to my mod. The problem I've encountered is that no matter what I did, they would only spawn in Europe and not anywhere else. I suppose they are hardcoded to a particular continent.

I would like to kindly ask you to remove this restriction, or at least give us the modders a way around it. Thank you.

EDIT: Yes indeed, they seem to be tied to the center_of_religion province defined in each religious group in 00_religion.txt
 
Last edited:
  • 4
  • 1Like
  • 1
Reactions:

Mirochi

Second Lieutenant
20 Badges
Dec 31, 2016
149
154
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Europa Universalis 4: Emperor
  • Europa Universalis IV
  • Prison Architect
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
I think developers specifically wanted to restrict them with Europe. In addition to this, countries outside Europe cannot join religious leagues. I am guessing that the developers wanted to recreate real history to some degree and didn't want to turn 30 Years War into a World War.

Though, I would love see the results if they allowed reformations to be formed outside Europe and non-Europeans to join Religious War
 

Sithodox2286

Sergeant
74 Badges
Apr 28, 2019
80
168
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Megacorp
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Crusader Kings III: Royal Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Europa Universalis IV: Res Publica
  • 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
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Battle for Bosporus
  • Crusader Kings II: The Republic
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Rajas of India
Actually, you can lift the restriction in the current version. Plz check the "can_have_center_of_reformation_trigger" codings in folder common\scripted_trigger. If you want to change how centre_of_reform for specified religions, you probably want to change all related codes in the common\religions folder.

Although I believe you have already tried, the file in "religious_conversions" folder would be necessary to make your religious centre work.

As shown below, I edited the trigger for my new religion conflicts between traditional Neo-Confucianism, Yangmingism and Chinese Classics (Jingxueism), so the two modded religions may spawn their centre of reform around continent "east-asia"(China, Manchuria, Japan, Mongol, Korea, Tibet etc.).

Hope it helps! Good luck in the new year!

Here is how I done it:
1642523356299.png

1642522740253.png

1642522809938.png
 
  • 4
Reactions:

Parmelion

Captain
20 Badges
Mar 14, 2016
319
708
  • Europa Universalis IV
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron IV: Cadet
  • Europa Universalis 4: Emperor
  • Crusader Kings II
  • Europa Universalis IV: Art of War
Actually, you can lift the restriction in the current version. Plz check the "can_have_center_of_reformation_trigger" codings in folder common\scripted_trigger. If you want to change how centre_of_reform for specified religions, you probably want to change all related codes in the common\religions folder.

Although I believe you have already tried, the file in "religious_conversions" folder would be necessary to make your religious centre work.

As shown below, I edited the trigger for my new religion conflicts between traditional Neo-Confucianism, Yangmingism and Chinese Classics (Jingxueism), so the two modded religions may spawn their centre of reform around continent "east-asia"(China, Manchuria, Japan, Mongol, Korea, Tibet etc.).

Hope it helps! Good luck in the new year!

Here is how I done it:
View attachment 795507
View attachment 795499
View attachment 795502
Thank you so much for your reply! I have tried editing can_have_center_of_reformation_trigger based on your example but I still cant get the center to spawn. I have it created in the religious conversions as well. Is there anything I'm missing? Do I have to edit something in 00_religion.txt as well? If so, what?

EDIT: even adding continent = asia into the OR makes it impossible to spawn it in Asia. However, the center of my new religion can spawn in Europe.

EDIT 2: The only thing that makes me able to spawn the center is changing the center_of_religion of the entire religion group in 00_religions.txt in common/religions to a province in Asia. So sadly, my point stands and it is hardcoded to the continent of the central province.
 
Last edited:

Sithodox2286

Sergeant
74 Badges
Apr 28, 2019
80
168
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Megacorp
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Crusader Kings III: Royal Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Europa Universalis IV: Res Publica
  • 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
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Battle for Bosporus
  • Crusader Kings II: The Republic
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Rajas of India
Thank you so much for your reply! I have tried editing can_have_center_of_reformation_trigger based on your example but I still cant get the center to spawn. I have it created in the religious conversions as well. Is there anything I'm missing? Do I have to edit something in 00_religion.txt as well? If so, what?

EDIT: even adding continent = asia into the OR makes it impossible to spawn it in Asia. However, the center of my new religion can spawn in Europe.

EDIT 2: The only thing that makes me able to spawn the center is changing the center_of_religion of the entire religion group in 00_religions.txt in common/religions to a province in Asia. So sadly, my point stands and it is hardcoded to the continent of the central province.
Sorry for the late reply, but I agree with you in EDIT 2. I didn't realize your problem is to spawn CoR in other continents. But, yeh, they can only spawn in the same continent as the central province defined in the religion file. My religion can spawn in the moded continent because of that.

However, editing the centre_of_religion file enables other religions, like Sunni of Islam and Shinto of the Eastern group to have their Centre of Religion if needed.