Louis the XIV
Sun King
Hi fellow civ fanatics!
In this tutorial you will learn how to edit a religion and how to edit the game font in 3 easy steps.
Trust me, it's not at all as hard as you think.
REQUIRMENTS:
-Gimp 2.10.22
-Notepad or any XML editor
NOTE: I will not be explaining in detail how to edit the religions. To see more detail visit Ralendil's how to edit Religions tutorial.
Step 1: Editing the Religion
First what you want to do is open the Assets/XML/GameInfo/CIV4ReligionInfos.xml.
You should either do this in a separate mod or create a back up of the original file. I use notepad to open xml files but any other xml editor is efficient.
Then lets say you are doing a mod about Europe and want the Orthodoxy religion instead of Taoism, simply change the <Description>Orthodoxy</Description> then change the sound to CHRISTIAN and there you have it! Now you will need a button for your religion, simply change this path:
Art/Interface/Buttons/Religions/Taoism.dds to Art/Interface/Buttons/Religions/Orthodoxy.dds and remember the path and put in an Orthodox cross or whatever you want in the Religions folder. Remember it has to be dds format.
Set 2: Adding religious Buildings&Units
Go to Assets/XML/Buildings/CIV4BuilgingInfos.xml.
Open it and search for 'Taoism', then first will appear the TAOIST TEMPLE. Change the <Description>Orthodox Temple</Description> then also change the ArtDefines TAOIST_TEMPLE to CHRISTIAN_TEMPLE. At the end also change the sound to CHRISTIAN. Do the same for all the other religious buildings.
For the unit go to Assets/XML/Units/CIV4UnitInfos.xml. Search for Taoist and change the description to Orthodox missionary and the art defines to CHRISTIAN_MISSIONARY.
Step 3: Editing the Game Font.tga (the hard part)
NOTE: In the game font if you even misplace the button by 1 mm then the result will be a mess so be careful!
Open Assets/res/GameFonts/GameFont.tga with Gimp. I am using the previous version of Gimp but it's basically the same.
This part is more complicated so you will need to pay close attention.
After you open the Game font you should see this
Click the fifth tool on the second row called eraser tool and erase the Taoist button as well as the holy city button.
The best way to change a religion is to copy the button from an existing mod, in my example I will be using the Orthodox button from Dawn of Civilization but the Sword of Islam also has it.
Open the game font in another mod that has Orthodoxy and select the third tool on the first row, the crop tool
That tool will let you select only what you want.
Don't worry about messing with the gamefont from another mod cause after this you will discard the changes.
right click Edit > Copy Visible.
Go to your original game font and click the first tool on the first row, the move tool and click Paste.
Then using the move tool move it in the right place.
Now click File > Export As > and then click Export. If it asks you to replace anything click YES.
Then this will show up:
just click Export.
Then click exit and Discard changes, as well as the tga file you took the Orthodox button from, click exit and Discard changes.
Well congratulations! You learned to edit a gamfont and to add a religion in 3 easy steps!
If you didn't understand something very clearly feel free to ask me.
In this tutorial you will learn how to edit a religion and how to edit the game font in 3 easy steps.
Trust me, it's not at all as hard as you think.
REQUIRMENTS:
-Gimp 2.10.22
-Notepad or any XML editor
NOTE: I will not be explaining in detail how to edit the religions. To see more detail visit Ralendil's how to edit Religions tutorial.
Step 1: Editing the Religion
First what you want to do is open the Assets/XML/GameInfo/CIV4ReligionInfos.xml.
You should either do this in a separate mod or create a back up of the original file. I use notepad to open xml files but any other xml editor is efficient.
Then lets say you are doing a mod about Europe and want the Orthodoxy religion instead of Taoism, simply change the <Description>Orthodoxy</Description> then change the sound to CHRISTIAN and there you have it! Now you will need a button for your religion, simply change this path:
Art/Interface/Buttons/Religions/Taoism.dds to Art/Interface/Buttons/Religions/Orthodoxy.dds and remember the path and put in an Orthodox cross or whatever you want in the Religions folder. Remember it has to be dds format.
Set 2: Adding religious Buildings&Units
Go to Assets/XML/Buildings/CIV4BuilgingInfos.xml.
Open it and search for 'Taoism', then first will appear the TAOIST TEMPLE. Change the <Description>Orthodox Temple</Description> then also change the ArtDefines TAOIST_TEMPLE to CHRISTIAN_TEMPLE. At the end also change the sound to CHRISTIAN. Do the same for all the other religious buildings.
For the unit go to Assets/XML/Units/CIV4UnitInfos.xml. Search for Taoist and change the description to Orthodox missionary and the art defines to CHRISTIAN_MISSIONARY.
Step 3: Editing the Game Font.tga (the hard part)
NOTE: In the game font if you even misplace the button by 1 mm then the result will be a mess so be careful!
Open Assets/res/GameFonts/GameFont.tga with Gimp. I am using the previous version of Gimp but it's basically the same.
This part is more complicated so you will need to pay close attention.
After you open the Game font you should see this
Click the fifth tool on the second row called eraser tool and erase the Taoist button as well as the holy city button.
The best way to change a religion is to copy the button from an existing mod, in my example I will be using the Orthodox button from Dawn of Civilization but the Sword of Islam also has it.
Open the game font in another mod that has Orthodoxy and select the third tool on the first row, the crop tool
That tool will let you select only what you want.
Don't worry about messing with the gamefont from another mod cause after this you will discard the changes.
right click Edit > Copy Visible.
Go to your original game font and click the first tool on the first row, the move tool and click Paste.
Then using the move tool move it in the right place.
Now click File > Export As > and then click Export. If it asks you to replace anything click YES.
Then this will show up:
just click Export.
Then click exit and Discard changes, as well as the tga file you took the Orthodox button from, click exit and Discard changes.
Well congratulations! You learned to edit a gamfont and to add a religion in 3 easy steps!
If you didn't understand something very clearly feel free to ask me.
Last edited: