TheLunarArmy
Chieftain
Hey again,
Been attempting to import custom Civ/Leader Icons into my custom civ. It shows the icons during the Civ selection screen, but for some reason doesnt show up during the Dawn of Man load screen, nor during diplo screen or Pedia screens.
I followed the step-by-step instructions from https://docs.google.com/document/d/1fFGEAJwyFaLmY31b6JnkI1rmu8Q07zlhuJU_2DcJ4dE/edit , but it doesnt really address the problems I have.
Some points that I tried and failed to fix the problem:
• ImportFiles loads all .tex and .dds files in both FontEnd and In-Game Actions
• Reloading/Renaming dds files and tex files, reimported with Asset Editor each time
• All dds is made using Gimp 2 → RGBA8
• Ive tried using known atlas icons like America's Icon and Teddy's Icon, which works fine (loads in pedia and diplo screen too)
• I reboot the game after each asset change
• No Database.log issues
• Assume I followed the above guide correctly, with links like UI/Icons etc coded where it should be etc.
Here is some game footage showing the problem:
Civ select screen works: Leader OK, Civ OK! (ignore Rancher and Gaming House icons, no art for it yet)
In-Game: Civ Icon fails, Leader OK
Dawn of Man: Failed Civ Icon behind text, no unit icons, Placeholder Teddy until I fix the icons.
Pedia: Everything broken. No Icons at all.
And finally, some code that might help...
The .xlp file
The NewIcons.xml (loaded in UpdateIcons)
A snippet of the Config.sql just to show everything is linked properly
Any help would be greatly appreciated. Thanksin advance!
Been attempting to import custom Civ/Leader Icons into my custom civ. It shows the icons during the Civ selection screen, but for some reason doesnt show up during the Dawn of Man load screen, nor during diplo screen or Pedia screens.
I followed the step-by-step instructions from https://docs.google.com/document/d/1fFGEAJwyFaLmY31b6JnkI1rmu8Q07zlhuJU_2DcJ4dE/edit , but it doesnt really address the problems I have.
Some points that I tried and failed to fix the problem:
• ImportFiles loads all .tex and .dds files in both FontEnd and In-Game Actions
• Reloading/Renaming dds files and tex files, reimported with Asset Editor each time
• All dds is made using Gimp 2 → RGBA8
• Ive tried using known atlas icons like America's Icon and Teddy's Icon, which works fine (loads in pedia and diplo screen too)
• I reboot the game after each asset change
• No Database.log issues
• Assume I followed the above guide correctly, with links like UI/Icons etc coded where it should be etc.
Here is some game footage showing the problem:
Civ select screen works: Leader OK, Civ OK! (ignore Rancher and Gaming House icons, no art for it yet)
In-Game: Civ Icon fails, Leader OK
Dawn of Man: Failed Civ Icon behind text, no unit icons, Placeholder Teddy until I fix the icons.
Pedia: Everything broken. No Icons at all.
And finally, some code that might help...
The .xlp file
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<AssetObjects::XLP>
<m_Version>
<major>4</major>
<minor>0</minor>
<build>253</build>
<revision>867</revision>
</m_Version>
<m_ClassName text="UITexture"/>
<m_PackageName text="UI/Icons"/>
<m_Entries>
<!-- LEADER ICON -->
<Element>
<m_EntryID text="ICON_LEADER_TLA_GEOFF_256"/>
<m_ObjectName text="ICON_LEADER_TLA_GEOFF_256"/>
</Element>
<Element>
<m_EntryID text="ICON_LEADER_TLA_GEOFF_32"/>
<m_ObjectName text="ICON_LEADER_TLA_GEOFF_32"/>
</Element>
<Element>
<m_EntryID text="ICON_LEADER_TLA_GEOFF_45"/>
<m_ObjectName text="ICON_LEADER_TLA_GEOFF_45"/>
</Element>
<Element>
<m_EntryID text="ICON_LEADER_TLA_GEOFF_50"/>
<m_ObjectName text="ICON_LEADER_TLA_GEOFF_50"/>
</Element>
<Element>
<m_EntryID text="ICON_LEADER_TLA_GEOFF_55"/>
<m_ObjectName text="ICON_LEADER_TLA_GEOFF_55"/>
</Element>
<Element>
<m_EntryID text="ICON_LEADER_TLA_GEOFF_64"/>
<m_ObjectName text="ICON_LEADER_TLA_GEOFF_64"/>
</Element>
<Element>
<m_EntryID text="ICON_LEADER_TLA_GEOFF_80"/>
<m_ObjectName text="ICON_LEADER_TLA_GEOFF_80"/>
</Element>
<!-- CIVILIZATION ICON -->
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_22"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_22"/>
</Element>
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_30"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_30"/>
</Element>
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_32"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_32"/>
</Element>
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_36"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_36"/>
</Element>
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_44"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_44"/>
</Element>
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_48"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_48"/>
</Element>
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_50"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_50"/>
</Element>
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_64"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_64"/>
</Element>
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_80"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_80"/>
</Element>
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_200"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_200"/>
</Element>
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_256"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_256"/>
</Element>
<Element>
<m_EntryID text="ICON_CIVILIZATION_INCONTROL_COLOUR_45"/>
<m_ObjectName text="ICON_CIVILIZATION_INCONTROL_COLOUR_45"/>
</Element>
</m_Entries>
<m_AllowedPlatforms>
<Element>WINDOWS</Element>
<Element>LINUX</Element>
<Element>MACOS</Element>
<Element>IOS</Element>
</m_AllowedPlatforms>
</AssetObjects::XLP>
The NewIcons.xml (loaded in UpdateIcons)
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- NewIcons -->
<!-- Author: TLA -->
<!-- DateCreated: 3/19/2018 12:53:53 PM -->
<GameInfo>
<IconTextureAtlases>
<!--Leader Icons-->
<Row Name="ICON_ATLAS_TLA_GEOFF" IconSize="32" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_TLA_GEOFF_32.dds"/>
<Row Name="ICON_ATLAS_TLA_GEOFF" IconSize="45" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_TLA_GEOFF_45.dds"/>
<Row Name="ICON_ATLAS_TLA_GEOFF" IconSize="50" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_TLA_GEOFF_50.dds"/>
<Row Name="ICON_ATLAS_TLA_GEOFF" IconSize="55" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_TLA_GEOFF_55.dds"/>
<Row Name="ICON_ATLAS_TLA_GEOFF" IconSize="64" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_TLA_GEOFF_64.dds"/>
<Row Name="ICON_ATLAS_TLA_GEOFF" IconSize="80" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_TLA_GEOFF_80.dds"/>
<Row Name="ICON_ATLAS_TLA_GEOFF" IconSize="256" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_TLA_GEOFF_256.dds"/>
<!--Civ Icons-->
<Row Name="ICON_ATLAS_TLA_INCONTROL" IconSize="22" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_CIVILIZATION_INCONTROL_22.dds"/>
<Row Name="ICON_ATLAS_TLA_INCONTROL" IconSize="30" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_CIVILIZATION_INCONTROL_30.dds"/>
<Row Name="ICON_ATLAS_TLA_INCONTROL" IconSize="36" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_CIVILIZATION_INCONTROL_36.dds"/>
<Row Name="ICON_ATLAS_TLA_INCONTROL" IconSize="44" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_CIVILIZATION_INCONTROL_44.dds"/>
<Row Name="ICON_ATLAS_TLA_INCONTROL" IconSize="48" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_CIVILIZATION_INCONTROL_48.dds"/>
<Row Name="ICON_ATLAS_TLA_INCONTROL" IconSize="50" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_CIVILIZATION_INCONTROL_50.dds"/>
<Row Name="ICON_ATLAS_TLA_INCONTROL" IconSize="64" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_CIVILIZATION_INCONTROL_64.dds"/>
<Row Name="ICON_ATLAS_TLA_INCONTROL" IconSize="80" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_CIVILIZATION_INCONTROL_80.dds"/>
<Row Name="ICON_ATLAS_TLA_INCONTROL" IconSize="200" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_CIVILIZATION_INCONTROL_200.dds"/>
<Row Name="ICON_ATLAS_TLA_INCONTROL" IconSize="256" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_CIVILIZATION_INCONTROL_256.dds"/>
<Row Name="ICON_ATLAS_TLA_INCONTROL" IconSize="45" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_CIVILIZATION_INCONTROL_COLOUR_45.dds"/>
</IconTextureAtlases>
<IconDefinitions>
<Row Name="ICON_LEADER_TLA_GEOFF" Atlas="ICON_ATLAS_TLA_GEOFF" Index="0"/>
<Row Name="ICON_CIVILIZATION_TLA_INCONTROL" Atlas="ICON_ATLAS_TLA_INCONTROL" Index="0"/>
<Row Name="ICON_BUILDING_TLA_UB" Atlas="ICON_ATLAS_BUILDINGS" Index="1"/>
</IconDefinitions>
</GameInfo>
A snippet of the Config.sql just to show everything is linked properly
Code:
INSERT INTO Players (Domain, CivilizationType, CivilizationName, CivilizationIcon, CivilizationAbilityName, CivilizationAbilityDescription, CivilizationAbilityIcon, LeaderType, LeaderName, LeaderIcon, LeaderAbilityName, LeaderAbilityDescription, LeaderAbilityIcon)
VALUES (
-- Civilization
'Players:Expansion1_Players', -- Domain
'CIVILIZATION_TLA_INCONTROL', -- CivilizationType
'LOC_CIVILIZATION_TLA_INCONTROL_NAME', -- CivilizationName
'ICON_CIVILIZATION_TLA_INCONTROL', -- CivilizationIcon
'LOC_TRAIT_CIVILIZATION_TLA_INCONTROL_UA_NAME', -- CivilizationAbilityName
'LOC_TRAIT_CIVILIZATION_TLA_INCONTROL_UA_DESCRIPTION', -- CivilizationAbilityDescription
'ICON_CIVILIZATION_TLA_INCONTROL', -- CivilizationAbilityIcon
-- Leader
'LEADER_TLA_GEOFF', -- LeaderType
'LOC_LEADER_TLA_GEOFF_NAME', -- LeaderName
'ICON_LEADER_TLA_GEOFF', -- LeaderIcon
'LOC_TRAIT_LEADER_TLA_GEOFF_UA_NAME', -- LeaderAbilityName
'LOC_TRAIT_LEADER_TLA_GEOFF_UA_DESCRIPTION', -- LeaderAbilityDescription
'ICON_LEADER_TLA_GEOFF' -- LeaderAbilityIcon
);
Any help would be greatly appreciated. Thanksin advance!