Category:DBC: Difference between revisions

From wowdev
Jump to navigation Jump to search
(→‎Header: Show full file structure. Also, be more clear on stuff.)
mNo edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The DBC (DataBaseClient) files are clientside databases containing data about Items, NPC's, Enviroment, World etc.
This category groups all DBC files existing in at least one version of WoW. It does not guarantee documentation of the files for that version.  


Some of the following pages have been retrieved from "http://www.sourcepeek.com/wiki/" and "http://paste2.org/p/1366912"
For documentation on the structure of DBC files themselves, see [[DBC]].  


==Structure==
For documentation on the structure of DB2 files and up, see [[DB2]].  
struct dbc_header
{
  uint32_t magic; // always 'WDBC'
  uint32_t record_count; // records per file
  uint32_t field_count; // fields per record
  uint32_t record_size; // sum (sizeof (field_type_i)) | 0 <= i < field_count. field_type_i is NOT defined in the files.
  uint32_t string_block_size;
};
template<typename record_type>
struct dbc_file
{
  dbc_header header;
  // static_assert (header.record_size == sizeof (record_type));
  record_type records[header.record_count];
  char string_block[header.string_block_size];
};


==String Block==
For DBC file contents sorted by major client version, see the specific DBC category for that version: [[:Category:DBC_Vanilla|Vanilla]], [[:Category:DBC_BC|Burning Crusade]], [[:Category:DBC_WotLK|Wrath of the Lich King]], [[:Category:DBC_Cataclysm|Cataclysm]], [[:Category:DBC_MoP|Mists of Pandaria]], [[:Category:DBC_WoD|Warlords of Draenor]] and [[:Category:DBC_Legion|Legion]].
 
Unlike the cache files, string data is stored in a block after the records. String data in records contain an offset to the string, starting from the string block. For example: If the address of the string block was 500, and the string value was 50, the address of the string would be at 550. The string block starts with a null character, and all strings are null-terminated.
 
==Notes==
 
* When encountering a string field in a dbc file, it usually consists of an english name field as well as 7 additional fields for different localizations. Following the 8 String* fields is a bitmask field.
** see [[Localization]].
 
* 2.1.1 changes the additional fields to 15.
* Always add the fucking [[rev]]ision infomation about the datas!

Latest revision as of 00:18, 22 February 2016

This category groups all DBC files existing in at least one version of WoW. It does not guarantee documentation of the files for that version.

For documentation on the structure of DBC files themselves, see DBC.

For documentation on the structure of DB2 files and up, see DB2.

For DBC file contents sorted by major client version, see the specific DBC category for that version: Vanilla, Burning Crusade, Wrath of the Lich King, Cataclysm, Mists of Pandaria, Warlords of Draenor and Legion.

Pages in category "DBC"

The following 200 pages are in this category, out of 708 total.

(previous page) (next page)

D

(previous page) (next page)