Civlipedia Building Religion icon

Discussion in 'Civ4 - Creation & Customization' started by dood100125, Oct 13, 2010.

  1. dood100125

    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?
     
  2. God-Emperor

    God-Emperor Deity

    Joined:
    Jul 18, 2009
    Messages:
    3,551
    Location:
    Texas
    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.
     
  3. dood100125

    dood100125 Chieftain

    Joined:
    Sep 13, 2010
    Messages:
    34
    Location:
    Manitoba
    Ok cool thanks for the info hopefully I will be able to fix it now.:)
     
  4. dood100125

    dood100125 Chieftain

    Joined:
    Sep 13, 2010
    Messages:
    34
    Location:
    Manitoba
    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?
     
  5. Asaf

    Asaf Sleep Deprived

    Joined:
    Mar 22, 2010
    Messages:
    1,326
    Is it showing a wrong religion icon? Does it show this text at all?
    Can you post a screen shot?
     
  6. dood100125

    dood100125 Chieftain

    Joined:
    Sep 13, 2010
    Messages:
    34
    Location:
    Manitoba
    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 :
     
  7. The_J

    The_J Say No 2 Net Validations Super Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    33,946
    Location:
    DE/NL/FR
    Can you attach the files, so that we can have a look at them?

    Also try if every other icon works, put every religion with and without a symbol one time in a city and make sure that they work.
     
  8. dood100125

    dood100125 Chieftain

    Joined:
    Sep 13, 2010
    Messages:
    34
    Location:
    Manitoba
    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:)
     
  9. The_J

    The_J Say No 2 Net Validations Super Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    33,946
    Location:
    DE/NL/FR
    Oh...that was smart from whoever in the FfH2 team to program such a thing in there.
     

Share This Page