Extract WDFs(To get missing .dds and .c3 files)

10/30/2005 02:37 unknownone#1
the WDF files contain the same type of contents as the c3 and data folders, they are just like working dirctories, except the individual files are accessed differently, not through windows.

The packed WDFs have a very simple structure, it just contains all the files from a particular directory in order of their filename. The file header contains the number of files, and a pointer to the location after all the files are packed.

Code:
struct HEADER {
	ULONG identifier; // = "PDFW"
	ULONG fileamount
	ULONG dataoffset;
}
The data at this offset contains the location, size and ID for each packed file. The structure of the file data is this

Code:
struct FILEDATA {
	ULONG uid //unique IDs
	ULONG offset
	ULONG size
	ULONG space //always zero, probably meant for some flags.
}
to retrieve a paticulur file, just go to its offset and count <size> bytes after it, then copy into a new file. Maybe set space to a non-zero value to show its already been extracted, but thats not neccesary.

Now the only question left is where the filename is, and I'm still quite lost with it myself. I figure, filenames are actually stored in a seperate file, and we arent sent that file with the client.

The unique IDs are made via a hash algorithm, and the client makes use of this algorithm to find a file as its needed. All the filenames are stored in ini/ani files, and are accessed when they are needed. The client passes them through the algorithm, then it searched for the unique ID in the WDF file.

*EDIT* Forgot to mention, all filenames should be converted to all lowercase letters before being passed to the algorithm.

If anyone has the time to go through ani and ini files, and generate a list of filenames for data.wdf and c3.wdf, I'td be handy to make a fully functional extractor. The only exctractor I have now is passing a filename as an argument, and it generates the file 1 at a time. slow considering the 2 .wdfs contain about 25,000 files.
11/08/2005 23:09 kokoman#2
hey :D thanks for the method , can you explain it more simpler , i mean which program is this ? :P
11/12/2005 09:40 Mr.Hax#3
Wow,thats crazy awsome work unknown,I wish i could help lol, im such a wanna be
12/08/2005 10:02 villevalo#4
Any news on this?
12/22/2005 01:20 unknownone#5
I've had second thoughts about this, it doesn't seem to always work. Dunno whether its my coding or whatnot, but sometimes I just have file not found.

Program is simple to use. Put it in your conquer root folder, and run the shorcut named "click this"
Its a command line app, you need to pass the filename and packed file arguments to it, for example


wdfextract [filename] [packname]
eg.
wdfextract data/playerface/1.dds data.wdf

The program with extract the file from the folder and put it into its correct directory.
You must type a filename as it appears in the respective ani/ini file, except it must be made all lowercase.

Doesn't work too well, thats why I didn't bother posting it previously.
12/22/2005 02:47 anhang#6
so whats in a wdf file? co source codes? images?
12/22/2005 09:02 unknownone#7
Graphics. mainly .dds files, but there are .c3, .tga, .bmp, .jpg etc. Its just basically a collection of subfolders and files writte into a single entity.
12/24/2005 00:21 Mr.Hax#8
I found a proggie that look for and extract files

[Only registered and activated users can see links. Click Here To Register...]


Edit: got a serial for proggie :P

works great extracts them to where you want,and can look for any files,not just .dds then just use unknowns folder system guide and you can get anything you want.


edit2: lol i extracted 11,818 .dds files from data.wdf.


edit3: bleh they all are black and have nothing on them.
12/24/2005 03:24 unknownone#9
Try this, although I cannot guarantee the results.
Place all in Conquer root folder and run wdfbatcher.exe
It works perfectly to extract 3dtexture.ini, but I can't guarantee it working for anything else.

Use at your own risk. It's virus free, you can scan, but it may crash your system.
12/29/2005 22:32 anticlownn#10
Quote:
Originally posted by unknownone@Dec 24 2005, 03:24
Try this, although I cannot guarantee the results.
Place all in Conquer root folder and run wdfbatcher.exe
It works perfectly to extract 3dtexture.ini, but I can't guarantee it working for anything else.

Use at your own risk. It's virus free, you can scan, but it may crash your system.
Where does it extract the files into?
I tried 3dtexture.ini and didn't see any results. When I did Monster.ini it only created empty folders named 0-9 in the root directory.
01/07/2006 13:20 StrikeNinja#11
... soz but this will sound realy nooby but how can i get the files for the 110 tao armor, lol coz this program has confused the hell out of me lol




Edit: nvm i figured it out i was using the wrong thing ... :rolleyes:
03/11/2006 08:28 killerduckies#12
Quote:
Originally posted by Mr.Hax@Dec 24 2005, 00:21
I found a proggie that look for and extract files

[Only registered and activated users can see links. Click Here To Register...]


Edit: got a serial for proggie :P

works great extracts them to where you want,and can look for any files,not just .dds then just use unknowns folder system guide and you can get anything you want.


edit2: lol i extracted 11,818 .dds files from data.wdf.


edit3: bleh they all are black and have nothing on them.
first off i am aware how old this thread is but cant bump a sticky.

the relevance of this post is that i figured out how to use the program, once you get the list of .dds files notice all the sizes are listed as 128? the proggie is messed up, so if you change that value to a high number, like 60000 and then tell it to extract it, it does an excellent job
04/15/2006 18:03 Sexy_Gurl#13
Quote:
Originally posted by unknownone@Dec 23 2005, 22:24
Try this, although I cannot guarantee the results.
Place all in Conquer root folder and run wdfbatcher.exe
It works perfectly to extract 3dtexture.ini, but I can't guarantee it working for anything else.

Use at your own risk. It's virus free, you can scan, but it may crash your system.
thats awesome! thanks ^^ +k :)
04/28/2006 14:55 Newbie00#14
Great, TY.
05/27/2006 18:48 ISWidowMaker#15
Would anyone be able to provide a wdfbatcher for the data.wdf file?

I can extract it with the Extractor program, but changing the sizes on 14k+ files manually is rather... painful.