Civlipedia Building Religion icon

dood100125

Chieftain
Joined
Sep 13, 2010
Messages
34
Location
Manitoba
In my mod I made a new religion and have made a building for it to but where show the icon of the religion, it shows the religion icon of the base codes. I have tried to fix it but cant figure it out but have come to the conclusion that it has something to do with this line of code:
Code:
</Flavor>
                <Flavor>
                    <FlavorType>FLAVOR_RELIGION</FlavorType>
                    <iFlavor>5</iFlavor>
                </Flavor>
            </Flavors>

But I have no idea how to change that could some one help me please?
 
Flavors have nothing to do with icons. Flavors are basically hints to the AI.

"Icons" are either buttons which are .dds files and which are mentioned in the CIV4ReligionInfo.xml file or they are glyphs in the GameFont.tga and GameFont_75.tga file, depending on where they appear.

The glyphs in the two .tga font files are use in the same order they appear in the CIV4ReligionInfo.xml file (there is no other mapping, just the order). Those files are very picky. Any changes have to exactly match the format or bad things happen. The important stuff in them is invisible due to the alpha channel. There is an invisible magenta (RGB of 255,0,255) border around each glyph and one pixel invisible cyan (RGB of 0,255,255) dots to the lower right of each glyph (instead of magenta at that pixel) - all invisible because the alpha channel is set to make the areas where they are fully transparent.
 
I have edited the glyphs in the two .tga files but it is not showing my picture.
I wabt to change the religion picture of honour to my religion picture "see below" how would I do this?
 
Every thing is correct and I tested it ingame and you need to have my religion to build it but in the cilvipedia it shows the order icon instead of mine.
Spoiler :


I also have a problem when I am playing, the religion icons by my name and city are not my icons? I have edited and added my icons right after the last other religion icon so its is in order with the religion.xml in the glyphs in the two font .tga files which I hoped would fix it but they are still showing the wrong icons.

See:
Spoiler :
 
Ok I am not sure which files you want exactly but I uploaded religion.xml,artdefines.xml, and the gamefont gamefont_75.tga

Files:http://www.mediafire.com/file/so3sg25r5ds1aa2/CIV4ArtDefines_Building.xml
http://www.mediafire.com/file/bvob73i976evdw2/CIV4ReligionInfo.xml
http://www.mediafire.com/file/bb6qujeb058elpc/GameFont.tga
http://www.mediafire.com/file/851i4djov620507/GameFont_75.tga


"edit" I found out the problem I went back and checked my religionsinf.xml and found this line
Code:
<iTGAIndex>7</iTGAIndex>
it was pointing at the wrong one so I just changed it to the matching one on my gamefont.tg and it worked! Thank you for helping me everybody:)
 
Top Bottom