Not sure how to put custom icons

Thibault

Chieftain
Joined
Mar 26, 2017
Messages
6
Hey everyone!

So, I'm trying to create my own leader and civilization using the Development Tools (ModBuddy + the Assets). I started with the template (the "Felines"), and I succeeded to change the leader portrait and other things.
Now, I'm trying to put a custom icon for the leader (which I made), but it doesn't show up in game. I edited NewLeader_Icons.xml (for the Icon Definitions and Icon Texture Atlases), included the .dds files and generated the .tex files of the icons, all regrouped in a Icons.xlp.

I must have done something wrong, or maybe forgotten a step, do you have an idea of where the problem could come from?

Thanks in advance!
 
Found a solution! I needed to include "<Element text="UI/Icons"/>" in my Mod.Art.xml :)
 
I needed to include "<Element text="UI/Icons"/>" in my Mod.Art.xml
That's briefer than the normal sections in Mod.Art.xml, so I'm confused.

Also do you have a UI folder in your mod?
 
Hey!

Yes, I didn't explain the solution in great details :)

So, in this file (which basically becomes the .dep file in the built solution), there is a line
Code:
<libraryName text="UITexture"/>

Right after, there is
Code:
<relativePackagePaths>
     <Element text="UILeaders"/>
</relativePackagePaths>
I simply added my line before the UILeaders element.

I do have a UI folder, which is located both in Platforms/Windows and Platforms/MacOS. I didn't create those myself - they were generated by the building of the solution!
 
And that was the last missing link in what feels like a very long chain needed to do something relatively simple. My icon now shows. I'm not sure it looks like what I intended. What's the first thing that comes to mind?

upload_2017-3-27_23-1-5.png


Anyway it's not the specific art that's tricky. That I can change easily now I know how to make it work.

Thanks again :)
 
You're welcome! I'm glad I could help you out :)
I think it's a tree, or maybe a broccoli!
 
Back
Top Bottom