Shqype
Shqyptar
This tutorial is something I quickly came up with after I discovered how to get that pesky "!" to disappear whenever I built my newly made units. I've seen many mods with the exclamation mark where a unit icon should be, so hopefully this will make it easier for people to correct it.
First, use GIMP to open up the unit icon .dds file.
The size of the image will need to be cut in half to get a better selection. Click on Image, Scale Image, and set the height and width to 32x32 pixels (instead of 64x64). Then click scale. Now you are ready to make your selection.
Use the "Select elliptical regions" tool to select the region from the icon that you want to appear in the CityBar Atlas. The following options should be selected:
-Antialiasing, Feather Edges, and Autoshrink should be unchecked
-Make sure you select "Fixed Size" instead of "Free Select."
-Set the dimensions to 26x26 pixels.
Now you are ready to make your selection from the unit icon. I recommend zooming the unit icon file to 800% to make it easier to choose the selection. By moving the pointer to a position near the top left corner, and (while holding down the left mouse button) moving to the right, you will notice the selection has been made. If it is not to your liking, you can move over a pixel or two and do it again until you are satisfied.
Next, go to Edit, then Copy to copy the selection. Go into the template I have provided (this time at 1600% zoom) and go to Edit, Paste to paste the new layer you have selected. It should appear exactly in place, although you can move the layer if you need to.
When it is where you want it, go to Layer, Anchor Layer (or Merge Down if available), to merge the top layer onto the bottom. Don't despair if there are still pixels that are transparent: Use the "Pick colors from the image" tool to pick a color next to a transparent spot, then switch to the Pencil icon tool to paint them in (only possible if layers have been merged). The pencil should be set as follows:
-Opacity: 100%
-Mode: Normal
-Brush: Circle (01)
-With Fade Out, Incremental, and Use color from gradient all unchecked.
When done, Save As (so as not to overwrite the template) with a unique name. Save it as a .dds file; it's not necessary to use DXT3 compression because either way it won't be able to compress (non power-of-2 sized image).
Next, go to the CityBar_Atlas_32.dds file (make sure it is a copy that will be used for the mod) and select File, Open as Layer. Select the image you just created, and add it in the correct place on the Atlas. The positions correspond to the positions on the unit_resource_atlas.dds file, so just put it where it belongs. Use the 4-arrows button ("Move layers & selections") to move the layer into its slot. 800% zoom helps in putting the layer over the exact spot it needs to be in for it to work. Once it's in correctly, once again merge the layer down to the Atlas.
Save the file as a .dds with DXT3 compression. This time it will work.
Repeat this process for as many unit icons as necessary.
NOTE: I zipped the .dds file since I cannot upload them. Sorry for any inconvenience.
First, use GIMP to open up the unit icon .dds file.
The size of the image will need to be cut in half to get a better selection. Click on Image, Scale Image, and set the height and width to 32x32 pixels (instead of 64x64). Then click scale. Now you are ready to make your selection.
Use the "Select elliptical regions" tool to select the region from the icon that you want to appear in the CityBar Atlas. The following options should be selected:
-Antialiasing, Feather Edges, and Autoshrink should be unchecked
-Make sure you select "Fixed Size" instead of "Free Select."
-Set the dimensions to 26x26 pixels.
Now you are ready to make your selection from the unit icon. I recommend zooming the unit icon file to 800% to make it easier to choose the selection. By moving the pointer to a position near the top left corner, and (while holding down the left mouse button) moving to the right, you will notice the selection has been made. If it is not to your liking, you can move over a pixel or two and do it again until you are satisfied.
Next, go to Edit, then Copy to copy the selection. Go into the template I have provided (this time at 1600% zoom) and go to Edit, Paste to paste the new layer you have selected. It should appear exactly in place, although you can move the layer if you need to.
When it is where you want it, go to Layer, Anchor Layer (or Merge Down if available), to merge the top layer onto the bottom. Don't despair if there are still pixels that are transparent: Use the "Pick colors from the image" tool to pick a color next to a transparent spot, then switch to the Pencil icon tool to paint them in (only possible if layers have been merged). The pencil should be set as follows:
-Opacity: 100%
-Mode: Normal
-Brush: Circle (01)
-With Fade Out, Incremental, and Use color from gradient all unchecked.
When done, Save As (so as not to overwrite the template) with a unique name. Save it as a .dds file; it's not necessary to use DXT3 compression because either way it won't be able to compress (non power-of-2 sized image).
Next, go to the CityBar_Atlas_32.dds file (make sure it is a copy that will be used for the mod) and select File, Open as Layer. Select the image you just created, and add it in the correct place on the Atlas. The positions correspond to the positions on the unit_resource_atlas.dds file, so just put it where it belongs. Use the 4-arrows button ("Move layers & selections") to move the layer into its slot. 800% zoom helps in putting the layer over the exact spot it needs to be in for it to work. Once it's in correctly, once again merge the layer down to the Atlas.
Save the file as a .dds with DXT3 compression. This time it will work.
Repeat this process for as many unit icons as necessary.
NOTE: I zipped the .dds file since I cannot upload them. Sorry for any inconvenience.