1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. Photobucket has changed its policy concerning hotlinking images and now requires an account with a $399.00 annual fee to allow hotlink. More information is available at: this link.
    Dismiss Notice
  3. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  4. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  5. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  6. Dismiss Notice
  7. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

[Reference] Font Icons

Discussion in 'CivBE - Tutorials and References' started by whoward69, Nov 13, 2014.

  1. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    7,996
    Location:
    Near Portsmouth, UK
    All the font icons (those accessed as [ICON_XYZ] within text strings) for standard CivBE



    Row 1 (left to right)
    • ICON_CULTURE
    • ICON_RESEARCH
    • ICON_ENERGY
    • ICON_PRODUCTION
    • ICON_FOOD
    • ICON_PURITY
    • ICON_SUPREMACY
    • ICON_HARMONY
    • ICON_HEALTH
    • ICON_UNHEALTH
    • ICON_CITIZEN
    Row 2
    • ICON_BULLET
    • ICON_CHECKMARK
    • ICON_PLUS
    • ICON_MINUS
    • ICON_MOVES
    • ICON_RANGE_STRENGTH
    • ICON_STRENGTH
    • ICON_ATTACK_RANGE
    • ICON_ORBITAL_RANGE
    • ICON_ORBITAL_DURATION
    • ICON_ARROW_LEFT
    Row 3
    • ICON_RAZING
    • ICON_MARTIAL_LAW
    • ICON_PUPPET
    • ICON_RESISTANCE
    • ICON_CAPITAL
    • ICON_INTERNATIONAL_TRADE
    • ICON_SPY
    • ICON_SEARCH
    • ICON_FIBER
    • ICON_CORAL
    • ICON_RESILIN
    Row 4
    • ICON_CHITIN
    • ICON_SILICA
    • ICON_FUNGUS
    • ICON_BASALT
    • ICON_GOLD
    • ICON_COPPER
    • ICON_FRUIT
    • ICON_ALGAE
    • ICON_PETROLEUM
    • ICON_TITANIUM
    • ICON_GEOTHERMAL
    Row 5
    • ICON_XENOMASS
    • ICON_FLOAT_STONE
    • ICON_FIRAXITE
    • ICON_DERELICT_SETTLEMENT
    • ICON_CRASHED_SATELLITE
    • ICON_ALIEN_SKELETON
    • ICON_ARTIFACTS
    • ICON_TUBER
    • ICON_CONNECTED
    • ICON_BLOCKADED
    • ICON_OCCUPIED
    Row 6
    • ICON_ARROW_RIGHT
    • ICON_CHAT_ALL
    • ICON_CHAT_TEAM
    • ICON_CHAT_PLAYER

    Aliases
    • ICON_HEALTH, ICON_HEALTH_1, ICON_HEALTH_2
    • ICON_UNHEALTH, ICON_HEALTH_3, ICON_HEALTH_4
    • ICON_CAPITAL, ICON_CAPITOL
    • ICON_SEARCH, ICON_VIEW_CITY
     

    Attached Files:

  2. greenlamb

    greenlamb Chieftain

    Joined:
    Jun 24, 2014
    Messages:
    26
    Thanks a lot for this reference. A question: if I wanted to replace one of the font icons, lets say the food icon and replace it with a water droplet, how do I do it?

    I've tried the following:
    Method 1. Just simply creating a FontIcons.dds that has the replacement and adding it into the mod with VFS = true, hoping that it would just replace the original. Didn't work (obviously I don't understand the Virtual File System)
    Method 2. Creating a .dds, .ggxml, and .xml as per your post here and a bit of Isnorden's code here, with the xml as:
    Spoiler :
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <GameData>
      <IconFontTextures>
        <Row>
          <IconFontTexture>ICON_MOD_FONT</IconFontTexture>
          <IconFontTextureFile>ModFontIcons</IconFontTextureFile>
        </Row>
      </IconFontTextures>
    
      <IconFontMapping>
    
        <Delete IconName="ICON_FOOD" />
        
        <Row>
          <IconName>ICON_FOOD</IconName>
          <IconFontTexture>ICON_MOD_FONT</IconFontTexture>
          <IconMapping>5</IconMapping>
        </Row>
      </IconFontMapping>
    </GameData>
    But it also didn't work :(

    Could you possibly give me some pointers on how to proceed? Thanks so much!

    **********************************************
    1st EDIT: Found solutions, for those who come looking for it.

    Method 1: The quick and dirty non-mod way of replacing .dds files that are used by default in the game is as per this thread.
    a. Go to the folder Documents > My Games > Sid Meier's Civilization Beyond Earth, and open config.ini.
    b. Look for LooseFilesOverridePAK = 0, and change it to LooseFilesOverridePAK = 1. This prompts the game to look for newer files in the assets folder outside the default files packaged in the .fpk files.
    c. Go to the CivBE installation folder and go into the assets folder, commonly C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization Beyond Earth\assets. Move your replacement .dds into this folder. Preferably put it into it's own folder.

    Method 2: The proper mod way of doing this:
    a. Create the .dds, .ggxml, and .xml as per the post here as previously mentioned.
    b. Replace all references to the old font icon to the new font icon. E.g. by searching, I know that TXT_KEY_COLONIST_REFUGEES in the original game refers to [ICON_FOOD], which I want to change to refer to [ICON_WATER]. I then create the XML below.
    Spoiler :
    Code:
    <GameData>
      <Language_en_US>
    
        <Delete Tag="TXT_KEY_COLONIST_REFUGEES" /> 
        
        <Row Tag="TXT_KEY_COLONIST_REFUGEES">
          <Text>+2 [ICON_WATER] Water in every City.</Text>
        </Row>
        
      </Language_en_US>
    </GameData>
    ******
    2nd EDIT: Method 2 won't work, because font icons no longer work as per Civ5, as found out by whoward69 here. Bloody hell, Firaxis, stop making it harder and harder for modders!

    Also, I've added an attachment for the .PSD and .XCF (for GIMP) for a better version of the fonticons. Somehow Photoshop doesn't read the original .dds very well, but GIMP reads it better, with all the transparent background and stuff. Here it is for everyone to use.
     

    Attached Files:

Share This Page