View Single Post
Old 01-21-2014, 09:20 PM   #5
Shadow Stranger
Avatar
 

Join Date: December 9, 2007
Posts: 594
Default Re: Decrypting File GMDATA.PAK

Here is the spreadsheet that shows all the dialog code in decimal form.
It was originally a Microsoft Works spreadsheet that was converted to Excel 1997-2000 format.

When a given record uses a Go To function, the address is probably between 0,0 and 248,7. (248,7 or whatever its maximum address is.) I doubt it references records for other shops/town halls.

I numbered all the lines in each shop record, then I sorted all the records by their line numbers. I have attached the relevant spreadsheet below.
In the first 80 Bytes you have clear a distinction between shops proper on the one hand and bars/town halls on the other. Shops only differ from each other in four bytes: 24,25 and 74,75.

From the Brimloch Roon Dojo record:
9 2 77 0 78 0 79 0 10 2 113 4 247 7 3
9 and 2 are the standard openings for a yes/no question. 113,4 is the offset where the training is cancelled. 247,7 is the second-last offset in this town record, it seems to be a general end of dialog for this town only.
77: Do you want to cancel your Monk training?
78: Yes
79: No

Here the four Tomes of Creation (11,1 thru 14,1) are being taken from the PC:
13 11 1 13 12 1 13 13 1 13 14 1
Here quest 4, Samurai training, is being recorded as completed:
35 255 255 4 0 0 2 0 40 6 0 0 1 0 41 0 6 0 42

In the upload I have included the text files for the town dialogs.
Attached Files
File Type: zip GMData.zip (673.2 KB, 1 views)

Last edited by Shadow Stranger; 09-21-2018 at 11:00 AM.
Shadow Stranger is offline   Reply With Quote