Unlock gta san andreas txd file.

Textures, recreate headers, conversions, algorithms and parsing of image files
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Unlock gta san andreas txd file.

Post by Mishuk598 »

aluigi mate cound you please help me with unlock this file. I would appreciate it.
File link:https://drive.google.com/file/d/1PyH-PAf97vrtijupNnRcLKJS0GyorRMm/view

I tried to open it with txd workshop tool. But the file is locked. So it cannot be loaded.here is also txd workshop link for your help.
Link:https://drive.google.com/file/d/1mxMGVVPE9Ss4QohwH4HFmGJNXDpupeFL/view

Please please help me.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unlock gta san andreas txd file.

Post by aluigi »

Just a raw dumper, other people need to help with the DDS header since this is not my field:

Code: Select all

get TXD_SIZE asize
for OFFSET = 0x1c != TXD_SIZE
    goto OFFSET
    get DUMMY long
    get XSIZE long
    get DUMMY long
    if XSIZE == 0
        break
    endif
    get DUMMY long
    get SIZE long
    get DUMMY long
    get DUMMY long
    get DUMMY long
    getdstring NAME 0x40
    savepos OFFSET
    math SIZE - 0x48
    log NAME OFFSET SIZE
    math OFFSET + SIZE
next
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

I understand. Thanks anyway.
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

Is it possible to export as png file? Files have no extension. And these extracted files is obviously image files. But if i change the extension to png or bmp. No results. One Last time could you check?
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

Mate how to decompress this?
DXT1..?
Image
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

DXT1 is dds header?
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

aluigi wrote:Just a raw dumper, other people need to help with the DDS header since this is not my field:

Code: Select all

get TXD_SIZE asize
for OFFSET = 0x1c != TXD_SIZE
    goto OFFSET
    get DUMMY long
    get XSIZE long
    get DUMMY long
    if XSIZE == 0
        break
    endif
    get DUMMY long
    get SIZE long
    get DUMMY long
    get DUMMY long
    get DUMMY long
    getdstring NAME 0x40
    savepos OFFSET
    math SIZE - 0x48
    log NAME OFFSET SIZE
    math OFFSET + SIZE
next


Mate DXT1 is dds header?
I think you could help now. Extracted files is compressed with DXT1.Here is the files.
Link:https://drive.google.com/file/d/1FzuOid3TDy-eHeZ3HYKYvEOwep_fqJw4/view
Last edited by Mishuk598 on Tue May 19, 2020 11:56 am, edited 1 time in total.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Grand Theft Auto: San Andreas (*.txd)

Post by Acewell »

here is Noesis python script to open your txd samples and view images within. :D
tex_GrandTheftAutoSanAndreas_txd.zip

supports dxt1, dxt3 and dxt5, top level mip only.
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Grand Theft Auto: San Andreas (*.txd)

Post by Mishuk598 »

Acewell wrote:here is Noesis python script to open your txd samples and view images within. :D
tex_GrandTheftAutoSanAndreas_txd.zip
supports dxt1, dxt3 and dxt5, top level mip only.

how to work with it?
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

How can i open textutrs with python script?
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

:mrgreen: Acewell Thanks a lot mate. I finally did it. Thanks for your valuable information.
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

#Acewell mate do you know how to extract gta 5 ytd textures without OpenIV? :?:
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Unlock gta san andreas txd file.

Post by Acewell »

you must post some ytd samples for examination. :)
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

Ok. I will send some.
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

Acewell wrote:you must post some ytd samples for examination. :)

Here is the sample mate.
Link:https://drive.google.com/file/d/1H5MB-nRKnZzemKLGphZ9MjBaN8or5Zzl/view
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Unlock gta san andreas txd file.

Post by Acewell »

i can't get beyond the compression/encryption? :(
but this tool here opens your samples:
https://www.gta5-mods.com/tools/texture-toolkit
:D
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

Acewell wrote:i can't get beyond the compression/encryption? :(
but this tool here opens your samples:
https://www.gta5-mods.com/tools/texture-toolkit
:D

Yes It can load textures. But i can't see them and can't export them.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Unlock gta san andreas txd file.

Post by Acewell »

if the tool couldn't load, display and export the images i would
not have recommended trying that tool. it works fine for me. :)

File > Load to open the ytd file
Edit > Export all to save as dds
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

Thanks. It worked. :)
Mishuk598
Posts: 46
Joined: Sat Nov 09, 2019 5:52 am

Re: Unlock gta san andreas txd file.

Post by Mishuk598 »

Acewell mate do you know a quick way to expoet png from DDS? without photoshop?
https://drive.google.com/file/d/17x7WvJ ... GZ1Ep/view