Page 1 of 1

[THPS2x] DDX Extractor

Posted: Mon Feb 06, 2012 10:40 am
by Demo
DDX Extractor: http://www.mediafire.com/?j026iezjwcvca1d

*These files are basically containers for DDS textures. Should be easy to extract, it seems that they are not even compressed, cause one general file extractor can handle it (but without original filenames). it looks like list of filnames + some data and then all textures.*

Re: [THPS2x] DDX files unpacker request

Posted: Mon Feb 06, 2012 12:00 pm
by %.gone.
The file is structured like so...

Code: Select all

Header {
   4 byte Null
   4 byte Full file size
   4 byte Data start position
   4 byte File count
}
File Entry { * number of files
   4 byte Entry data position - to get the actual offset (data start position + this value)
   4 byte Entry data size
   256 bytes file name - pad null remaining bytes
}
File Data { for each entry
   Entry data size
   no null no padding
}

Re: [THPS2x] DDX files unpacker request

Posted: Mon Feb 06, 2012 5:00 pm
by Demo
thank you very much, easier than i thought. I wrote a tool which is pretty slow, but it enough at the moment. maybe I'll return to it later...

Re: [THPS2x] DDX Extractor

Posted: Mon Feb 06, 2012 7:37 pm
by quazz
This is awesome! I really thought the THPS2X levels were pretty well cleaned up and looked great.. can't wait to see them in Level Mod?

Re: [THPS2x] DDX Extractor

Posted: Tue Feb 07, 2012 6:37 am
by Demo
found the reason why it was so slow, now takes few seconds to extract.

quazz7654 wrote:This is awesome! I really thought the THPS2X levels were pretty well cleaned up and looked great.. can't wait to see them in Level Mod?

o ye, me too. but i'm not much deeper with level format atm :P

Re: [THPS2x] DDX Extractor

Posted: Tue Feb 07, 2012 8:47 am
by %.gone.
Glad I could help.
I think there might be an error in your tool.
If I search the file you uploaded for "DDS " (which is the DDS file id) using a hex editor it returns 170 entries, your tool only extracted 163 entries.

Re: [THPS2x] DDX Extractor

Posted: Tue Feb 07, 2012 9:08 am
by Demo
geez it seems i ruined it xD
it probably have same filenames? I added texture number and all 170 were extracted

ok those textures are just copies (what are they doing there) 'blades10e.dds' for example, so tool just replaces file, that was extracted before. but i found another major bug, i was saving textures wrong. now it's all finally fixed omg...

thanks for testing it.

Re: [THPS2x] DDX Extractor

Posted: Tue Feb 07, 2012 5:05 pm
by %.gone.
Having the same name would explain it.
Were there any differences between the textures with the same name?

Re: [THPS2x] DDX Extractor

Posted: Tue Feb 07, 2012 5:09 pm
by Demo
nope, they were absolutely same. mystery

Re: [THPS2x] DDX Extractor

Posted: Mon Feb 04, 2019 10:14 am
by GHFear
Here is a QuickBMS script I made that can export and import DDS from/to DDX files.

Download: https://mega.nz/#!7pJD1SBI!_rM4Iy34aMMi8qZz8RD4BtUeocc6yrsG7bhIcIiM8eU

/GHFear