• CTP tga picture sizes

    Until today I was convinced there were only 3 sizes for the tga files 160 x 120, 32 x 24 and 24 x 18. But the large pictures used for units appear to be 96 x 72. This might explain some of the bad quality of the pictures in game (if the game has to scale them down). The uniticon.txt obviously uses 4 entries for icons (2 are identical), so I tried to enter a 96 x 72 tga instead of one of the UPUPXXXL.TGA files and it does work. However, I guess this requires additional space for the files, but probably this gives better quality of game icons and possibly even improves speed.

    The game uses 4 different icon sizes for units. Namely 160x120, 96x72, 32x24 and 24x18. Modders can create a 4th targa file at the correct size and the game won't have to scale the image down. This obviously means the files have to be correctly set up within uniticon.txt.

    Lastly, I would recommend that modmakers use standard labelling for picture files and in the uniticon.txt fils (or anywhere else relevant). Even a single mistake in this area can crash the game and takes a lot of patience to track down. (Mea Culpa: I also deviated from the standard when I updated ASIER's files, I was still used to the old CTP1 style).

    Attached a set of screenshots I made for my tests. Whether this is really usesful is another question (I'd expect use of correct icons to speed up teh game a bit, but it also increases file sizes).

    This article was originally published in forum thread: CTP tga picture sizes started by Caranorn View original post