Could anyone help a n00b with adding .tga files -1 reply

Please wait...

SilentSnake

retired modder...

50 XP

23rd July 2003

0 Uploads

181 Posts

0 Threads

#1 17 years ago

I'm new to genenerals modding and I just have this little problem that I cant manage to find out how to make a new ButtonImage work in game.

I added a selfmade .tga file to the textures folder and wrote the code into the factionUnit but it just won't work... :mad:

Please help if ya can and want to




SilentSnake

retired modder...

50 XP

23rd July 2003

0 Uploads

181 Posts

0 Threads

#2 17 years ago

I didn't add any code to the HandCreatedMappedImages Ini file :cya: ... But could any one explain thees lines: TextureWidth = 85 TextureHeight = 72 Coords = Left:0 Top:0 Right:85 Bottom:72

Thanks




battatta

Retired modder

50 XP

5th July 2003

0 Uploads

154 Posts

0 Threads

#3 17 years ago

Here it goes:

Let's say your tga picture is (like the one I do) Width=122 by Height=98 PIXELS (photoshop is create using this image rize function) so you got to have those same margins fixed at Coords.

See a real example with my AC130h - Spectre Gunship:

MappedImage C130Spectre Texture = C130Spectre.tga TextureWidth = 122 TextureHeight = 98 Coords = Left:0 Top:0 Right:122 Bottom:98 Status = NONE End

:dance:




SilentSnake

retired modder...

50 XP

23rd July 2003

0 Uploads

181 Posts

0 Threads

#4 17 years ago

It's workin perfectly now! :dance:

thanks you so much!