Converting Yakuza PS2 file to dds

Codecs, formats, encoding/decoding of game audio, video and music
SamuraiOndo
Posts: 33
Joined: Fri May 14, 2021 11:33 pm

Converting Yakuza PS2 file to dds

Post by SamuraiOndo »

The file is actually just a DDS file with a custom header, but I have no idea how to change that header to actually be dds.
tex.zip
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: Converting Yakuza PS2 file to dds

Post by DKDave »

It's DXT3 format. If it's just that 1 file you want to convert, you can use Rawtex to create a proper .dds file. Offset is 0x40, size is 128 x 128, Format is BC2 (DXT3)
SamuraiOndo
Posts: 33
Joined: Fri May 14, 2021 11:33 pm

Re: Converting Yakuza PS2 file to dds

Post by SamuraiOndo »

DKDave wrote:It's DXT3 format. If it's just that 1 file you want to convert, you can use Rawtex to create a proper .dds file. Offset is 0x40, size is 128 x 128, Format is BC2 (DXT3)


Ok I have RawTex, and have all the settings as you said, yet it comes out broken.
text.zip
Can I have some help?
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: Converting Yakuza PS2 file to dds

Post by DKDave »

Which settings are you actually using? The ones I use listed to work, although whether that's exact, I don't know without other examples.
SamuraiOndo
Posts: 33
Joined: Fri May 14, 2021 11:33 pm

Re: Converting Yakuza PS2 file to dds

Post by SamuraiOndo »

DKDave wrote:Which settings are you actually using? The ones I use listed to work, although whether that's exact, I don't know without other examples.

Okay, sorry bout that I'm just stupid lol
I had the wrong settings listed lmao
SamuraiOndo
Posts: 33
Joined: Fri May 14, 2021 11:33 pm

Re: Converting Yakuza PS2 file to dds

Post by SamuraiOndo »

DKDave wrote:Which settings are you actually using? The ones I use listed to work, although whether that's exact, I don't know without other examples.

Oh, but I have noticed that the files I'm extracting are kinda transparent, such as:
h.zip
SutandoTsukai181
Posts: 1
Joined: Wed Jul 14, 2021 12:10 pm

Re: Converting Yakuza PS2 file to dds

Post by SutandoTsukai181 »

I made a script that uses Rawtex and ImageMagick to convert TXBP and SGT textures to dds and remove the transparency.

Both tools are included in the zip. ImageMagick allows redistribution of its binaries as long as the license is still included.
Rawtex doesn't have a license so credit goes to daemon1: https://forum.xentax.com/viewtopic.php?f=18&t=16461.

Usage:
Just drag and drop txb (or sgt) textures over txb.exe (only 1 file at a time).
If you also want to remove transparency, drag the txb over txb_no_alpha.bat

Download: https://mega.nz/file/nV8EVZyC#o-53r4Vqu93iMMypPC4NvL1wmYCr6P15nVN4tpf3afk
Source code: https://mega.nz/file/DJE2hDLB#8ND1O2dLwZP4yMHW6hSrtwWBVXh9lcp7wCJgdub5Q-w
SamuraiOndo
Posts: 33
Joined: Fri May 14, 2021 11:33 pm

Re: Converting Yakuza PS2 file to dds

Post by SamuraiOndo »

SutandoTsukai181 wrote:I made a script that uses Rawtex and ImageMagick to convert TXBP and SGT textures to dds and remove the transparency.

Both tools are included in the zip. ImageMagick allows redistribution of its binaries as long as the license is still included.
Rawtex doesn't have a license so credit goes to daemon1: https://forum.xentax.com/viewtopic.php?f=18&t=16461.

Usage:
Just drag and drop txb (or sgt) textures over txb.exe (only 1 file at a time).
If you also want to remove transparency, drag the txb over txb_no_alpha.bat

Download: https://mega.nz/file/nV8EVZyC#o-53r4Vqu93iMMypPC4NvL1wmYCr6P15nVN4tpf3afk
Source code: https://mega.nz/file/DJE2hDLB#8ND1O2dLwZP4yMHW6hSrtwWBVXh9lcp7wCJgdub5Q-w

you made this tool just like you made the rmm y7 support 8-)