How to modify a religion's icons?

Emperor Iaius I

Chieftain
Joined
Nov 6, 2003
Messages
40
Hi. First off, I've already read through a tutorial posted on the tutorial board on how to modify a religion. What I'm trying to do is use the Greek Polytheism religion from the GreekWorld pre-included mod and use it to replace Confucianism.

I've tried to look at the mod and see what it's done, and so far, all I've managed to get working are the sounds. I've been to that textkey objects file and changed the name of the religion, but it doesn't seem to have any effect in-game. Someone suggested to clear the game's XML cache--how does one do that?

Most importantly, though, I want to know how to change the Confucianism icons to the Greek Polytheism icons used in that mod. I've located the three .dds files from that mod, but simply creating an Art\Interface\Buttons\Religions directory and slapping them in there with the names 'GreekPolytheism' changed to 'Confucianism' (as would seem simplest) doesn't work, nor does changing the icon name in the religion info file from the Confucianism dds to the GreekPolytheism dds.

Does anyone have any suggestions for me? I've seen plenty of mods that change religions, and replacing Confucianism with Zoroastrianism seems to be a common thing. So certainly, the procedure isn't terribly complicated, yes?
 
I've tried to look at the mod and see what it's done, and so far, all I've managed to get working are the sounds. I've been to that textkey objects file and changed the name of the religion, but it doesn't seem to have any effect in-game. Someone suggested to clear the game's XML cache--how does one do that?

It should be in CIV4GameTextInfos_Objects.xml. I believe there is a setting in the Civ4 ini file that will always clear the cache.







Does anyone have any suggestions for me? I've seen plenty of mods that change religions, and replacing Confucianism with Zoroastrianism seems to be a common thing. So certainly, the procedure isn't terribly complicated, yes?

I already replaced a religion with another. I used the abbamouse mod as a guide: http://forums.civfanatics.com/showthread.php?t=141585&highlight=zoroastrianism

Just download it and have a look at the xml files. They'll clue you in into what has to be done to change the images and so forth.
 
Okay, I'll take a peek into that mod then.

As for the CIV4GameTextInfos_Objects.xml file, I modified everything in there but the text has stayed the game in-game. I'll change the ini setting and see if that makes a difference.

EDIT: Well, I've looked through every XML file in there and haven't been able to fix everything. I have been able to replace the Civilopedia picture as well as the city view picture with the proper image, but the icons by the leader name and on the city in the strategy map haven't changed at all.

I also changed the ini setting so that it wouldn't cache XML files, but none of the names have been changed like I've set them to even after changing the ini.
 
Emperor Iaius I said:
I also changed the ini setting so that it wouldn't cache XML files, but none of the names have been changed like I've set them to even after changing the ini.

If all you did was rename an existing religion then I think it should only be necessary to alter the globaltextinfos. However, if you added a religion then you need to make sure that all the internal tags are correct. For instance, Islam is internally tagged as TXT_KEY_RELIGION_ISLAM. If you added a new religion, say Zoroastrianism, by making a copy of Islam and you didn't update your internal tags then your new religion will appear as 'islam' because you still have the pointer to TXT_KEY_RELIGION_ISLAM. I had this problem when adding units. So I would suggest you double check all those internal xml references.
 
No, all I did was replace Confucianism. I went to the TXT_KEY_RELIGION_CONFUCIANISM tags and replaced the text. I've done this before, for things like city names, and those worked fine. I'm wondering why I'm encountering problems here. Would creating a new game be required?

And do you have any idea about the strategy map religion icons, which haven't changed?
 
The strategy map religion icons are in Civilization IV/Assets/res/Fonts/ folder and are in GameFont.tga and GameFont_75.tga . Editing these is a real pain, and I don't think it can be done without Photoshop (I've tried GIMP and it hasn't worked -- anyone know of any programs that do?), for info on this and other aspects of adding a religion I would suggest seeing this thread (editing strategy map icons is on post 3).

As for TXT_KEY_RELIGION_CONFUCIANISM, I don't know why there would be any problems as long as you edited the text in Civ4GameTextInfos_Objects.xml -- that's where the text that shows up in the game is.
 
Oh, I have photoshop. I'm just not very good at it, but I'll poke around now that I know where to look.

Thanks for the link!
 
viper275 said:
The strategy map religion icons are in Civilization IV/Assets/res/Fonts/ folder and are in GameFont.tga and GameFont_75.tga . Editing these is a real pain, and I don't think it can be done without Photoshop (I've tried GIMP and it hasn't worked -- anyone know of any programs that do?), for info on this and other aspects of adding a religion I would suggest seeing this thread (editing strategy map icons is on post 3).

Yeah, I edited the tga with Photoshop, if I recall correctly. You can just copy and paste the icon you want over the one for the other religion. But some image editors cannot properly see the tga files, which seem to have some hidden pink geometric markers that civ4 uses to delimit where one icon begins and another ends. So you need to make sure you image editor can see these. Other than this, it was copy and paste for me.
 
Excellent, the icons work perfectly now. Photoshop did the trick.

The text still isn't working, and I have no idea why. 0_o I definately edited it in Civ4GameTextInfos_Objects.xml, but... nothin'.
 
Emperor Iaius I said:
Excellent, the icons work perfectly now. Photoshop did the trick.

The text still isn't working, and I have no idea why. 0_o I definately edited it in Civ4GameTextInfos_Objects.xml, but... nothin'.

Did you rename this tag TXT_KEY_RELIGION_CONFUCIANISM ?
This is just a tag, it don't matter how you call it, BUT it has to be the same in religioninfos.xml and the gametext file.
 
No, the tag name wasn't renamed. It's the same as it was originally, and it's the same in the religion file and the textkey objects file.
 
Back
Top Bottom