HOW TO: Modify the religions

Tarhun said:
I've changed a religion's name in \Assets\XML\Text\CIV4GameTextInfos_Objects.xml as this tutorial says you can do, but it doesn't show up in-game :confused: what am I doing wrong? All I've changed is the name given for the religion in English.

hmm...

well if you change the entries of the Religion it should work normally.
Maybe you added an entry, and in this case the last entry is the one displayed in game.

And yes start a new game...
Saves keep a lot of infos...

For the change of a name, i have tested it... and it works.
I would advice you to create in Assets\XML\text a new file (with a different name of the existents).
The gale will load the file, don't worry for the name. By exemple I use for my changes 3 files I have created and named GMWGameText_Civilopedia.xml GMWGameTextInfos.xml GMWGameTextInfos_Objects.xml

In the file you created add the changes.
Exemple for Taoism...

You would create a file:


Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Civ4GameText xmlns="http://www.firaxis.com">
	<TEXT>
		<Tag>TXT_KEY_RELIGION_TAOISM</Tag>
		<English>Neopaganism</English>
		<French>
			<Text>Néo-paganisme</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</French>
		<German>Neopaganism</German>
		<Italian>Neopaganism</Italian>
		<Spanish>Neopaganism</Spanish>
	</TEXT>
</Civ4GameText>

Nope. You have to edit assets/res/fonts/gamefont.tag and gamefont_75.tga. Good luck.

Exact... I figure it now..
as i used the icons avalaible for the greek mod I hadn't see it.

Thanks for the correction.

Btw I advice people to use a very good program for graphic edition like photoshop, to edit this file...
You must keep the original RGB of the transparent part...
(ACDSee by exemple is a program to avoid for a work like that ;)).
 
I saved a copy of the original file and then changed all the names of the religions thus:

Buddhism = Reincarnation
Hinduism = Polytheism
Judaism = Monotheism
Christianity = Dualism
Confucianism = Ritualism
Taoism = Pantheism
Islam = Fundamentalism

I started a new game and after about 30 turns or so someone researched Meditation. Buddhism is still called Buddhism! I merely changed the names in the file, nothing fancy or complicated. What I'm trying to say is that I have the same problem as the guy above. Should I flush the cache when I start the game?
 
Ok, after flushing the cache and starting a new game all my changes did in fact occur. Thanks again for the guide. I'm going to make more changes to make stuff more generic now.
 
It took me a long time to figure out....so I want to make it absolutely clear to anyone else....

Any changes to the .tga files MUST be saved in 32-bit format. Photoshop will allow this. Many other programs which support the .tga format will only save it as 24-bit .tga, which will not work!

The GameFont.tga files in assets/res/fonts are the ones which display changes on the main (strategic) screen, such as changes to the religious icons on the city bar.
 
Great post, thanks! :goodjob:
I've been playing around with the religions to try and have them have more impact than just money bonuses.
Do you know of a way to mod the religions so they have happiness bonuses or penalties based on whether or not they're the state religion? I've tried looking in the xml files, but I only see keys that change the commerce effects.
 
Ralendil first thanks for the useful info! Second I think you weren't clear on this point:

<StateReligionCommerces>
<iStateReligionCommerce>0</iStateReligionCommerce>
<iStateReligionCommerce>0</iStateReligionCommerce>
<iStateReligionCommerce>1</iStateReligionCommerce>
</StateReligionCommerces>
<iStateReligionCommerce>1</iStateReligionCommerce>
</StateReligionCommerces>
The bonuses accorded to a city when there's a state religion. It works like for the global bonuses. So gold, research and culture.

So for a Jewish city, if the state religion was Islam, it will have this bonus too? Or both religions must be th same?

Also, if I added another line so it becomes
<FreeUnitClass>UNITCLASS_CHRISTIAN_MISSIONARY</FreeUnitClass>
<FreeUnitClass>UNITCLASS_CHRISTIAN_MISSIONARY</FreeUnitClass>
Will it give 2 free units?

Last question: do you know how to make it impossible to switch religions before spending 200 turns on one religion first?
 
Fachy said:
So for a Jewish city, if the state religion was Islam, it will have this bonus too? Or both religions must be th same?

Also, if I added another line so it becomes
<FreeUnitClass>UNITCLASS_CHRISTIAN_MISSIONARY</FreeUnitClass>
<FreeUnitClass>UNITCLASS_CHRISTIAN_MISSIONARY</FreeUnitClass>
Will it give 2 free units?

Last question: do you know how to make it impossible to switch religions before spending 200 turns on one religion first?

1/ Religion state works like that. You say Islam is your state religion, then all your cities with Islam receive the bonus.
Cities without islam get no bonus

2/ Try... ;)
I think it should work.

3/ no


How do we add new religions? Is it possible?

I haven't tested honnestly...
I already think Civ 3 has too much religions.

Do you know of a way to mod the religions so they have happiness bonuses or penalties based on whether or not they're the state religion?

hmm yes the guide explains that

I started a new game and after about 30 turns or so someone researched Meditation. Buddhism is still called Buddhism! I merely changed the names in the file, nothing fancy or complicated. What I'm trying to say is that I have the same problem as the guy above. Should I flush the cache when I start the game?

do that:

For the change of a name, i have tested it... and it works.
I would advice you to create in Assets\XML\text a new file (with a different name of the existents).
The game will load the file, don't worry for the name. By exemple I use for my changes 3 files I have created and named GMWGameText_Civilopedia.xml GMWGameTextInfos.xml GMWGameTextInfos_Objects.xml

In the file you created add the changes.
Exemple for Taoism...

You would create a file:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Civ4GameText xmlns="http://www.firaxis.com">
	<TEXT>
		<Tag>TXT_KEY_RELIGION_TAOISM</Tag>
		<English>Neopaganism</English>
		<French>
			<Text>Néo-paganisme</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</French>
		<German>Neopaganism</German>
		<Italian>Neopaganism</Italian>
		<Spanish>Neopaganism</Spanish>
	</TEXT>
</Civ4GameText>
 
I've modified religions, but only their names and buttons. Now I get my game to crash to the desktop everytime I order a city to build temple, cathedral or monastery.

Religion names show correctly, graphics show correctly and there's no problems until I choose to build any modified religious building. I know it's something with the button graphics because if I switch the button back to original everything works again.

So, is there something in the graphics I don't know? I've made buttons for civs and units same way and they work. I make 128x128 .bmp and convert it to .dds with DXTBmp.
 
Hi I was trying to modify the religion but it does not let me do anything, meaning when I try to type something it does not let me. When I bring up the file it goes on line and thats it. Please help must of skip some step while I was reading on how to change the religion file.
 
Ralendil said:
hmm yes the guide explains that

hmm .. and where is that guide ? to make happy unhappy if state religion or not... (and other variables as city maintenance...)

thx
 
How do you change the game so that religions can spread to a city that already has a religion?
 
Roman Emperor said:
Hi I was trying to modify the religion but it does not let me do anything, meaning when I try to type something it does not let me. When I bring up the file it goes on line and thats it. Please help must of skip some step while I was reading on how to change the religion file.
What is 'it'? Your text editor?
 
I sucessfully modified happiness bonuses for religion for a mod I am making... But I cannot find where the specific vaue is to modify, in the event which asks...
"Do you want to convert to sedreligion? Doing so will create +1 happiness in cities with that religion."

I need to find where that +1 value is hidden, I don't think it's in the religioninfo.xml file. Anyone know?
 
Please ignore if this has already been addressed earlier...

Is there a way to just change a missionary's "label" in XML without altering the art? For example, in a mod that I am working on, I just changed the names of the religions. That works fine, except the missionaries are still referred as Jewish, Christian, Hindu, etc...
 
Please ignore if this has already been addressed earlier...

Is there a way to just change a missionary's "label" in XML without altering the art? For example, in a mod that I am working on, I just changed the names of the religions. That works fine, except the missionaries are still referred as Jewish, Christian, Hindu, etc...

Yes. Go here: Sid Meier's Civilization 4\Assets\XML\Text and open the file CIV4GameTextInfos_Objects. Look for this tag: <Tag>TXT_KEY_UNIT_JEWISH_MISSIONARY</Tag>. Following it are the other missionaries.
 
Back
Top Bottom