1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Custom Leader Icon not loading

Discussion in 'Civ5 - Creation & Customization' started by Iwan, Aug 19, 2017.

  1. Iwan

    Iwan Chieftain

    Joined:
    Aug 19, 2017
    Messages:
    3
    Gender:
    Male
    When I load up the mod and try to select my custom civ, it gives me an error about not being able to find the texture for the leader icon.
    VFS = True is set for all 3 leader icons
    Spoiler Icons.xml :
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Created by ModBuddy on 8/19/2017 1:22:44 PM -->
    <GameData>
        <IconTextureAtlases>
            <Row>
                <Atlas>VI_SUN_ATLAS</Atlas>
                <IconSize>256</IconSize>
                <Filename>SunAtlas_256.dds</Filename>
                <IconsPerRow>1</IconsPerRow>
                <IconsPerColumn>1</IconsPerColumn>
            </Row>
            <Row>
                <Atlas>VI_SUN_ATLAS</Atlas>
                <IconSize>128</IconSize>
                <Filename>SunAtlas_128.dds</Filename>
                <IconsPerRow>1</IconsPerRow>
                <IconsPerColumn>1</IconsPerColumn>
            </Row>
            <Row>
                <Atlas>VI_SUN_ATLAS</Atlas>
                <IconSize>64</IconSize>
                <Filename>SunAtlas_64.dds</Filename>
                <IconsPerRow>1</IconsPerRow>
                <IconsPerColumn>1</IconsPerColumn>
            </Row>
        </IconTextureAtlases>
    </GameData>
    

    Spoiler Leader.xml :
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <GameData>
      <Leaders>
        <Row>
          <Type>LEADER_VI_SUN</Type>
          <Description>TXT_KEY_LEADER_VI_SUN</Description>
          <Civilopedia>TXT_KEY_LEADER_VI_SUN_PEDIA</Civilopedia>
          <CivilopediaTag>TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN</CivilopediaTag>
          <ArtDefineTag>Bismark_Scene.xml</ArtDefineTag>
          <VictoryCompetitiveness>7</VictoryCompetitiveness>
          <WonderCompetitiveness>6</WonderCompetitiveness>
          <MinorCivCompetitiveness>7</MinorCivCompetitiveness>
          <Boldness>4</Boldness>
          <DiploBalance>8</DiploBalance>
          <WarmongerHate>6</WarmongerHate>
          <WorkAgainstWillingness>0</WorkAgainstWillingness>
          <WorkWithWillingness>0</WorkWithWillingness>
          <DenounceWillingness>8</DenounceWillingness>
          <DoFWillingness>6</DoFWillingness>
          <Loyalty>6</Loyalty>
          <Neediness>7</Neediness>
          <Forgiveness>6</Forgiveness>
          <Chattiness>5</Chattiness>
          <Meanness>4</Meanness>
          <PortraitIndex>0</PortraitIndex>
          <IconAtlas>VI_SUN_ATLAS</IconAtlas>
        </Row>
      </Leaders>
    
      <Leader_MajorCivApproachBiases>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MajorCivApproachType>MAJOR_CIV_APPROACH_WAR</MajorCivApproachType>
          <Bias>6</Bias>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MajorCivApproachType>MAJOR_CIV_APPROACH_HOSTILE</MajorCivApproachType>
          <Bias>4</Bias>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MajorCivApproachType>MAJOR_CIV_APPROACH_DECEPTIVE</MajorCivApproachType>
          <Bias>7</Bias>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MajorCivApproachType>MAJOR_CIV_APPROACH_GUARDED</MajorCivApproachType>
          <Bias>7</Bias>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MajorCivApproachType>MAJOR_CIV_APPROACH_AFRAID</MajorCivApproachType>
          <Bias>4</Bias>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MajorCivApproachType>MAJOR_CIV_APPROACH_FRIENDLY</MajorCivApproachType>
          <Bias>7</Bias>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MajorCivApproachType>MAJOR_CIV_APPROACH_NEUTRAL</MajorCivApproachType>
          <Bias>4</Bias>
        </Row>
      </Leader_MajorCivApproachBiases>
      <Leader_MinorCivApproachBiases>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MinorCivApproachType>MINOR_CIV_APPROACH_IGNORE</MinorCivApproachType>
          <Bias>4</Bias>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MinorCivApproachType>MINOR_CIV_APPROACH_FRIENDLY</MinorCivApproachType>
          <Bias>5</Bias>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MinorCivApproachType>MINOR_CIV_APPROACH_PROTECTIVE</MinorCivApproachType>
          <Bias>7</Bias>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MinorCivApproachType>MINOR_CIV_APPROACH_CONQUEST</MinorCivApproachType>
          <Bias>7</Bias>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <MinorCivApproachType>MINOR_CIV_APPROACH_BULLY</MinorCivApproachType>
          <Bias>4</Bias>
        </Row>
      </Leader_MinorCivApproachBiases>
      <Leader_Flavors>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_OFFENSE</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_DEFENSE</FlavorType>
          <Flavor>6</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_CITY_DEFENSE</FlavorType>
          <Flavor>6</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_MILITARY_TRAINING</FlavorType>
          <Flavor>8</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_RECON</FlavorType>
          <Flavor>8</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_RANGED</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_MOBILE</FlavorType>
          <Flavor>7</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_NAVAL</FlavorType>
          <Flavor>3</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
          <Flavor>3</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_NAVAL_GROWTH</FlavorType>
          <Flavor>4</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_NAVAL_TILE_IMPROVEMENT</FlavorType>
          <Flavor>4</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_AIR</FlavorType>
          <Flavor>6</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_EXPANSION</FlavorType>
          <Flavor>7</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_GROWTH</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_TILE_IMPROVEMENT</FlavorType>
          <Flavor>6</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_INFRASTRUCTURE</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_PRODUCTION</FlavorType>
          <Flavor>8</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_GOLD</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_SCIENCE</FlavorType>
          <Flavor>7</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_CULTURE</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_HAPPINESS</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_GREAT_PEOPLE</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_WONDER</FlavorType>
          <Flavor>4</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_RELIGION</FlavorType>
          <Flavor>3</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_DIPLOMACY</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_SPACESHIP</FlavorType>
          <Flavor>8</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_WATER_CONNECTION</FlavorType>
          <Flavor>4</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_NUKE</FlavorType>
          <Flavor>7</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_USE_NUKE</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_ESPIONAGE</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_ANTIAIR</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_AIR_CARRIER</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_ARCHAEOLOGY</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_I_LAND_TRADE_ROUTE</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_I_SEA_TRADE_ROUTE</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_I_TRADE_ORIGIN</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_I_TRADE_DESTINATION</FlavorType>
          <Flavor>5</Flavor>
        </Row>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <FlavorType>FLAVOR_AIRLIFT</FlavorType>
          <Flavor>5</Flavor>
        </Row>
      </Leader_Flavors>
      <Leader_Traits>
        <Row>
          <LeaderType>LEADER_VI_SUN</LeaderType>
          <TraitType>TRAIT_CONVERTS_LAND_BARBARIANS</TraitType>
        </Row>
      </Leader_Traits>
    
      <Language_en_US>
        <Row Tag="TXT_KEY_LEADER_VI_SUN">
          <Text>Sun-Dragon</Text>
        </Row>
        <Row Tag="TXT_KEY_LEADER_VI_SUN_PEDIA">
          <Text><!-- Add Civilopedia text here --></Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_HEADING_1">
          <Text>History</Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_HEADING_2">
          <Text>Early Life</Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_HEADING_3">
          <Text>Foreign Policy</Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_HEADING_4">
          <Text>Domestic Policy</Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_HEADING_5">
          <Text>Judgment of History</Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_LIVED">
          <Text>1815 - 1898 AD</Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_NAME">
          <Text>Sun-Dragon</Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_SUBTITLE">
          <Text>Emperor of the Solarian Regime</Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_TEXT_1">
          <Text><!-- Add Civilopedia text here --></Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_TEXT_2">
          <Text><!-- Add Civilopedia text here --></Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_TEXT_3">
          <Text><!-- Add Civilopedia text here --></Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_TEXT_4">
          <Text><!-- Add Civilopedia text here --></Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_TEXT_5">
          <Text><!-- Add Civilopedia text here --></Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_TITLES_1">
          <Text>Emperor of the Solarian Regime</Text>
        </Row>
        <Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_VI_SUN_TITLES_2">
          <Text>"Great Sun-Dragon"</Text>
        </Row>
      </Language_en_US>
    </GameData>
    

    I've tried just the base filename(SunAtlas_128.dds) as well as "art/SunAtlas_128.dds", and neither have worked
     
  2. Durkle

    Durkle Chieftain

    Joined:
    Jul 29, 2017
    Messages:
    29
    Gender:
    Male
    Location:
    Jerusalem
    In what format did you export the files? Was it using Photoshop or GIMP or some other program? I know that in GIMP the default dds export options work, but in Photoshop you need to pick DXT3 or DXT5.

    Although I don't see why that would cause this error. Only time I've ever seen it is when I don't set to VFS to true... And you said you did that so...
     
  3. Troller0001

    Troller0001 Watching from a safe distance

    Joined:
    Mar 9, 2016
    Messages:
    740
    Gender:
    Male
    Location:
    The Netherlands
    Use RGBA8 encoding when exporting the image to .dds

    These are the settings that I use when exporting (non-Strategic View) icons
    Spoiler :

    settings.PNG
     

Share This Page