Icons are displayed incorrectly

0

Hey,

i'm trying to do my first mods, but one Problem i came across are the Unit Icons.

I made a new folder in my Mod folder (mods--my Mod--\Textures\Ui\Common\Icons\units)

when i place an Icon of another unit there and change the name, it gets displayed right in the Game...

But when i load an icon.dds in my Photoshop with Nvidias texture Plugin it is...
1.)...Very Pixelated in Photoshop, is that normal?
and
2.)... in Game after editing and saving the Icon it is yellow. (see screenshot)

Anyone knows where to find/fix the Problem?

Icon false.png

Thank you!

Greetigs, Nils

0

FAF has its own icon support.

put your icons in:

\Mods\YOURMOD\icons\units\ABC1234_icon.dds
0

@uveso Thanks for your fast answer...

But its still exactly the same Problem...
Everything works fine UNTIL i edit the .dds in Photoshop...i can use every .dds from Gamedata, but after editing its yellow in Game.

After im finished with editing i go for "save as.." -> ".dds" and then a NVIDIA Setting window pops up....Do i have to change there some settings? e.g. the Format? im on RGBA 8 bpp / explicit alpha as you see in the following picture:

NVIDIA settings.jpg

0

the format you need is bc3

0

@madmax THANK YOU, that helped!

do u also know how to chnage the Green/Blue Background of the Icons?

0

The background is created from the game inside the function GetBackgroundTextures()
https://github.com/FAForever/fa/blob/deploy/fafdevelop/lua/ui/game/construction.lua#L513

icon graphic is located in

\textures\ui\common\icons\units\

as example the path to the land background is:

\textures\ui\common\icons\units\land_up.dds
\textures\ui\common\icons\units\land_down.dds
\textures\ui\common\icons\units\land_over.dds
0

@uveso For me the easiest way was to create a background texture in Photoshop, save it as .dds, import it, place it under my Unit layer in PS and save this whole Thing as Icon. This covers the custom Background in Game.

0

I have changed my background icons because i am red/green colorblind.

If I understand you correctly, your icons are overwriting my color-blind background?