XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Thu Jan 18, 2018 1:21 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Fri Sep 09, 2016 11:04 am 
Offline
n00b
User avatar

Joined: Tue Feb 23, 2016 10:57 am
Posts: 14
Has thanked: 8 times
Have thanks: 1 time














You can make the ads go away by registering

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-GNxkEmQztv0djhgPeaBJJ1JkZViW1iX7uxy71E


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Sun Sep 11, 2016 7:38 pm 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 987
Has thanked: 1982 times
Have thanks: 519 times
here is a generic bms script to split the textures from your txd samples with names :D
Code:
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. :(

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Mon Oct 24, 2016 2:10 pm 
Offline
n00b
User avatar

Joined: Tue Feb 23, 2016 10:57 am
Posts: 14
Has thanked: 8 times
Have thanks: 1 time
(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


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Tue Oct 25, 2016 6:16 pm 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 987
Has thanked: 1982 times
Have thanks: 519 times
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

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Thu Oct 27, 2016 9:51 am 
Offline
n00b
User avatar

Joined: Tue Feb 23, 2016 10:57 am
Posts: 14
Has thanked: 8 times
Have thanks: 1 time
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


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Tue Oct 31, 2017 11:12 pm 
Offline
beginner
User avatar

Joined: Fri Jul 17, 2015 6:09 am
Posts: 31
Location: Moscow, Russia
Has thanked: 3 times
Have thanks: 23 times
.tx plugin for Noesis is in my repo.

_________________
My plugins for Noesis: https://github.com/Zheneq/Noesis-Plugins


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Wed Nov 01, 2017 3:48 am 
Offline
n00b
User avatar

Joined: Tue Feb 23, 2016 10:57 am
Posts: 14
Has thanked: 8 times
Have thanks: 1 time
Thanks zheneq :D


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Wed Nov 01, 2017 11:51 pm 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 987
Has thanked: 1982 times
Have thanks: 519 times
CaxUchiha 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

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Thu Nov 02, 2017 12:51 am 
Offline
beginner
User avatar

Joined: Fri Jul 17, 2015 6:09 am
Posts: 31
Location: Moscow, Russia
Has thanked: 3 times
Have thanks: 23 times
You could just go to the specs page.

Samples.

_________________
My plugins for Noesis: https://github.com/Zheneq/Noesis-Plugins


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Thu Nov 02, 2017 12:57 am 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 987
Has thanked: 1982 times
Have thanks: 519 times
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:
unks = [bs.readUInt() for i in range(15)]

i have never seen a loop used like that to define a variable :D

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Last edited by AceWell on Thu Nov 02, 2017 11:59 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Thu Nov 02, 2017 1:02 am 
Offline
beginner
User avatar

Joined: Fri Jul 17, 2015 6:09 am
Posts: 31
Location: Moscow, Russia
Has thanked: 3 times
Have thanks: 23 times
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


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Thu Nov 02, 2017 1:10 am 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 987
Has thanked: 1982 times
Have thanks: 519 times
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. :)

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Thu Nov 02, 2017 1:20 am 
Offline
beginner
User avatar

Joined: Fri Jul 17, 2015 6:09 am
Posts: 31
Location: Moscow, Russia
Has thanked: 3 times
Have thanks: 23 times
Ah, that's why some of the files have some weird stuff happening after texture data :D

_________________
My plugins for Noesis: https://github.com/Zheneq/Noesis-Plugins


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Thu Nov 02, 2017 1:15 pm 
Offline
n00b
User avatar

Joined: Tue Feb 23, 2016 10:57 am
Posts: 14
Has thanked: 8 times
Have thanks: 1 time
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


Top
 Profile  
 
 Post subject: Re: Silent Hill: Shattered Memories textures .txd (Wii)
PostPosted: Sun Nov 05, 2017 5:53 pm 
Offline
n00b

Joined: Sat May 12, 2012 3:08 am
Posts: 12
Has thanked: 1 time
Have thanks: 0 time
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-GNxkEmQztv0djhgPeaBJJ1JkZViW1iX7uxy71E



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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group