Issues with custom difficulty icons not showing up in game

Zobtzler

Chieftain
Joined
Oct 21, 2017
Messages
95
Location
Sweden
I have added a custom difficulty (apart from settler, chieftain etc). I've added the .dds and .tex files, xlps etc.
The only thing that seems to be missing is a column in the database where each difficulty is connected to each icon.

For reference: The Players table has two columns called CivilizationIcon and LeaderIcon
These two columns have values like "ICON_CIVILIZATION_AMERICA" and "ICON_LEADER_T_ROOSEVELT".

However I can't find where "ICON_DIFFICULTY_PRINCE" gets assigned to "DIFFICULTY_PRINCE".

Does anyone know where I can find it? I've tried to look through all 3 cache sqlite database files, a bunch of XML files, but yet to no avail.
 
Contents of file Icons_GameSettings.xml from folder
C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VI\Base\Assets\UI\Icons
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
  <IconTextureAtlases>
    <Row Name="ICON_ATLAS_GAME_SPEED" IconSize="62" IconsPerRow="1" IconsPerColumn="5" Filename="Shell_GameSpeed"/>
    <Row Name="ICON_ATLAS_GAME_DIFFICULTY" IconSize="62" IconsPerRow="1" IconsPerColumn="8" Filename="Shell_GameDifficulty"/>
  </IconTextureAtlases>
  <IconDefinitions>
    <Row Name="ICON_GAMESPEED_ONLINE"        Atlas="ICON_ATLAS_GAME_SPEED"   Index="0"/>
    <Row Name="ICON_GAMESPEED_QUICK"         Atlas="ICON_ATLAS_GAME_SPEED"   Index="1"/>
    <Row Name="ICON_GAMESPEED_STANDARD"      Atlas="ICON_ATLAS_GAME_SPEED"   Index="2"/>
    <Row Name="ICON_GAMESPEED_EPIC"          Atlas="ICON_ATLAS_GAME_SPEED"   Index="3"/>
    <Row Name="ICON_GAMESPEED_MARATHON"      Atlas="ICON_ATLAS_GAME_SPEED"   Index="4"/>

    <Row Name="ICON_DIFFICULTY_SETTLER"  Atlas="ICON_ATLAS_GAME_DIFFICULTY"   Index="0"/>
    <Row Name="ICON_DIFFICULTY_CHIEFTAIN" Atlas="ICON_ATLAS_GAME_DIFFICULTY"   Index="1"/>
    <Row Name="ICON_DIFFICULTY_WARLORD"  Atlas="ICON_ATLAS_GAME_DIFFICULTY"   Index="2"/>
    <Row Name="ICON_DIFFICULTY_PRINCE"   Atlas="ICON_ATLAS_GAME_DIFFICULTY"   Index="3"/>
    <Row Name="ICON_DIFFICULTY_KING"     Atlas="ICON_ATLAS_GAME_DIFFICULTY"   Index="4"/>
    <Row Name="ICON_DIFFICULTY_EMPEROR"  Atlas="ICON_ATLAS_GAME_DIFFICULTY"   Index="5"/>
    <Row Name="ICON_DIFFICULTY_IMMORTAL" Atlas="ICON_ATLAS_GAME_DIFFICULTY"   Index="6"/>
    <Row Name="ICON_DIFFICULTY_DEITY"    Atlas="ICON_ATLAS_GAME_DIFFICULTY"   Index="7"/>
  </IconDefinitions>
</GameInfo>
Like for many game elements there is not a direct specified "hook-up" between
Code:
<Row DifficultyType="DIFFICULTY_SETTLER" Name="LOC_DIFFICULTY_SETTLER_NAME"/>
and
Code:
<Row Name="ICON_DIFFICULTY_SETTLER"  Atlas="ICON_ATLAS_GAME_DIFFICULTY"   Index="0"/>
It is implied for nearly everything registered as a "Type" in table "Types" that its Icon will be "ICON_THING" if the Type is called "THING". The game's various User Interface lua scripts are coded under this assumption, so UNIT_BUILDER needs ICON_UNIT_BUILDER, BUILDING_TEMPLE needs ICON_BUILDING_TEMPLE and so forth.
 
Top Bottom