Tomatekh
Sahib-i-Qirani
- Joined
- Aug 6, 2012
- Messages
- 1,408
As I now have more than one religious mod, this will serve as a base thread.
~~~
Great Prophet Historical Names (BNW or GK)
Adds historical names to the Great Prophet unit similar to the other Great People.
~~~
Historical Religions (BNW or GK)
Adds 49 historical religions to the base game.
** Historical Religions Edit (BNW or GK)
Only includes religions which civs have a preference for. Adds 13 historical religions.
** Historical Religions Complete (BNW or GK)
The Historical Religions mod and all the denomination packs in one download. 102 total religions as well as my Great Prophet Historical Names mod.
~~~
Christian Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It splits Christianity into seven denominations: Catholic, Nestorian, Oriental Orthodox, Eastern Orthodox, Protestant, Anglican, and Mormon Christianity.
** Medieval Heresies (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds four Medieval era religious heresies. For Christianity: Bogomilism, Catharism, and Hussitism. For Islam: Mu'tazila.
** Protestant Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It splits Protestantism into five denominations: Lutheran, Reformed, Anglican, Methodist, and Baptist Protestantism.
Islamic Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It splits Islam into three denominations: Sunni, Shia, Ibadi Islam.
Hindu Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It splits Hindu into five denominations: Vaishnavite, Shaivite, Shaktite, Smarta, Vedic Hinduism.
Buddhist Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It splits Buddhism into three denominations: Theravada, Mahayana, Vajrayana Buddhism.
Meospotamian Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds three historical religions related ancient Mesopotamia: Chaldaenism, Ashurism, Napir-tuniis.
High American Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds four historical religions related to Classical Indigenous America: Tlateomatiliztli, Tzolk'in, Pachaism, Intiism.
Greco-Roman Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds eight historical religions related to the Greco-Roman world: Atanodjuwaja Cult, Dodekatheism, Numenism, Imperial Cult, Mysteries, Mithraism, Neoplatonism, Heros Karabazmos.
Oceanic Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds five historical religions related to Oceania: Tala-e-Fonua, Puata Tupuna, Tangata Manu, Malagan, Itang.
Egyptian Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds three historical religions related to ancient Egypt: Pesedjet, Atenism, Amanaiism.
~~~
Christianity Merge (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It merges the various Christian denominations added in BNW back into the single "Christianity" religion found in G&K.
~~~
The main purpose of the full version of the mod is to add historical religious preferences for modded civs. This post explains how to include internal support for this mod within your modded civilization mod.
1) First, have your civ mod reference one or more of the following mod IDs depending on which version(s) has the custom religion you want to use:
(In ModBuddy, right click the mod name -> Properties -> Associations -> References)
2) Next, set your civ to have one of the 13 default religions. You can do this normally in XML or include it as SQL in step 3.
or
3) Create an SQL file. SQL files are created (Add -> New Item -> Game Rules SQL) and loaded into the database (Actions -> OnModActivated -> UpdateDatabase -> etc) the same way you would for an XML file. If this SQL is not also setting the default religion (step 2), make sure it is loaded after the file that sets the religion. (For example, I normally set my default religion in a Civilzations.xml file, so in Actions -> OnModActivated I would have this new SQL file under the Civilzations.xml file). If you are setting both in the SQL file, make sure this code goes under the code you use to set the initial religion.
This SQL file should include the following code:
Replace the two "RELIGION_FORN_SIDR" entries with the historical religion you want to use, the "RELIGION_CHRISTIANITY" entry with the default religion your civ is using, and the "CIVILIZATION_VISIGOTHS_MOD" entry with your mod civ.
4) Add a trigger under the SQL code to ensure the preference will be set in case load order is ignored or your game is ignoring programmed references.
In addition to replacing the RELIGION_ and CIVILIZATION_ entries, take note of the bolded text. The name of the trigger needs to be unique for every trigger you add (in the same and different mods). So, for example, I might use ReligionTomatekhGothsMod. Somewhat wordy, but it ensures that no one else might accidentally also use that trigger.
Example) This is what a complete preference might look like only using SQL:
As a final note, it is possible to tier preferences to account for people using different versions of my mods. For example, the tiered England preference in my Complete mod:
~~~
The following are the XML entries for the various custom religions:
~~~
Great Prophet Historical Names (BNW or GK)
Adds historical names to the Great Prophet unit similar to the other Great People.
~~~
Historical Religions (BNW or GK)
Adds 49 historical religions to the base game.
** Historical Religions Edit (BNW or GK)
Only includes religions which civs have a preference for. Adds 13 historical religions.
** Historical Religions Complete (BNW or GK)
The Historical Religions mod and all the denomination packs in one download. 102 total religions as well as my Great Prophet Historical Names mod.
~~~
Christian Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It splits Christianity into seven denominations: Catholic, Nestorian, Oriental Orthodox, Eastern Orthodox, Protestant, Anglican, and Mormon Christianity.
** Medieval Heresies (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds four Medieval era religious heresies. For Christianity: Bogomilism, Catharism, and Hussitism. For Islam: Mu'tazila.
** Protestant Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It splits Protestantism into five denominations: Lutheran, Reformed, Anglican, Methodist, and Baptist Protestantism.
Islamic Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It splits Islam into three denominations: Sunni, Shia, Ibadi Islam.
Hindu Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It splits Hindu into five denominations: Vaishnavite, Shaivite, Shaktite, Smarta, Vedic Hinduism.
Buddhist Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It splits Buddhism into three denominations: Theravada, Mahayana, Vajrayana Buddhism.
Meospotamian Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds three historical religions related ancient Mesopotamia: Chaldaenism, Ashurism, Napir-tuniis.
High American Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds four historical religions related to Classical Indigenous America: Tlateomatiliztli, Tzolk'in, Pachaism, Intiism.
Greco-Roman Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds eight historical religions related to the Greco-Roman world: Atanodjuwaja Cult, Dodekatheism, Numenism, Imperial Cult, Mysteries, Mithraism, Neoplatonism, Heros Karabazmos.
Oceanic Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds five historical religions related to Oceania: Tala-e-Fonua, Puata Tupuna, Tangata Manu, Malagan, Itang.
Egyptian Denominations (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It adds three historical religions related to ancient Egypt: Pesedjet, Atenism, Amanaiism.
~~~
Christianity Merge (Historical Religions)
This mod works either stand-alone or as an add-on to my Historical Religions mods. It merges the various Christian denominations added in BNW back into the single "Christianity" religion found in G&K.
~~~
The main purpose of the full version of the mod is to add historical religious preferences for modded civs. This post explains how to include internal support for this mod within your modded civilization mod.
1) First, have your civ mod reference one or more of the following mod IDs depending on which version(s) has the custom religion you want to use:
(In ModBuddy, right click the mod name -> Properties -> Associations -> References)
Code:
8c101299-95c5-4b28-b7ed-4e0f774857ef (Historical Religions)
6bc3cb6e-a697-491e-9347-5e3e02640f00 (Historical Religions Edit)
6010e6f6-918e-48b8-9332-d60783bd8fb5 (Historical Religions Complete)
6c52be67-b7da-4768-9873-1a9ce5011e8e (Christian Denominations)
d60c32bd-6826-4ca3-8161-2e37ebab5883 (Protestant Denominations)
524fba76-d0be-447f-9c89-fc56462f9f63 (Islamic Denominations)
cda9bfce-2abf-4b10-b0be-514f850d95cb (Hindu Denominations)
59a97415-76c7-47e8-8f69-d268dccd9535 (Buddhist Denominations)
5139dcb2-e318-4fe7-a58c-68a59b8339db (Mesopotamian Denominations)
ba8478fa-c70e-47ca-82fc-aee3baea6407 (High American Denominations)
1b456011-7882-4f02-8184-5421e6a2b3fb (Egyptian Denominations)
a8a3f188-f98e-4ba2-91bf-76af49cb0a6d (Greco-Roman Denominations)
afeb5594-08a5-42f8-bdce-0e2c37400692 (Oceanic Denominations)
20dd5230-df95-4722-9043-385fe8b90de6 (Medieval Heresies)
2f0b6cd7-3bf5-4197-96f6-96c00787ef18 (Christianity Merge)
Code:
<Civilization_Religions>
<Row>
<CivilizationType>CIVILIZATION_VISIGOTHS_MOD</CivilizationType>
<ReligionType>RELIGION_CHRISTIANITY</ReligionType>
</Row>
</Civilization_Religions>
Code:
INSERT INTO Civilization_Religions
(CivilizationType, ReligionType)
VALUES ('CIVILIZATION_VISIGOTHS_MOD', 'RELIGION_CHRISTIANITY');
This SQL file should include the following code:
Code:
UPDATE Civilization_Religions SET ReligionType =
( CASE WHEN EXISTS(SELECT Type FROM Religions WHERE Type="RELIGION_FORN_SIDR" )
THEN "RELIGION_FORN_SIDR"
ELSE "RELIGION_CHRISTIANITY" END
) WHERE CivilizationType = "CIVILIZATION_VISIGOTHS_MOD";
Replace the two "RELIGION_FORN_SIDR" entries with the historical religion you want to use, the "RELIGION_CHRISTIANITY" entry with the default religion your civ is using, and the "CIVILIZATION_VISIGOTHS_MOD" entry with your mod civ.
4) Add a trigger under the SQL code to ensure the preference will be set in case load order is ignored or your game is ignoring programmed references.
Code:
CREATE TRIGGER ReligionTestTrigger
AFTER INSERT ON Religions WHEN 'RELIGION_FORN_SIDR' = NEW.Type
BEGIN
UPDATE Civilization_Religions
SET ReligionType = 'RELIGION_FORN_SIDR'
WHERE CivilizationType IN ('CIVILIZATION_VISIGOTHS_MOD');
END;
In addition to replacing the RELIGION_ and CIVILIZATION_ entries, take note of the bolded text. The name of the trigger needs to be unique for every trigger you add (in the same and different mods). So, for example, I might use ReligionTomatekhGothsMod. Somewhat wordy, but it ensures that no one else might accidentally also use that trigger.
Example) This is what a complete preference might look like only using SQL:
Code:
INSERT INTO Civilization_Religions
(CivilizationType, ReligionType)
VALUES ('CIVILIZATION_VISIGOTHS_MOD', 'RELIGION_CHRISTIANITY');
UPDATE Civilization_Religions SET ReligionType =
( CASE WHEN EXISTS(SELECT Type FROM Religions WHERE Type="RELIGION_FORN_SIDR" )
THEN "RELIGION_FORN_SIDR"
ELSE "RELIGION_CHRISTIANITY" END
) WHERE CivilizationType = "CIVILIZATION_VISIGOTHS_MOD";
CREATE TRIGGER ReligionTestTrigger
AFTER INSERT ON Religions WHEN 'RELIGION_FORN_SIDR' = NEW.Type
BEGIN
UPDATE Civilization_Religions
SET ReligionType = 'RELIGION_FORN_SIDR'
WHERE CivilizationType IN ('CIVILIZATION_VISIGOTHS_MOD');
END;
As a final note, it is possible to tier preferences to account for people using different versions of my mods. For example, the tiered England preference in my Complete mod:
Code:
UPDATE Civilization_Religions SET ReligionType =
( CASE WHEN EXISTS(SELECT Type FROM Religions WHERE Type = 'RELIGION_CHRISTIAN_ANGLICANISM' )
THEN 'RELIGION_CHRISTIAN_ANGLICANISM'
ELSE ( CASE WHEN EXISTS(SELECT Type FROM Religions WHERE Type = 'RELIGION_PROTESTANTISM' )
THEN 'RELIGION_PROTESTANTISM'
ELSE 'RELIGION_CHRISTIANITY' END ) END
) WHERE CivilizationType = 'CIVILIZATION_ENGLAND';
~~~
The following are the XML entries for the various custom religions:
Code:
Akattu (Harrapa): RELIGION_AKATTU
Al-Asnam (Sabaeans): RELIGION_AL_ASNAM
Amatongo (Zulu): RELIGION_AMATONGO
Anito (Philippine): RELIGION_ANITO
Angakkuqism (Inuit): RELIGION_ANGAKKUQISM
Baha'i: RELIGION_BAHAI
Bird Figure Cult (Vinca): RELIGION_BIRD_FIGURE
Buddhism: RELIGION_BUDDHISM
w/ Buddhist Denominations mod:
Theravada: RELIGION_BUDDHISM
Mahayana: RELIGION_MAHAYANA
Vajrayana: RELIGION_VAJRAYANA
Bumuntu (Luba): RELIGION_BUMUNTU
Canaanism (Carthage): RELIGION_CANAANISM
Chaldaenism (Mesopotamia): RELIGION_CHALDEANISM
w/ Mesopotamian Denominations mod:
Chaldaenism (Babylon): RELIGION_CHALDEANISM
Ashurism (Assyria): RELIGION_ASHURISM
Napir-tuniis (Elam): RELIGION_NAPIRTUNIIS
Chiminagua (Muisca): RELIGION_CHIMINAGUA
Christianity:
Roman Catholic: RELIGION_CHRISTIANITY
Eastern Orthodoxy: RELIGION_ORTHODOXY
Protestantism: RELIGION_PROTESTANTISM
w/ Christian Denominations mod:
Oriental Orthodox: RELIGION_CHRISTIAN_ORIENTAL_ORTHODOX
Nestorianism: RELIGION_CHRISTIAN_CHURCH_OF_THE_EAST
Anglicanism: RELIGION_CHRISTIAN_ANGLICANISM
Mormonism: RELIGION_CHRISTIAN_MORMONISM
w/ Protestant Denominations mod:
Lutheranism: RELIGION_PROTESTANTISM
Calvinism: RELIGION_PROTESTANT_CALVINISM
Anglicanism: RELIGION_CHRISTIAN_ANGLICANISM
Methodism: RELIGION_PROTESTANT_METHODISM
Baptist Christianity RELIGION_PROTESTANT_BAPTIST
w/ Medieval Heresies mod:
Bogomilism: RELIGION_BOGOMILISM
Catharism: RELIGION_CATHARISM
Hussitism: RELIGION_HUSSITISM
w/ Historical Religions Complete:
Arianism: RELIGION_CHRISTIAN_ARIANISM
Restorationism: RELIGION_CHRISTIAN_MORMONISM
w/ Chrstianity Merge mod:
Christianity: RELIGION_CHRISTIANITY
Confucianism: RELIGION_CONFUCIANISM
Druidism (Celts): RELIGION_DRUIDISM
Fat Roog (Serer): RELIGION_FAT_ROOG
Forn Sidr (Norse): RELIGION_FORN_SIDR
Hellenism (Greco-Roman): RELIGION_HELLENISM
w/ Greco-Roman Denominations mod:
Dodekatheism (Greece): RELIGION_HELLENISM
Numenism (Rome): RELIGION_NUMENISM
Imperial Cult RELIGION_IMPERIAL_CULT
Mithraism: RELIGION_MITHRAISM
Neoplatonism: RELIGION_NEOPLATONISM
Heros Karabazmos: RELIGION_HEROS_KARABAZMOS
w/ Historical Religions Complete:
Atanodjuwaja (Minoan): RELIGION_ATANODJUWAJA
Mysteries: RELIGION_MYSTERIES
Heros Karabazmos (Thrace): RELIGION_HEROS_KARABAZMOS
Hinduism: RELIGION_HINDUISM
w/ Hindu Denominations mod:
Vaishnavism (Vishnu): RELIGION_VISHNU
Shaivism (Shiva): RELIGION_SHIVA
Shaktism (Shakti): RELIGION_SHAKTI
Smartism: RELIGION_HINDUISM
Vedism: RELIGION_VEDIC
Itan (Yoruba): RELIGION_ITAN
Islam: RELIGION_ISLAM
w/ Islamic Denominations mod:
Sunni: RELIGION_ISLAM
Shia: RELIGION_ISLAM_SHIA
Ibadi: RELIGION_ISLAM_IBADI
w/ Medieval Heresies mod:
Mu'tazila: RELIGION_MUTAZILA
w/ Historical Religions Complete:
Druze: RELIGION_DRUZE
Ahmadiyya: RELIGION_AHMADI
Jainism: RELIGION_JAIN
Judaism: RELIGION_JUDAISM
Kachina (Pueblo): RELIGION_KACHINA
Laiboni (Maasai): RELIGION_LAIBONI
Li'im Dinger-mes (Hittite): RELIGION_LIIM_DINGERMES
Mahoma (Calusa): RELIGION_MAHOMA
Manaism (Polynesia): RELIGION_MANAISM
w/ Oceanic Denominations mod:
Tala-e-Fonua (West): RELIGION_MANAISM
Puata Tupuna (East): RELIGION_PUTA_TUPUNA
Tangata Manu (Rapanui): RELIGION_TANGATA_MANU
Malagan (Melanesia) RELIGION_MALAGAN
Itang (Micronesia) RELIGION_ITANG
Mandaenism: RELIGION_MANDEANISM
Manichaeism: RELIGION_MANICHAEISM
Midewiwin (Ojibwe): RELIGION_MIDEWIWIN
Muism (Siberian): RELIGION_MUISM
Mwari Cult (Zimbabwe): RELIGION_MWARI
Noaidevuohta (Sami): RELIGION_NOAIDEVUOHTA
N'um (San Bushmen): RELIGION_NUM
Nzambiism (Kongo): RELIGION_NZAMBIISM
Odinani (Nri): RELIGION_ODINANI
Onyamesom (Akan): RELIGION_ONYAMESOM
Orenda (Iroquois): RELIGION_ORENDA
Pachaism (Andes): RELIGION_PACHISM
w/ High American Denominations mod:
Pachaism: RELIGION_PACHISM
Intiism (Inca): RELIGION_INTIISM
Pajelanca (Amazonian): RELIGION_PAJELANCA
Pesedjet (Egypt): RELIGION_PESEDJET
w/ Egyptian Denominations mod:
Pesedjet: RELIGION_PESEDJET
Atenism (Akhenaten): RELIGION_ATENISM
Amanaiism (Berber): RELIGION_AMANAIISM
Pohakantenna (Shoshone): RELIGION_POHAKANTENNA
Razana (Malagasy): RELIGION_RAZANA
Romuva (Lithuania): RELIGION_ROMUVA
Sairimaism (Scythia): RELIGION_SAIRIMAISM
Saman (Siberian Shamanism): RELIGION_SAMAN
Sgaanaang (Haida): RELIGION_SGAANAANG
Shinto: RELIGION_SHINTO
Sikhism: RELIGION_SIKHISM
Slavianism (Slavic): RELIGION_SLAVIANISM
w/ Historical Religions Complete:
Slavianism: RELIGION_SLAVIANISM
Romuva (Baltic): RELIGION_ROMUVA
Southern Cult (Mississippi): RELIGION_SOUTHERN_CULT
Taoism: RELIGION_TAOISM
Temaukelism (Patagonia): RELIGION_TEMAUKELISM
Tengriism: RELIGION_TENGRIISM
Tjukurpa (Aborigine): RELIGION_TJUKURPA
Tlateomatiliztli (Mesoamerica): RELIGION_TLATEOMATILIZTLI
w/ High American Denominations mod:
Tlateomatili (Aztec): RELIGION_TLATEOMATILIZTLI
Tzolk'in (Maya): RELIGION_TZOLKIN
Vedism (Vedic): RELIGION_VEDIC
Voodoo: RELIGION_VODUN
w/ Historical Religions Complete:
Voodoo: RELIGION_VODUN
Santeria: RELIGION_SANTERIA
Wakan Tanka (Sioux): RELIGION_WAKAN_TANKA
Witran Mapu (Mapuche): RELIGION_WILTRAN_MAPU
Yazdanism (Kurds): RELIGION_YAZDANISM
Zemiism (Taino): RELIGION_ZEMIISM
Zoroastrianism: RELIGION_ZOROASTRIANISM
Last edited: