Jump to content
  • 0

[Four] QuestCache.WDB File format


antz

Question

Hi Everyone, I am attempting to parse the contains of QuestCache.WDB for MOP 5.4.7 and i'm struggling to match everything up since the file format has changed so much since the previous release.

Here's what I have so far:-

The QuestCache file contains 4 sections: HEADER, QUESTID, QUESTDATASIZE and QUESTDATA

RAW DATA

OFFSET   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
00000000  54 53 51 57 63 46 00 00 42 47 6e 65 f0 2e 00 00 05 00 00 00 00 00 00 00 21 75 00 00 fb 02 00 00 
00000020  21 75 00 00 02 00 00 00 57 00 00 00 00 00 00 00 56 00 00 00 ad 16 00 00 00 00 00 00 00 00 00 00 
00000040  23 75 00 00 05 00 00 00 70 8e 01 00 05 00 00 00 d4 a7 01 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000060  00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
000000A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
000000C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
000000E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000100  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000120  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000140  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000160  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000180  00 00 00 00 7a 03 00 00 6e 03 00 00 01 00 00 00 48 d9 03 00 00 00 a4 dd 00 00 0c 00 00 00 00 00 
000001A0  00 00 00 00 00 00 00 08 80 d0 77 00 00 00 00 00 00 27 80 54 68 65 79 20 57 69 6c 6c 20 42 65 20 
000001C0  4d 69 73 74 53 6c 61 79 20 31 32 20 4d 69 73 74 20 49 6e 63 61 72 6e 61 74 69 6f 6e 73 2e 54 68 
000001E0  65 20 6d 69 73 74 20 69 6e 20 74 68 69 73 20 66 6f 72 65 73 74 20 69 73 20 61 20 63 6f 6e 73 74 
00000200  61 6e 74 20 6e 75 69 73 61 6e 63 65 20 2d 20 6f 6e 65 20 77 68 69 63 68 20 49 27 6d 20 67 6c 61 
00000220  64 20 74 6f 20 68 61 6e 64 20 6f 66 66 20 74 6f 20 74 72 61 69 6e 65 65 73 20 6c 69 6b 65 20 79 
00000240  6f 75 2e 20 53 74 72 61 6e 67 65 20 63 72 65 61 74 75 72 65 73 20 6c 75 72 6b 20 69 6e 20 74 68 
00000260  65 20 6d 69 73 74 20 62 65 74 77 65 65 6e 20 74 68 65 73 65 20 74 72 65 65 73 2c 20 61 6e 64 20 
00000280  74 68 65 79 20 6d 75 73 74 20 63 6f 6e 73 74 61 6e 74 6c 79 20 62 65 20 70 75 73 68 65 64 20 62 
000002A0  61 63 6b 2e 24 62 24 62 43 6f 6e 73 69 64 65 72 20 74 68 69 73 20 70 61 72 74 20 6f 66 20 79 6f 
000002C0  75 72 20 74 72 61 69 6e 69 6e 67 2e 52 65 74 75 72 6e 20 74 6f 20 4d 61 73 74 65 72 20 42 72 75 
000002E0  69 73 65 64 20 50 61 77 20 61 74 20 50 61 6f 71 75 61 6e 20 48 6f 6c 6c 6f 77 20 69 6e 20 74 68 
0000031B  65 20 56 61 6c 6c 65 79 20 6f 66 20 74 68 65 20 46 6f 75 72 20 57 69 6e 64 73 2e 
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

HEADER

OFFSET   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
00000000  54 53 51 57|63 46 00 00|42 47 6e 65|f0 2e 00 00|05 00 00 00|00 00 00 00|
         TSQW (WQST)    18019    BGne (enGB)    12016         5           0      
WQST = File Identifier i.e. Warcraft QueST Database
18019 = Client Version          
enGB = Locale
   5 = Region (I Think)
   0 = Always 0
QUEST ID

OFFSET   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
00000018 |                                                                       |21 75 00 00| 
29985 = Quest ID   (29985 = h2175)
QUEST DATA SIZE

00000018 |                                                                                   |fb 02 00 00 
763 = Quest Data block size (763 = h2fb)

QUEST DATA

Using information from here to cross reference: [url]http://www.wowhead.com/quest=29985[/url]

OFFSET   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
00000020  21 75 00 00 02 00 00 00 57 00 00 00 00 00 00 00 56 00 00 00 ad 16 00 00 00 00 00 00 00 00 00 00 
        |   29985   |     2     |     87    |     0     |     86    |    5805   |     0     |     0
           Quest Id |Quest Type |Quest Level|    ???    |Accept Lvl |     ??

OFFSET   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
00000040  23 75 00 00 05 00 00 00 70 8e 01 00 05 00 00 00 d4 a7 01 00 00 00 00 00 00 00 00 00 00 00 00 00 
        |   29987   |     5     |   102000  |     5     |   108500  |     0     |     0     |     0     |
        |Next Qst Id|    ???    |   Coins   |    ???    |Coin maxLvl|           |           |           |

The next two sections are not 100% correct
== NOT SURE WHAT THESE VALUES ARE ==

OFFSET   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
00000184              7a 03 00 00 6e 03 00 00 01 00 00 00 48 d9 03 00 00 00 a4 dd 00 00 0c 00 00 00 00 00 
                    |    890    |     878   |     1     |   252232  |     |   56740   |     12    |   
                          ?            ?          ?           ?        ?        ?       No Items     ?
== NOT SURE WHAT THESE VALUES ARE ==

OFFSET   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
000001A0  00 00 00 00 00 00 00 08 80 d0 77 00 00 00 00 00 00 27 80  
            0    |     0     |32776|30672|     0     |   32807
           ???        ???       ?     ?        ?           ?

Quest Title - Size: 17 (11h) 
=== Need to find either offset / size  for this or offset for quest text

OFFSET   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
000001B3                                                           54 68 65 79 20 57 69 6c 6c 20 42 65 20 
000001C0  4d 69 73 74                                               T  h  e  y     W  i  l  l     b  e
        M  i  s  t
Quest Text - Size: 375 (177h)

OFFSET   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
000001C4              53 6c 61 79 20 31 32 20 4d 69 73 74 20 49 6e 63 61 72 6e 61 74 69 6f 6e 73 2e 54 68 
                      S  l  a  y     1  2     M  i  s  t     I  n  c  a  r  n  a  t  i  o  n  s  .

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

A guess here that seems to be somewhat correct for the 56740 at least:

The next two sections are not 100% correct
== NOT SURE WHAT THESE VALUES ARE ==

OFFSET   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
00000184              7a 03 00 00 6e 03 00 00 01 00 00 00 48 d9 03 00 00 00 a4 dd 00 00 0c 00 00 00 00 00 
                    |    890    |     878   |     1     |   252232  |     |   56740   |     12    |   
                          ?            ?          ?           ?        ?  id of npc to kill  No Items     ?
== NOT SURE WHAT THESE VALUES ARE ==

Seems to be the id of the npc that you should kill.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use