WDB: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Barncastle (talk | contribs) m (→Header) |
||
(27 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
The WDB files are found inside the WDB folder. The client caches data it receives from the server. This is mainly done to reduce network traffic. | The WDB files are found inside the WDB folder. The client caches data it receives from the server. This is mainly done to reduce network traffic. | ||
Not all WDB caches are saved to disk. This is defined in the client by the <tt>DBCache</tt>'s constructor which contains a persistent parameter. | |||
== Header == | == Header == | ||
Line 5: | Line 7: | ||
*WDB files < 1.6: Header length is 16 bytes | *WDB files < 1.6: Header length is 16 bytes | ||
*WDB files >=1.6: Header length is 20 bytes (Verified till 1.9.4) | *WDB files >=1.6: Header length is 20 bytes (Verified till 1.9.4) | ||
*WDB files >=3.0.8-9506: Header length is 24 bytes | |||
'''Offset Type | '''Offset Type Description''' | ||
0x00 char[4] Identifier | 0x00 char[4] Identifier - depends on the WDB file, will be explained later (reversed!) | ||
0x04 uint32 | 0x04 uint32 Client Version - Version of the client (lo -> hi encoding) | ||
0x08 char[4] Client | 0x08 char[4] Client Locale - The Locale of the client (reversed!) {{Template:Sandbox/VersionRange|min_expansionlevel=1|min_build=1.6.0}} | ||
0x0C uint32 Record Size - Size of the internal structure not of the file contents | |||
0x10 uint32 Record Version - A manually updated versioning field - except for WoWCache.wdb which is read from <code>WardenCachedModule::Version</code> | |||
0x14 uint32 Cache Version - A packet based versioning field set via SMSG_CLIENTCACHE_VERSION {{Template:Sandbox/VersionRange|min_expansionlevel=3|min_build=3.0.8}} | |||
== WDB files == | == WDB files == | ||
File | '''File Signature''' | ||
[[CreatureCache.wdb]] | [[ArenaTeamCache.wdb]] WATM {{Template:Sandbox/VersionRange|min_expansionlevel=3|max_expansionlevel=4}} | ||
[[GameObjectCache.wdb]] WGOB | [[BattlePetNameCache.wdb]] WBPN {{Template:Unverified|{{Template:Sandbox/VersionRange|min_expansionlevel=5|max_expansionlevel=6}} Not seen > 6.2.4}} | ||
[[ | [[CreatureCache.wdb]] WMOB | ||
[[ItemCache.wdb]] | [[DanceCache.wdb]] WDAN {{Template:Sandbox/VersionRange|min_expansionlevel=3|max_expansionlevel=4}} | ||
[[ItemNameCache.wdb]] | [[GameObjectCache.wdb]] WGOB | ||
[[ItemTextCache.wdb]] | [[GuildStatsCache.wdb]] WGLD | ||
[[NPCCache.wdb]] | [[ItemCache.wdb]] WIDB {{Template:Sandbox/VersionRange|max_expansionlevel=3}} | ||
[[PageTextCache.wdb]] | [[ItemNameCache.wdb]] WNDB {{Template:Sandbox/VersionRange|max_expansionlevel=3}} | ||
[[WOWCache.wdb]] | [[ItemTextCache.wdb]] WITX | ||
[[NameCache.wdb]] WNAM | |||
[[NPCCache.wdb]] WNPC | |||
[[PageTextCache.wdb]] WPTX | |||
[[PetitionCache.wdb]] WPTN | |||
[[PetNameCache.wdb]] WPNM | |||
[[QuestCache.wdb]] WQST | |||
[[RealmCache.wdb]] WRLM {{Template:Unverified|{{Template:Sandbox/VersionRange|min_expansionlevel=5|max_expansionlevel=6|max_build=6.0.1.18179}} Not seen ≥ 6.2.3}} | |||
[[WOWCache.wdb]] WRDN | |||
[[Category:Format]] |
Latest revision as of 14:42, 23 November 2020
The WDB files are found inside the WDB folder. The client caches data it receives from the server. This is mainly done to reduce network traffic.
Not all WDB caches are saved to disk. This is defined in the client by the DBCache's constructor which contains a persistent parameter.
Header
- WDB files < 1.6: Header length is 16 bytes
- WDB files >=1.6: Header length is 20 bytes (Verified till 1.9.4)
- WDB files >=3.0.8-9506: Header length is 24 bytes
Offset Type Description
0x00 char[4] Identifier - depends on the WDB file, will be explained later (reversed!)
0x04 uint32 Client Version - Version of the client (lo -> hi encoding)
0x08 char[4] Client Locale - The Locale of the client (reversed!) ≥ (1.6.0)
0x0C uint32 Record Size - Size of the internal structure not of the file contents
0x10 uint32 Record Version - A manually updated versioning field - except for WoWCache.wdb which is read from WardenCachedModule::Version
0x14 uint32 Cache Version - A packet based versioning field set via SMSG_CLIENTCACHE_VERSION ≥ (3.0.8)
WDB files
File Signature ArenaTeamCache.wdb WATM … BattlePetNameCache.wdb WBPN … Not seen > 6.2.4ᵘ CreatureCache.wdb WMOB DanceCache.wdb WDAN … GameObjectCache.wdb WGOB GuildStatsCache.wdb WGLD ItemCache.wdb WIDB ≤ ItemNameCache.wdb WNDB ≤ ItemTextCache.wdb WITX NameCache.wdb WNAM NPCCache.wdb WNPC PageTextCache.wdb WPTX PetitionCache.wdb WPTN PetNameCache.wdb WPNM QuestCache.wdb WQST RealmCache.wdb WRLM … (6.0.1.18179) Not seen ≥ 6.2.3ᵘ WOWCache.wdb WRDN