WoW:WDB file: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (New page: {{Stub/Tech}} '''WDB''' stands for '''W'''arcraft '''D'''ata'''B'''ase file. WDB files are created by the game to cache data retrieved from the servers. Category:Acronyms)
 
m (Move page script moved page WDB file to WDB file without leaving a redirect)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Stub/Tech}}
'''WDB files''', Warcraft Data Base files or .wdb, are created by {{link-wow}} to cache data retrieved from its game servers.
 
'''WDB''' files ('''W'''arcraft '''D'''ata'''B'''ase 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.
WDB files regroup data downloaded in chunks. The data inside is ordered from first to last downloaded.
Line 10: Line 8:
*'''Signature''' : 4-bytes char [[#Signatures|signature]]
*'''Signature''' : 4-bytes char [[#Signatures|signature]]
*'''Build''': 4 bytes int identifying the build
*'''Build''': 4 bytes int identifying the build
*'''Locale''': 4 bytes char identifying the locale, inversed (ie: SUne)
*'''Locale''': 4 bytes char identifying the locale, inversed (i.e.: SUne)
*'''Unknown''': Unknown 4 bytes int, added in 1.6
*'''Unknown''': Unknown 4 bytes int, added in 1.6 (maybe first compatible client build for this db version. to be veryfied)
*'''Unknown''': Unknown 4 bytes int, added in 1.6
*'''Unknown''': Unknown 4 bytes int, added in 1.6 (region code, to be veryfied)
*'''Unknown''': Unknown 4 bytes, added in 3.0.8.9464, always null
*'''Unknown''': Unknown 4 bytes, added in 3.0.8.9464, always null


Line 18: Line 16:
Signatures, just like locales, are reversed in the header.
Signatures, just like locales, are reversed in the header.


{| class="darktable"
{| class="darktable zebra"
! | Signature !! | File !! | Stands for
! | Signature !! | File !! | Stands for
|-
|-
Line 64: Line 62:
All WDB files end with 8 times \x00.
All WDB files end with 8 times \x00.


== See also ==
* [[DBC file]]
* [[DB2 file]]
[[Category:WDB files| ]]
[[Category:WDB files| ]]
[[Category:l]]

Latest revision as of 04:49, 15 August 2023

WDB files, Warcraft Data Base files or .wdb, are 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[edit]

The header is of 16 bytes for pre-1.6 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 (i.e.: SUne)
  • Unknown: Unknown 4 bytes int, added in 1.6 (maybe first compatible client build for this db version. to be veryfied)
  • Unknown: Unknown 4 bytes int, added in 1.6 (region code, to be veryfied)
  • Unknown: Unknown 4 bytes, added in 3.0.8.9464, always null

Signatures[edit]

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[edit]

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 as well as optimizing the reading process. Rows with an incorrect EntryLength are cleared on log in.

EOF[edit]

All WDB files end with 8 times \x00.

See also[edit]