Author Topic: Dark Queen of Krynn Hub  (Read 18225 times)

Offline Ben J

  • Keeper of the 44 quest variables
  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2723
  • "See how I reward those who fail me!"
Re: Dark Queen of Krynn Hub
« Reply #15 on: May 10, 2010, 07:37:42 AM »
Will the whole DQK game fit into the size limits of FRUA (text, events, number of maps)?
Released designs:

The Sect

Offline Ben J

  • Keeper of the 44 quest variables
  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2723
  • "See how I reward those who fail me!"
Re: Dark Queen of Krynn Hub
« Reply #16 on: May 10, 2010, 01:42:05 PM »
Ecl.glb contains a lot of compressed text. It looks like game notes in the first 10,000 bytes. An example at random:
"NOTE: YOU SHOULD NOT GET SELIAS FROM THE FRIENDLY NPC MENU AS HE IS FOUND IN THE INN OF THIS ECL.A4B0SBRD(00GOING TO THE CITY OF KRISTOPHAN IN ECL38?"

Are these notes left by the programmers? A kind of walkthrough hidden in the game code?
Released designs:

The Sect

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 943
Re: Dark Queen of Krynn Hub
« Reply #17 on: May 10, 2010, 08:57:30 PM »
Text size fitting FRUA constraints, I don't know about that, ditto number of events per level. Decryption has not gone that far.
Map size, most DQK maps are too big to meet the 576 square limit imposed by FRUA. That is why the first version was ported to Dungeon Craft, the maps all fit in a DC design. However, looking at the table below you can see that many of the DQK maps are composed of individual floors. For example, all twelve floors of Luminari Lighthouse are contained in the Luminari map below. FRUA has 36 town maps, though the last one is buggy. So with a bit of subdivision of maps you should be able to make it. If there are any problems with too much text or events that should reduce them.


 #: H*W = H*W = Name
 1: 100 = 10 * 10 = SSI Playtester Town
 2: 289 = 17 * 17 = Caergoth
 3: 784 = 28 * 28 = Draconian Caves
 4: 780 = 39 * 20 = Naulidis
 5: 176 = 16 * 11 = Hizden
 6: 648 = 27 * 24 = Luminari
 7: 256 = 16 * 16 = ???
 8: 484 = 22 * 22 = Hulderfolk Wood
 9: 784 = 28 * 28 = New Aurim
10: 784 = 28 * 28 = Palace of the Thenol King
11: 780 = 20 * 39 = Kristophan
12: 784 = 28 * 28 = The Tombs
13: 783 = 27 * 29 = Hawkbluff
14: 783 = 27 * 29 = Hawkbluff2
15: 784 = 28 * 28 = Blackwater Glade
16: 483 = 23 * 21 = Bai'or
17: 784 = 28 * 28 = Aldinanachru
18: 784 = 28 * 28 = Tower of Flame
19: 144 = 12 * 12 = Tower of Flame Finale?
20: 748 = 22 * 34 = The Abyss


As for Ecl.glb, it sure is interesting. The text I uploaded looks like designer's notes alright, there is a lot of it, along with all the text you read in the game. It is in a compressed form, 3 bytes = 4 four letters. I need a proprietary spreadsheet to read it. Currently the spreadsheet is adequate but could do with improvement. It has to make allowance for any given byte being in any of the three possible positions in the triplet of bytes.

« Last Edit: November 26, 2016, 02:36:47 AM by Ishad Nha »

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 943
Re: Dark Queen of Krynn Hub
« Reply #18 on: May 11, 2010, 09:47:42 AM »
Decrypting save game files, current town.
Relevant offset bytes: 18,21,197.
Edit:
Town numbers, used by the game itself:
 2 SSI Playtester Town
 4 Caergoth
10 Draconian Caves
14 Naulidis
18 Hizden
22 Luminari
24 - ???
26 Hulderfolk Wood
30 New Aurim
34 Palace of the Thenol King
38 Kristophan
42 The Tombs
46 Hawkbluff
47 - Hawkbluff2?
50 Blackwater Glade
54 Bai'or
58 Aldinanachru
62 Tower of Flame
63 - Tower of Flame Finale?
66 The Abyss
Simply enter these numbers into the offsets concerned and you will move to the relevant town.
Edit:
Towns with question marks, (24,47,63) can't be accessed by this method or by the Playtester mode.
« Last Edit: November 26, 2016, 02:37:07 AM by Ishad Nha »

Offline Ben J

  • Keeper of the 44 quest variables
  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2723
  • "See how I reward those who fail me!"
Re: Dark Queen of Krynn Hub
« Reply #19 on: May 11, 2010, 03:17:19 PM »
As for Ecl.glb, it sure is interesting. The text I uploaded looks like designer's notes alright, there is a lot of it, along with all the text you read in the game. It is in a compressed form, 3 bytes = 4 four letters. I need a proprietary spreadsheet to read it. Currently the spreadsheet is adequate but could do with improvement. It has to make allowance for any given byte being in any of the three possible positions in the triplet of bytes.

If you could find a way to print out these notes in their entirety, that would be very cool. (If it's not too much work)

Perhaps these notes could also give us some new insights about the workings of the FRUA engine, which is based on DQK.
Released designs:

The Sect

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 943
Re: Dark Queen of Krynn Hub
« Reply #20 on: May 11, 2010, 10:10:42 PM »
I might upload the spreadsheet so that anyone who wants to look at the text of a Gold Box game can do so. Not only Gold Box games, but any program that uses this compression scheme.
File Ecl.glb is 446KB, my spreadsheet can handle 12KB of input at most. (This will lead to 16KB of output.) To achieve this requires a spreadsheet that is all of 16.8MB in size.
My understanding of this file is not all that great. My guess is that the text is spread throughout the file, along with the data that describes each event. I imagine that DQK events are recorded in this file. Thus there is a lot of text and a lot of other stuff.
Below is a fairly typical specimen of what I see. There is a line "BP~Nů" that seems to have no text in it. The at @ signs separate the three columns, they don't occur in the original text.

ON.~GQJ~K6S5@:8~{{{D(~/YOU @ A4R B=$=VAL
XD2C58BBSXEB@SHOW HIM THE@ ={{{~ $6AP V~
AXCAUEAT(A$#@ LETTER FROM@0UQPUJ~YH<6~
3XC~UT S X~T@ LAURANA AS @0EUHD8F~EN~
8BAX~#548D!T@HE BOWS RESP@V~H={{{NAHUM~T
4AP5A%SCF{{{(~@ECTFULLY. ~I@MPYT01&:~~$~

BP~N~S$~DX~7@~~8ANP~Q C{{{{{{@C D9~AF~M95B

' THE GENERAL@P V~{{{T8UHD2A@AXA1S!T SHD!
 REQUESTS YO@HUETUMQNA$=U@TUQT5D8FS5T(
UR PRESENCE @JAAHULT8LV~E@DD!T1S 1X~UH
AT THE PALAC@RAP VA~D0DLV@EBAXD~S~P1{{{H
E, AT YOUR C@2~ERA$=UJ~L<@~UHFS5T(~33%


(Here  a tilde means 0, and a triple brace {{{ means a character from 27 thru 31, these are my own private symbols.)

That spreadsheet can be compressed to a reasonable length, around 600KB when I use a few tricks.
Edit:
The string length of a string seems to be the number that immediately precedes it. String length measures the compressed length of the string, not the plain language form.
Spreadsheet was less than 400KB in length and was uploaded to the Decrypting Gold Box Games topic.
« Last Edit: December 12, 2016, 06:53:11 PM by Ishad Nha »

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 943
Re: Dark Queen of Krynn Hub
« Reply #21 on: May 19, 2010, 09:50:12 PM »
I have yet to address the issue of secret, locked and false doors. Ditto, backgrounds are yet to be decrypted.
Each town record has five sections:
(1) an eight byte header.
(2) a listing of the N,E walls for each square.
(3) a listing of the S,W walls for each square.
(4) events and backdrops for each square.
(5) not clear, seems to include door information, may include any zones too.

(4) seems to be (0 + event number) or (128 + event number). In the former case, the backdrop is one that has a day/night cycle. In the latter case, backdrop depends upon the wall type on the square.

Decrypting event information in Ecl.glb, one trick is to look for stairways with known destination coordinates.
Edit:
Updated version of Template has been posted, shows the correct backgrounds in New Aurim and Kristophan.
Edit:
Backdrops may depend upon zones, I don't know.
« Last Edit: May 23, 2010, 09:59:54 AM by Ishad Nha »

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 943
Re: Dark Queen of Krynn Hub
« Reply #22 on: May 22, 2010, 07:44:09 AM »
Latest guess is:
if (4) is less than 128, the square concerned has an "outdoor" background type, as seen in Caergoth, Hizden, Kristophan, New Aurim, Hawkbluff, Blackwater Glade and Bai'or. Exact background type is determined by bitwise manipulation of the relevant number in (5), the 2 and 8 bits are the ones associated with backdrops. It may be zones not just backdrops.
It is possible for a town to have four background types, Kristophan for one has that. It has both DQK outdoor background types, mud and grass. Then it has two indoor ones, stone and wood. Now the header for any DQK town only has room for three background types. Kristophan has a header that lists: Wood, Bricks, Outdoor Grass. Thus the outdoor mud must be a default background type that does not need to be listed in the header.

I still don't know how the game files record locked doors. It may happen by placing of events, this would require a locked door event. I think I have figured out the walls, backdrops and blockages, that leaves everything else.

In summary, the backdrops are functions of both (4) and (5). Now I am working on an FRUA translation which will require breaking most of the towns up into bits. I will match the events in the squares of Caergoth with what I am reading in the decryption of the ECL file.
« Last Edit: September 26, 2015, 06:53:41 AM by Ishad Nha »

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 943
Re: Dark Queen of Krynn Hub
« Reply #23 on: May 25, 2010, 08:59:59 AM »
One pattern I have noticed, in the file Ecl.glb, before a block of text you usually find this sequence:
9 0 0 1 57 0 18 128 45
Most strings have this but not all do. There may be variations like the 18 being replaced by a 17. Last number is the length of the following string, the length in the compressed form, which is 75% of the length in normal form.
Edit:
I think I have decrypted more of the Palanthas/Caergoth town record. In particular, the table of contents for the events.
   Offset   Three Bytes         Short   Length      Placed
0   15,207   1   42   140   35,882   1      0
1   15,210   1   43   140   35,883   151      1
2   15,213   1   194   140   36,034   0      14
3   15,216   1   194   140   36,034   1      0
4   15,219   1   195   140   36,035   621      1
5   15,222   1   48   143   36,656   123      2
6   15,225   1   171   143   36,779   71      3
Offset: Starting at the start of the file, not the start of the town record for Palanthas/Caergoth
Three  Bytes:Bytes are presented in triplets, for reasons to do with the way text is compressed.
Short: A short number, equals 256 x third byte + (second byte)
Length: Length of the event record.
Placed: Number of times this event was placed in the town map. Not all events are placed.
There seem to be 48 events in total.
Offset   Length   
212   190   Numerical array
402   9,340   Game editor notes and functions.
9,742   1,434   Game editor notes and functions.
11,176   1,348   Game editor notes and functions.
12,524   10,100   Palanthas/Caergoth
22,624   11,874   Taladas Overland
34,498   2,020   Text from the Demo
36,518   11,886   Draconian Caves
48,404   11,924   Naulidis/Celanost
60,328       


        
Short numbers are interesting, I don't think they should be taken literally, for obvious reasons. Those offset numbers are found in the Demo and Draconian Caves sections.

« Last Edit: May 26, 2010, 07:45:32 AM by Ishad Nha »

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 943
Re: Dark Queen of Krynn Hub
« Reply #24 on: May 28, 2010, 07:46:00 AM »
A few towns in DQK meet the 576 square limit imposed by FRUA, they have been ported to an FRUA design. (The events are still missing, decryption has not gone that far.) Design is found below.
« Last Edit: May 28, 2010, 07:47:52 AM by Ishad Nha »

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 943
Re: Dark Queen of Krynn Hub
« Reply #25 on: June 11, 2010, 09:04:17 PM »
As for a Dragonlance Unlimited Adventures, you could use the FRUA editor to place the walls and backgrounds. Then use a proprietary spreadsheet to convert this into a form that the DQK program can use. Events are the problem, so far my understanding of the Ecl.glb files is not so great.

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 943
Re: Dark Queen of Krynn Hub
« Reply #26 on: June 14, 2010, 03:42:43 AM »
Ecl.glb has around 446KB, here is a spreadsheet decrypting the first 60KB. It is 4.3MB when expanded. My understanding of how things are recorded is still imperfect, hence I have to show all three possible meanings for each group of bytes. A lot of the numbers are simple numbers, not encrypted text.
Edit:
Here is the spreadsheet, I forgot to upload it.
« Last Edit: June 14, 2010, 09:04:04 PM by Ishad Nha »

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 943
Re: Dark Queen of Krynn Hub
« Reply #27 on: July 05, 2010, 09:15:24 PM »
Death Knights of Krynn upload has been moved to its own thread. I have not found time to adapt appropriate DKK graphics.
« Last Edit: January 26, 2012, 09:06:32 AM by Ishad Nha »

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9806
Re: Dark Queen of Krynn Hub
« Reply #28 on: July 07, 2010, 04:11:46 PM »
Okay, because of your work, and the fact that DQK was the last GoldBox game, I've downloaded DQK to play, and eventually grab any art from that does not appear in FRUA. :)

Offline Ishad Nha

  • Hero Member
  • *****
  • Posts: 943
Re: Dark Queen of Krynn Hub
« Reply #29 on: July 07, 2010, 06:08:00 PM »
FRUA art is mostly DQK art and vice versa. Except for the last Fire Brick door and a couple of DQK backgrounds.

 

anything