[Not available on NuGet yet]
WindsoulDataFile is a C# library for managing WDF files easily.
- Language :
C#
- Framework :
.NET Standard 1.3
- Type :
Library
- Environment : Visual Studio 2017
The Windsoul Data File (WDF) was originaly created by Cloud Wu within the Windsoul++ game programming library in 1999-2001. This file structure is mainly used in the Conquer Online
game for storing resources (Maps, textures, etc...)
You can find the original C++
source code here.
The WDF file is structured has followed :
[uint] WDF Header (0x57444650)
[int] fileCount
[uint] fileListOffset
[uint] fileHashId
[uint] offset
[int] size
[uint] reserved
All data
The WDF files can be considered as "packages" containing one or several files. Just like a standard zip
archive. The difference is that the name of all entries are hashed using a Hash algorithm (string_to_id).
Download the package from NuGet : [Soon]
Open a new WindsoulFile
:
using WindsoulDatFile;
using (var windsoul = new WindsoulFile("file.wdf"))
{
// Display the number of files that the package contains
System.Console.WriteLine("File Count: {0}", windsoul.Count);
foreach (var fileEntry in windsoul.Files)
{
// Loop through files
}
// TODO: do your stuff
}