Jump to content

TXDtoTGA


Recommended Posts

The main reason I made this was for the guy in this topic, and as GT-1 pointed out I should post it here incase its of use to anyone else.

 

Its a comand line tool in c++ that takes a txd archive and an extract folder as paramters and dumps all the textures as tga images.

looks a little something like this...

 

user posted image

 

Should help you out a bit, readme included with instructions and all the usual who ha ha.

Download TXDtoTGA (28kb))

 

If people find it of use or if enough people want it I can add support for other formats such as bmp, dds, png and all the other usual stuff.

 

Check the readme, Enjoy,

-Dave

Link to comment
https://gtaforums.com/topic/285584-txdtotga/
Share on other sites

Awesome!

now the only remaining issue is batching txd's. it looks like this just operates on one txd at a time. is there a way to say, dump the images of all the txd's in a folder?

 

then we could just dump img txd's to a folder, batch the folder and be done with it. i assume duplicate images would simply be overwritten.

 

or is this possible, and i just missed it ?

Link to comment
https://gtaforums.com/topic/285584-txdtotga/#findComment-4359996
Share on other sites

Awesome!

now the only remaining issue is batching txd's. it looks like this just operates on one txd at a time. is there a way to say, dump the images of all the txd's in a folder?

 

then we could just dump img txd's to a folder, batch the folder and be done with it. i assume duplicate images would simply be overwritten.

 

or is this possible, and i just missed it ?

Yea it just handles one at a time, will make a variation of it where you pass it a folder to read from and a folder to dump to, and it will auto detect all the txd files in the folder.

Will put it up in a while.

Link to comment
https://gtaforums.com/topic/285584-txdtotga/#findComment-4360060
Share on other sites

 

FOR %%f IN (*.txd) DO TXDtoTGA.exe %%f output

 

 

Put that in a .bat and run it; it'll export all txd files to a folder called output.

 

I also found what might be a bug - it seems to not like long filenames (like 2notherbuildsfe.txd), and if you run it without passing the full binary filename, it crashes with an invalid D3D call error on the console. (ie, doing TXDtoTGA blah.txd out).

Link to comment
https://gtaforums.com/topic/285584-txdtotga/#findComment-4360109
Share on other sites

Oh yeah - I'm running through the full TXD set from the IMG using that bat file. So far it's crashing on more than it's running through successfully. Maybe there's an image format wrinkle that's not being taken into account? Or could just be long names or a buffer issue. In any case this is still way better than doing it by hand. smile.gif

Link to comment
https://gtaforums.com/topic/285584-txdtotga/#findComment-4360123
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.