SA-MP Forums Archive
Custom .txd for sprites - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Custom .txd for sprites (/showthread.php?tid=385523)



Custom .txd for sprites - MP2 - 16.10.2012

I'm sure I've seen this done, I just can't remember how.

As you know, 'sprites' can be shown on screen with textdraw font 4 - reading them from .txd files. I'm wondering how I can MAKE a txd file with custom images in. I tried making one called test.txd with TXDworkshop, but SA:MP only seems to support a few pre-existing .txd files, so I tried adding files to those, but it was replacing existing textures. Any clues?


Re: Custom .txd for sprites - Roel - 16.10.2012

You can, just copy a existing txd file and change the name to your name, open it in TXDworkshop add your own pictures to it.
use like : "yournameicturename" at the textdraw name.
Be sure you add this file in the map 'txd' .
And before you use your own pictures, try make a working textdraw with existing sa-mp images, because then you are sure that when it goes wrong it has something to do with your pictures and not with the code.


Re: Custom .txd for sprites - MP2 - 16.10.2012

Quote:
Originally Posted by Roel
View Post
You can, just copy a existing txd file and change the name to your name, open it in TXDworkshop add your own pictures to it.
use like : "yournameicturename" at the textdraw name.
Quote:
Originally Posted by MP2
View Post
SA:MP only seems to support a few pre-existing .txd files
Quote:
Originally Posted by Roel
View Post
And before you use your own pictures, try make a working textdraw with existing sa-mp images, because then you are sure that when it goes wrong it has something to do with your pictures and not with the code.
I've used them before.


I've managed to add a file to existing .txd files (loadscs.txd for example) but it shows as a black square in-game :/


Re: Custom .txd for sprites - Roel - 16.10.2012

inside TXD editor, did you compressed the images?


Re: Custom .txd for sprites - MP2 - 16.10.2012

No, how do you do that?


Re: Custom .txd for sprites - ViniBorn - 16.10.2012

Did you put the file .txd inside the folder "GTA San Andreas\models\txd" ?


Re: Custom .txd for sprites - MP2 - 16.10.2012

Read my posts properly - I'm not creating a .txd file, I'm adding to an existing one.

I found out how to do the compression, but after that NONE of the textures in that .txd work in-game anymore, including the added one..