Page 1 of 1

Custom Icons..? argh...

Posted: 28 Oct 2006, 20:46
by Fanger
How do you get custom icons to show up for units...

I have the icons in a png format with an alpha layer.. I have the icontype file in gamedata filled out and I have the proper Icontype=xxx; in the unit files..

This is the icontypes setup..

and in a unit i have

IconType=aircraft;

Yet Instead of the triangle icon I specified I get the standard circle..

What is causing this, is there something else Im missing?
[icontypes]
{
[default]
{
size=1;
radiusadjust=1;
distance=1;
}
[aircraft]
{
bitmap=triangleicon.png;
size=1;
radiusadjust=2;
distance=1;
}
[ground]
{
bitmap=doticon.png;
size=1;
radiusadjust=1;
distance=1;
}
[sea]
{
bitmap=diamondicon.png;
size=1;
radiusadjust=1;
distance=1;
}
[building]
{
bitmap=squareicon.png;
size=1;
radiusadjust=1;
distance=1;
}
}

Posted: 28 Oct 2006, 20:49
by Nemo
I haven't had any luck with .png, myself. I'd suggest going with .tga.

If anyone knows how to get .png working with the icons, please post how...

Edit: er, yeah. I meant tga.

Posted: 28 Oct 2006, 20:51
by Argh
TGA, 32-bit. Works.

Posted: 28 Oct 2006, 23:13
by FoeOfTheBee
I got png working, didn't do anything special that I could tell. Beware of capital letters though.
http://taspring.clan-sy.com/phpbb/viewt ... &start=122

Posted: 29 Oct 2006, 00:46
by Fanger
I tried both TGA and PNG and neither showed up..

Posted: 29 Oct 2006, 01:08
by rattle
May sound stupid but try putting default at the bottom... shouldn't be an issue though.

Posted: 29 Oct 2006, 02:07
by Fanger
somehow I dont think that will work... why do systems have to be so finicky..

Posted: 29 Oct 2006, 03:02
by mehere101
Are your unit icons in the base directory of your mod? If not you have to add the directory path to the icon filename.

Posted: 29 Oct 2006, 04:21
by Fanger
yeah that was it.. surprised no one caught on to that earlier..