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
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Silent Hill: Shattered Memories textures .txd (Wii)
-
- 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)
here is a generic bms script to split the textures from your txd samples with names
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.
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 != ""
the textures are big-endian swizzled/tiled dxt but i can't figure out the swizzling/tiling thing.
- 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)
(Sorry for the late reply xD) Thanks a lot for the help and the script AceWell 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?
You do not have the required permissions to view the files attached to this post.
-
- 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)
no not yet, maybe some time down the road we'll figure it out,CaxUchiha wrote:Do you have an idea of what can be done in this case?
but until then you can dump what you need with an emulator
https://wiki.vg-resource.com/wiki/GameC ... re_Dumping
- 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)
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?
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?
- 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)
.tx plugin for Noesis is in my repo.
My plugins for Noesis: https://github.com/Zheneq/Noesis-Plugins
-
- 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)
can you upload those samples again?CaxUchiha wrote:https://mega.nz/#!5htDAIwD!5jML-GNxkEmQ ... 1iX7uxy71E
i'm trying to learn from zheneq's script and i need samples to walk through as i read the script.
- 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)
My plugins for Noesis: https://github.com/Zheneq/Noesis-Plugins
-
- 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)
thank you, do you happen to still have the txd sample too?
i think i need to modify the bms script to work with more samples
edit
i have never seen a loop used like that to define a variable
i think i need to modify the bms script to work with more samples
edit
no i've seen that and you have all of it under control, i just wanted to see what this was:zheneq wrote:You could just go to the specs page.
Code: Select all
unks = [bs.readUInt() for i in range(15)]
Last edited by Acewell on Thu Nov 02, 2017 11:59 am, edited 1 time in total.
- 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)
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 =)
My plugins for Noesis: https://github.com/Zheneq/Noesis-Plugins
-
- 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)
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 ( ) , 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.
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 ( ) , 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.
- 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)
Ah, that's why some of the files have some weird stuff happening after texture data
My plugins for Noesis: https://github.com/Zheneq/Noesis-Plugins
- 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)
Yes, I'll upload more samples guys just let me extract them again xDAceWell 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.
-
- n00b
- Posts: 14
- Joined: Sat May 12, 2012 3:08 am
- Has thanked: 1 time
Re: Silent Hill: Shattered Memories textures .txd (Wii)
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