Register for your free account! | Forgot your password?

You last visited: Today at 22:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



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

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.

Reply
 
Old   #1
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
Extract WDFs(To get missing .dds and .c3 files)

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.
unknownone is offline  
Thanks
6 Users
Old 11/08/2005, 23:09   #2
 
elite*gold: 0
Join Date: Apr 2005
Posts: 264
Received Thanks: 181
hey thanks for the method , can you explain it more simpler , i mean which program is this ? :P
kokoman is offline  
Old 11/12/2005, 09:40   #3
 
elite*gold: 0
Join Date: Aug 2005
Posts: 145
Received Thanks: 7
Wow,thats crazy awsome work unknown,I wish i could help lol, im such a wanna be
Mr.Hax is offline  
Old 12/08/2005, 10:02   #4
 
elite*gold: 0
Join Date: Mar 2005
Posts: 7
Received Thanks: 0
Any news on this?
villevalo is offline  
Old 12/22/2005, 01:20   #5
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
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.
Attached Files
File Type: ibf post-108-1135210836.ibf (43.4 KB, 1507 views)
File Type: rar wdfextract.rar (43.5 KB, 1135 views)
unknownone is offline  
Thanks
6 Users
Old 12/22/2005, 02:47   #6
 
elite*gold: 0
Join Date: May 2005
Posts: 377
Received Thanks: 48
so whats in a wdf file? co source codes? images?
anhang is offline  
Old 12/22/2005, 09:02   #7
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
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.
unknownone is offline  
Thanks
1 User
Old 12/24/2005, 00:21   #8
 
elite*gold: 0
Join Date: Aug 2005
Posts: 145
Received Thanks: 7
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.
Mr.Hax is offline  
Old 12/24/2005, 03:24   #9
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
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.
Attached Files
File Type: ibf post-108-1135391044.ibf (51.7 KB, 1651 views)
File Type: rar wdfbatcher.rar (51.7 KB, 567 views)
unknownone is offline  
Thanks
7 Users
Old 12/29/2005, 22:32   #10
 
elite*gold: 0
Join Date: Sep 2005
Posts: 1,299
Received Thanks: 18
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.
anticlownn is offline  
Old 01/07/2006, 13:20   #11
 
elite*gold: 0
Join Date: Sep 2005
Posts: 18
Received Thanks: 0
... 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 ...
StrikeNinja is offline  
Old 03/11/2006, 08:28   #12
 
elite*gold: 0
Join Date: Jul 2005
Posts: 3
Received Thanks: 0
Quote:
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
killerduckies is offline  
Old 04/15/2006, 18:03   #13
 
elite*gold: 0
Join Date: Aug 2005
Posts: 85
Received Thanks: 1
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
Sexy_Gurl is offline  
Old 04/28/2006, 14:55   #14
 
elite*gold: 0
Join Date: Apr 2006
Posts: 10
Received Thanks: 0
Great, TY.
Newbie00 is offline  
Old 05/27/2006, 18:48   #15
 
elite*gold: 0
Join Date: May 2006
Posts: 4
Received Thanks: 0
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.
ISWidowMaker is offline  
Reply


Similar Threads Similar Threads
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.



All times are GMT +1. The time now is 22:51.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.