Skyzoh
Chieftain
- Joined
- Mar 5, 2018
- Messages
- 14
Hi guys,
This problem has been plaguing me for a while now. You can see from the first attached pictures that I'm missing a portrait in-game. However, from the game creation menu everything is showing just fine (as shown in the second attached image).
here is some relevant code:
- where I define the icons in Icons.xml
- And where I add them to the game in config.sql
The icons are compiled in the front-end and in-game actions in "UpdateIcons" and the config.sql is compiled in the front-end actions in "updateDatabase"
I tried to check other mod, but I cannot figure out what I'm missing. Can anyone help me please!
This problem has been plaguing me for a while now. You can see from the first attached pictures that I'm missing a portrait in-game. However, from the game creation menu everything is showing just fine (as shown in the second attached image).
here is some relevant code:
- where I define the icons in Icons.xml
Code:
<GameData>
<IconTextureAtlases>
<!--Leader Icons-->
<Row Name="ICON_ATLAS_LEADERS_SKYN_MACKENZIE" IconSize="32" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_SKYN_MACKENZIE_32.dds"/>
<Row Name="ICON_ATLAS_LEADERS_SKYN_MACKENZIE" IconSize="45" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_SKYN_MACKENZIE_45.dds"/>
<Row Name="ICON_ATLAS_LEADERS_SKYN_MACKENZIE" IconSize="50" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_SKYN_MACKENZIE_50.dds"/>
<Row Name="ICON_ATLAS_LEADERS_SKYN_MACKENZIE" IconSize="55" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_SKYN_MACKENZIE_55.dds"/>
<Row Name="ICON_ATLAS_LEADERS_SKYN_MACKENZIE" IconSize="64" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_SKYN_MACKENZIE_64.dds"/>
<Row Name="ICON_ATLAS_LEADERS_SKYN_MACKENZIE" IconSize="80" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_SKYN_MACKENZIE_80.dds"/>
<Row Name="ICON_ATLAS_LEADERS_SKYN_MACKENZIE" IconSize="256" IconsPerRow="1" IconsPerColumn="1" Filename="ICON_LEADER_SKYN_MACKENZIE_256.dds"/>
</IconTextureAtlases>
<IconDefinitions>
<!--Leader Icons-->
<Row Name="ICON_LEADER_M_KING" Atlas="ICON_ATLAS_LEADERS_SKYN_MACKENZIE" Index="0"/>
</IconDefinitions>
</GameData>
- And where I add them to the game in config.sql
Code:
INSERT INTO Players
(CivilizationType, Portrait, PortraitBackground, LeaderType, LeaderName, LeaderIcon, LeaderAbilityName, LeaderAbilityDescription, LeaderAbilityIcon, CivilizationName, CivilizationIcon, CivilizationAbilityName, CivilizationAbilityDescription, CivilizationAbilityIcon, Domain)
VALUES ('CIVILIZATION_SKYN_CANADA', 'LEADER_MACKENZIE.dds', 'leader-bg', 'LEADER_WILLIAM_LYON_MACKENZIE_KING', 'LOC_LEADER_WILLIAM_LYON_MACKENZIE_KING_NAME', 'ICON_LEADER_M_KING', 'LOC_TRAIT_LEADER_CONSCRIPTION_AND_DIPLOMACY_NAME', 'LOC_TRAIT_LEADER_CONSCRIPTION_AND_DIPLOMACY_DESCRIPTION', 'ICON_LEADER_M_KING', 'LOC_CIVILIZATION_SKYN_CANADA_NAME', 'ICON_CIVILIZATION_SKYN_CANADA', 'LOC_TRAIT_SKYN_COLD_HARDENED_NAME', 'LOC_TRAIT_SKYN_COLD_HARDENED_DESCRIPTION', 'ICON_CIVILIZATION_SKYN_CANADA', 'Players:Expansion1_Players');
The icons are compiled in the front-end and in-game actions in "UpdateIcons" and the config.sql is compiled in the front-end actions in "updateDatabase"
I tried to check other mod, but I cannot figure out what I'm missing. Can anyone help me please!