Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
mNo edit summary
mNo edit summary
Line 61: Line 61:
 
The EntryLength is the length in bytes of the cached row. It is always found in the second column and helps the game determinate corrupted cache entries. Rows with an incorrect EntryLength are cleared on log in.
 
The EntryLength is the length in bytes of the cached row. It is always found in the second column and helps the game determinate corrupted cache entries. Rows with an incorrect EntryLength are cleared on log in.
   
  +
  +
== EOF ==
  +
All WDB files end with 8 times \x00. However, due to how integers are handled inside the file, this is not a stable EOF.
   
 
[[Category:WDB files| ]]
 
[[Category:WDB files| ]]

Revision as of 10:51, 29 March 2008


WDB files (Warcraft DataBase files, or .wdb) are files created by World of Warcraft to cache data retrieved from its game servers.

WDB files regroup data downloaded in chunks. The data inside is ordered from first to last downloaded.

Header

The header is of 16 bytes for pre-BC files, and 20 bytes for post-BC files:

  • Signature : 4-bytes char signature
  • Build: 4 bytes int identifying the build
  • Locale: 4 bytes char identifying the locale, inversed (ie: SUne)
  • Unknown: Unknown 4 bytes int
  • Unknown: Unknown 4 bytes int, added in Burning Crusade


Signatures

Signatures, just like locales, are reversed in the header.

Signature File Stands for
BDIW Itemcache.wdb Warcraft Item Database
BDNW Itemnamecache.wdb Warcraft Item Name Database
BOGW Gameobjectcache.wdb Warcraft Game Object Database
BOMW Creaturecache.wdb Warcraft MOB Database
CPNW Npccache.wdb Warcraft NPC Database
NDRW Wowcache.wdb Warden Cache
TSQW Questcache.wdb Warcraft Quest Database
XTIW Itemtextcache.wdb Warcraft Item Text Database
XTPW Pagetextcache.wdb Warcraft Page Text Database

EntryLength

The EntryLength is the length in bytes of the cached row. It is always found in the second column and helps the game determinate corrupted cache entries. Rows with an incorrect EntryLength are cleared on log in.


EOF

All WDB files end with 8 times \x00. However, due to how integers are handled inside the file, this is not a stable EOF.