Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#622777 28/09/17 03:15 AM
Joined: Sep 2017
F
Fivs Offline OP
stranger
OP Offline
stranger
F
Joined: Sep 2017
I was following the "creating your own skill" guide on the wiki and it didn't mention anything about custom icons. I was wondering if anyone know of a way or if there's a guide out there to import custom icons into the editor.

Joined: May 2017
enthusiast
Offline
enthusiast
Joined: May 2017
So as far as I understand it, the workflow for creating icons is a little strange. Strange because it seems the best way to map your icons to your atlas is by using the single images, but you have to pack them beforehand.

Preparing the Texture File:
1. Pack a collection of images (64x64) into a single image file using power of 2 constraints (512x512, 1024x1024, etc.). Make sure to have the images sorted by name.
2. Convert the image to DDS, with alpha and BC3 compression.
3. Move that DDS file to a location inside your mod's directory, inside the data directory. I moved mine to "Data/Public/MyModName_GUID/Assets/Textures".
4. Inside the editor, add that texture to a package in the Resource Manager (I created a package called Textures).

Preparing the Texture Atlas file:
1. Open the Texture Atlas Editor.
2. Click File -> New.
3. Select a location for your .lsx file (I put mine in Public/MyModName_GUID/GUI).
4. Select the DDS file as the texture.
5. Select the size of the individual icons and the size of the image.
6. Select the package you created previously, then click Save.
7. Important: If you get a "That file is already exists" error, move your DDS texture file out of where you placed it, run through the steps to create the atlas file, then move the DDS file back in and re-open your atlas file. This bug seems to exist because the Texture Atlas Editor was originally suppose to make the DDS file itself, but doesn't actually do it right now.

Adding Atlas Entries:
1. Click Edit -> Add Entries.
2. Navigate to where your collection of single images is.
3. Select all the icons you packed and add them. If you packed your texture right (alphabetically), all of the new atlas entries should match up with the image.
4. Save.

Notes:
I used TexturePacker for packaging my icons. Here's my settings:

[Linked Image]

I used nvidia-texture-tools to convert my image to DDS. I just converted it as a single file. This could be optimized for a more "drag and drop" approach with a batch file. The command I used was:
Code
nvcompress -alpha -bc3 Icons.png Icons.dds

TexturePacker has support for a custom exporter data format, so it's possible we could create an exporter for DOS2's atlas format, and skip a few steps.

Last edited by LaughingLeader; 29/09/17 05:01 AM. Reason: Updated in response to a bug.
Joined: Sep 2017
N
stranger
Offline
stranger
N
Joined: Sep 2017
I followed all your instructions but how do i assign the imported icons to a skill as skill-icon.

Thank You

Joined: Oct 2017
T
stranger
Offline
stranger
T
Joined: Oct 2017
Hello,

I have the same problem. I followed the instructions above. That has everything worked great, I have also got an atlassheet. Now I have the problem, however, that I also do not know how to assign the icon to a skill. Or how to find out how the name is. I know the assignment of an existing icon, but from the newly inserted icons I can not find the label out?

Thanks for Help! :)

Joined: May 2017
enthusiast
Offline
enthusiast
Joined: May 2017
Skills/items/statuses are assigned icons in the stats editor. There's a field for the icon name. The icon names you use are the entry names of the icon in your atlas sheet. You can right click on entry names and copy the name to make it even easier.

Joined: Oct 2017
T
stranger
Offline
stranger
T
Joined: Oct 2017
Unfortunately, everything does not work that way. No matter how I use it instead, the result is always a question mark as an icon in the game. I did it as it was written above and other possibilities, somewhere but I always fail. What could it be, the Atlas also shows the icons. The icons have also been inserted individually into the atlas. Why does it show in the game always a question mark as an icon?

Joined: May 2017
enthusiast
Offline
enthusiast
Joined: May 2017
Is your texture atlas file located in Public/MyMod/GUI? Check the message log - It may say it's not loading the atlas file when you switch to game mode.

Joined: Oct 2015
journeyman
Offline
journeyman
Joined: Oct 2015
LaughingLeader can you try to create a new atlas with new icons now after the update ?

Because I did create new custom icons before but now after the update I am also stucked with a Question Mark and, more annoying, the Atlas file not working (whenever I load an atlas afeter using Save, it is empty and not working).


Moderated by  Larian_KVN 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5