Custom Icons..? argh...

Custom Icons..? argh...

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Custom Icons..? argh...

Post 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;
}
}
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Post 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.
Last edited by Nemo on 28 Oct 2006, 21:57, edited 1 time in total.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

TGA, 32-bit. Works.
User avatar
FoeOfTheBee
Posts: 557
Joined: 12 May 2005, 18:26

Post 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
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

I tried both TGA and PNG and neither showed up..
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

May sound stupid but try putting default at the bottom... shouldn't be an issue though.
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

somehow I dont think that will work... why do systems have to be so finicky..
User avatar
mehere101
Posts: 293
Joined: 15 Mar 2006, 02:38

Post 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.
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

yeah that was it.. surprised no one caught on to that earlier..
Post Reply

Return to “Game Development”