I'm having a rather odd problem that I haven't been able to iron out for the life of me.
Firstly, I should explain that I've followed this guide to a T
https://docs.larian.game/Adding_New_IconsThe problem I'm having is that on restart of the Divinity Engine 2, and likewise in the actual game, the Icons won't stick.
The error message will read "Couldn't load UI icon from texture atlas: ((My Icon))!"
Everything works otherwise once I've set it up as per the guide. I will check mark all that I've done so you can get an idea of my steps.
1. Created a .dds file with the two icons I wanted to add.
2. Successfully added the two entries to the Texture Atlas editor resource I created for the icons, all organized as it should be alphabetically.
3. I have correctly put the name of the two icon entries to the stat on the skills I wanted to add them to, so the skills should be registered to the icons correctly. Triple checked it at this point.
4. I have tripled checked that the icons are actually functional. Seeing the icons appear on the skillbooks I made for the skills and for the icons within the skill page and hotbar.
5. I have also checked that the resource in the resource manager is showing the correct preview of the .dds icon sheet.
6. I made sure that the PNG's I used to create the .dds file with and the entries for the resource was inside all my mod folders for extra assurance.
Public/mymod
Mod/mymod
Project/mymod
Editor/mod/mymod
7. I have recreated the Texture Atlas files (XLS and .DDS) a number of times. Doing it as the guide says by leaving the .dds out before making the resource entry, then reloading the texture atlas XLS once I've added it back.
But try as I might, every single time I reload the divinity engine 2 or load up my mod in the actual game, the icons for the skills will just.not.work.
The resource preview in the resource manager when I load up a new Divinity Engine 2 instance (when the icons are not working) will show that the icons ARE there.
I want to emphisize how easy it is to fix it, because it doesn't make sense why it won't work even moreso because of it.
To fix it, all I gotta do is open up the Texture Atlas editor and load up the file that I made and that appears when I click "Open". The entries are there. Everything is there. Don't have to save anything. Doesn't let me save anything anyways. Exiting the Atlas Texture Editor permanently fixes the problem for the duration of the instance.
Restarting the Divinity Engine 2 breaks it again immediately. Loading it up in the actual game is just broken all together (since I can't open the Texture Atlas in the actual game :P).
It's incredibly frustrating beyond belief. It's like a wet sticker that JUST.WON'T.STICK.
Anyways... Here's the entire Error Message in the Message Log:
Couldn't load UI icon from texture atlas: 'Dragons_Frost-icon'!
Category: Art
Count: 1
Timestamp: 05-10-2017 19:54:10:928
Function: ls::UIHelper::UICreateIconMesh
Location: GameEngine\UIHelper.cpp (278)