C# library for reading and writing DBC/DB2 database files from World of Warcraft with built-in support for WoWDBDefs definitions.
- Reading of
WDBC(.dbc) andWDB2-WDB6,WDC1-WDC5(.db2). - Experimental writing (
WDC3works, the others likely will too but are largely untested with actual WoW clients). - Applying of hotfixes (DBCache.bin).
Contains the glue between DBCD.IO, DBDefsLib and the providers.
Contains the actual reading and writing of DBC/DB2 files.
- (Reading/Writing) Relies on WoWDBDefs (DBDs) for table structures, can not load tables without DBDs (yet).
- (Writing) Does not support writing out DB2s with multiple sections.
// A FilesystemDBCProvider to load DBCs/DB2s from a directory on disk. varlocalDBCProvider=newFilesystemDBCProvider("D:/DBC");// A FilesystemDBDProvider to load DBDs from a folder, you can also use GithubDBDProvider to download them directly from GitHub.varlocalDBDProvider=newFilesystemDBDProvider("D:/WoWDBDefs/definitions");// A new DBCD instance with the specified DBC/DBD provider.vardbcd=newDBCD(localDBCProvider,localDBDProvider);// Loads Map.db2 (note the table name without extension) for build 11.0.2.56044 (build might be needed to load correct definition).varstorage=dbcd.Load("Map","11.0.2.56044");// Get the row with ID 2552.varrow=storage[2552];// Outputs "Khaz Algar (Surface)".Console.WriteLine((string)row["MapName_lang"]);