• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Solved tga.tx files

@Pieter Boelen
The links are outdated! Please help me get this tx convertor! I don't know what is TX but I know that tga.tx files can't be opened by any picture viewers/editors !!!
 
Does anyone know how to make a .tga.tx file for character equipment. My attempts to make a .tga file in Photoshop then convert it to .tga.tx with TX converter have failed beacause the weapons are not displayed in inventory screen (because the square boxes have to be empty, and the only way to have empty background is to make a png file).
xfB0FWP.jpg
 
Equipment images in PotC are in "RESOURCE\Textures\INTERFACES" in files such as "items1.tga.tx". Weapons are special because they can have different qualities if the blacksmith mod is enabled (which it is by default), so weapon images go into files such as "items3.tga.tx", "items3+1.tga.tx", "items3+2.tga.tx", "items3+3.tga.tx", "items3-1.tga.tx" and "items3-2.tga.tx". This allows you to show different levels of wear on the inventory pictures. The "+3" version often has a glow in the top left corner.

So you would find one of these files which still has a blank square (or a set of files if you're creating a set of images for a weapon). Resize your equipment image, paste it onto the blank square, cut off anything which overlaps onto the frame around the square, save the result back as a .tga and then use TX Convertor.

You also need to make sure that its entry in "initItems.c"uses the correct image from the correct file. For example, "bladeC23" is one I imported from GoF. Here's its line in "initItems.c":
Code:
  n = InitBlade(n, "bladeC23","bladeC23",                9,   8,  0.00,  99, 5532, 36.0, 50.0, 48, 37,  SPAIN,     4,     0,    PERIOD_THE_SPANISH_MAIN,     PERIOD_NAPOLEONIC); // Toledo rapier (CoAS GoF) // GR - for "Ardent" storyline
The relevant part is the "9, 8". That means it's image 8 in "items9.tga.tx". The top left image is 1, the top right is 4, the first image on the second row is 5, and so on. "items9.tga.tx" is full now, but there's plenty of space in "items25.tga.tx". (And in the "+1", "+2", "+3", "-1" and "-2" variants.)
 
Back
Top