[THPS2x] DDX Extractor

Discussion about Pre-THUG1 things can go here, such as modding, etc
Post Reply
Demo
VIP
Posts: 287
Joined: Thu Aug 25, 2011 5:54 am
Contact:

[THPS2x] DDX Extractor

Post 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.*
Last edited by Demo on Tue Feb 07, 2012 9:31 am, edited 3 times in total.

%.gone.
Global Moderator
Posts: 391
Joined: Sun Mar 07, 2010 5:12 pm

Re: [THPS2x] DDX files unpacker request

Post 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
}

Demo
VIP
Posts: 287
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [THPS2x] DDX files unpacker request

Post 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...

quazz
Global Moderator
Posts: 196
Joined: Sat Nov 13, 2010 12:04 am

Re: [THPS2x] DDX Extractor

Post 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?

Demo
VIP
Posts: 287
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [THPS2x] DDX Extractor

Post 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

%.gone.
Global Moderator
Posts: 391
Joined: Sun Mar 07, 2010 5:12 pm

Re: [THPS2x] DDX Extractor

Post 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.

Demo
VIP
Posts: 287
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [THPS2x] DDX Extractor

Post 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.

%.gone.
Global Moderator
Posts: 391
Joined: Sun Mar 07, 2010 5:12 pm

Re: [THPS2x] DDX Extractor

Post by %.gone. »

Having the same name would explain it.
Were there any differences between the textures with the same name?

Demo
VIP
Posts: 287
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [THPS2x] DDX Extractor

Post by Demo »

nope, they were absolutely same. mystery

GHFear
Posts: 3
Joined: Sun Dec 02, 2018 2:18 am

Re: [THPS2x] DDX Extractor

Post by GHFear »

Here is a QuickBMS script I made that can export and import DDS from/to DDX files.

Download: https://mega.nz/#!7pJD1SBI!_rM4Iy34aMMi ... bhIcIiM8eU

/GHFear

Post Reply