Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Silent Hill: Shattered Memories textures .txd (Wii)

Get your graphics formats figures out here! Got details for others? Post here!
User avatar
CaxUchiha
n00b
Posts: 14
Joined: Tue Feb 23, 2016 10:57 am
Has thanked: 8 times
Been thanked: 1 time

Silent Hill: Shattered Memories textures .txd (Wii)

Post by CaxUchiha »

Hi everybody! I tried to extract textures from the .txd files using almost all txd tools that are available and not one works :( . Do you know how to extract them or could anyone take a look at this file format for this game? I've added a few samples but if you want more for test just let me know. Any help would be greatful :) .

https://mega.nz/#!5htDAIwD!5jML-GNxkEmQ ... 1iX7uxy71E
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by Acewell »

here is a generic bms script to split the textures from your txd samples with names :D

Code: Select all

findloc OFFSET binary "\x43\x48\x5f"
do
    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET binary "\x43\x48\x5f" 0 ""
    if NEXT_OFFSET == ""
        get SIZE asize
    else
        math SIZE = NEXT_OFFSET
    endif
    math SIZE -= OFFSET
    savepos TMP
    math TMP - 0x04
    goto TMP
    getdstring NAME 0x20
    math OFFSET - 0x3c
    string NAME + ".tx"
    log NAME OFFSET SIZE
    math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""
i just gave them a tx extension


the textures are big-endian swizzled/tiled dxt but i can't figure out the swizzling/tiling thing. :(
User avatar
CaxUchiha
n00b
Posts: 14
Joined: Tue Feb 23, 2016 10:57 am
Has thanked: 8 times
Been thanked: 1 time

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by CaxUchiha »

(Sorry for the late reply xD) Thanks a lot for the help and the script AceWell :D I can see textures with TextureFinder as DXT3 or DXT5 formats but all have bad colors and are very pixelated :S Do you have an idea of what can be done in this case? :o
You do not have the required permissions to view the files attached to this post.
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by Acewell »

CaxUchiha wrote:Do you have an idea of what can be done in this case?
no not yet, maybe some time down the road we'll figure it out,
but until then you can dump what you need with an emulator

https://wiki.vg-resource.com/wiki/GameC ... re_Dumping
User avatar
CaxUchiha
n00b
Posts: 14
Joined: Tue Feb 23, 2016 10:57 am
Has thanked: 8 times
Been thanked: 1 time

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by CaxUchiha »

Thanks AceWell, I know that way for dump textures but my laptop can't run the emulador properly :(

Btw, some time ago I dumped the textures from one of the character models which txd file I included inside the file of the download link that I posted before.. Did they could be useful for try to figure out how they are compressed? :o
User avatar
zheneq
advanced
Posts: 43
Joined: Fri Jul 17, 2015 6:09 am
Location: Moscow, Russia
Has thanked: 7 times
Been thanked: 30 times

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by zheneq »

.tx plugin for Noesis is in my repo.
User avatar
CaxUchiha
n00b
Posts: 14
Joined: Tue Feb 23, 2016 10:57 am
Has thanked: 8 times
Been thanked: 1 time

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by CaxUchiha »

Thanks zheneq :D
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by Acewell »

can you upload those samples again? :)
i'm trying to learn from zheneq's script and i need samples to walk through as i read the script. :D
User avatar
zheneq
advanced
Posts: 43
Joined: Fri Jul 17, 2015 6:09 am
Location: Moscow, Russia
Has thanked: 7 times
Been thanked: 30 times

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by zheneq »

You could just go to the specs page.

Samples.
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by Acewell »

thank you, do you happen to still have the txd sample too? :D
i think i need to modify the bms script to work with more samples :scaredy:

edit
zheneq wrote:You could just go to the specs page.
no i've seen that and you have all of it under control, i just wanted to see what this was:

Code: Select all

unks = [bs.readUInt() for i in range(15)]
i have never seen a loop used like that to define a variable :D
Last edited by Acewell on Thu Nov 02, 2017 11:59 am, edited 1 time in total.
User avatar
zheneq
advanced
Posts: 43
Joined: Fri Jul 17, 2015 6:09 am
Location: Moscow, Russia
Has thanked: 7 times
Been thanked: 30 times

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by zheneq »

I have never had any. By the way, maybe I'd better make a plugin for txd so that we don't spread artificial extensions? I guess I could just go and adapt your bms but I'd prefer to have samples at hand too =)
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by Acewell »

yeah as i posted before the script was just a generic search for bytes that happened to be in the samples he shared.
but it will not work if others have different name prefix. i don't know what the correct extension is supposed to be,
i was not a developer of the game ( :D ) , the bms script was a quick write-up to work with provided samples.
i would like to try making a proper bms extraction script and discard previous one. :)
User avatar
zheneq
advanced
Posts: 43
Joined: Fri Jul 17, 2015 6:09 am
Location: Moscow, Russia
Has thanked: 7 times
Been thanked: 30 times

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by zheneq »

Ah, that's why some of the files have some weird stuff happening after texture data :D
User avatar
CaxUchiha
n00b
Posts: 14
Joined: Tue Feb 23, 2016 10:57 am
Has thanked: 8 times
Been thanked: 1 time

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by CaxUchiha »

AceWell wrote:can you upload those samples again? :)
i'm trying to learn from zheneq's script and i need samples to walk through as i read the script. :D
Yes, I'll upload more samples guys just let me extract them again xD
Brandondorf9999
n00b
Posts: 14
Joined: Sat May 12, 2012 3:08 am
Has thanked: 1 time

Re: Silent Hill: Shattered Memories textures .txd (Wii)

Post by Brandondorf9999 »

CaxUchiha wrote:Hi everybody! I tried to extract textures from the .txd files using almost all txd tools that are available and not one works :( . Do you know how to extract them or could anyone take a look at this file format for this game? I've added a few samples but if you want more for test just let me know. Any help would be greatful :) .

https://mega.nz/#!5htDAIwD!5jML-GNxkEmQ ... 1iX7uxy71E

There's a tool called Magic.TXD which allows you to extract textures from the txd archive since this is indeed an RenderWare game. The tool is found here:

https://www.gtamodding.com/wiki/Magic.TXD
Post Reply