[THPS2x] DDX Extractor

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

[THPS2x] DDX Extractor

Postby Demo » Mon Feb 06, 2012 10:40 am

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: 389
Joined: Sun Mar 07, 2010 5:12 pm

Re: [THPS2x] DDX files unpacker request

Postby %.gone. » Mon Feb 06, 2012 12:00 pm

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
}

User avatar
Demo
VIP
Posts: 283
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [THPS2x] DDX files unpacker request

Postby Demo » Mon Feb 06, 2012 5:00 pm

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

Postby quazz » Mon Feb 06, 2012 7:37 pm

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?

User avatar
Demo
VIP
Posts: 283
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [THPS2x] DDX Extractor

Postby Demo » Tue Feb 07, 2012 6:37 am

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: 389
Joined: Sun Mar 07, 2010 5:12 pm

Re: [THPS2x] DDX Extractor

Postby %.gone. » Tue Feb 07, 2012 8:47 am

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.

User avatar
Demo
VIP
Posts: 283
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [THPS2x] DDX Extractor

Postby Demo » Tue Feb 07, 2012 9:08 am

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: 389
Joined: Sun Mar 07, 2010 5:12 pm

Re: [THPS2x] DDX Extractor

Postby %.gone. » Tue Feb 07, 2012 5:05 pm

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

User avatar
Demo
VIP
Posts: 283
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [THPS2x] DDX Extractor

Postby Demo » Tue Feb 07, 2012 5:09 pm

nope, they were absolutely same. mystery

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

Re: [THPS2x] DDX Extractor

Postby GHFear » Mon Feb 04, 2019 10:14 am

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

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

/GHFear


Return to “Legacy THPS”

Who is online

Users browsing this forum: No registered users and 2 guests