Discussion on Extract WDFs(To get missing .dds and .c3 files) within the CO2 Weapon, Armor, Effects & Interface edits forum part of the CO2 Guides & Templates category.
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.
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.
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
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.
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.
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.
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.
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.
Originally posted by Mr.Hax@Dec 24 2005, 00:21 I found a proggie that look for and extract files
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
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.
Extract *.dat files from Dragonica 07/29/2013 - Dragonica Hacks, Bots, Cheats & Exploits - 5 Replies I'm looking for someone who extracted the *.dat files from the /data folder. Is there a way to encrypt them, in order to receive a final result of pictures or icons? (like the item icons) I'm working on a german Dragonica Fansite, that's why i am interested.
I know this might be kinda illegal, but it's a lot of work to find the items ingame and then copy and paste it into a graphic programm to save them as actual pictures. just thought there might be an easier way?
thanks in advance....
EXtract *.DAT Files but HOW? 10/05/2008 - Archlord - 0 Replies i read evrything about that but nothing works. So i need help to extract the files for Textures. Very Important. Pls help me
Extract WDFs 03/11/2007 - Conquer Online 2 - 4 Replies Whenever i try opening my extractor it opens then closes right away please help.
mpq files minimaps extract 01/30/2007 - World of Warcraft - 0 Replies hi, ich suche nach einer möglichkeit, nicht die files und die texturen in den mpq dateien anzusehen, sondern die texturen der maps in eine sinnvolle reihenfolge bringen zu können. mein ziel ist es die dungeonmaps vollständig aus den mpq dateien herstellen zu können.