Page 1 of 1

Gorky 17 - game request

Posted: Tue Dec 19, 2006 10:45 pm
by Hovnodabljumen
I have search for some days and found program that can open .dat files from game Gorky 17. Extracting those will create one level smaller files, also dat files are big folders for smaller (I think image files) .bkg
Didnt know way next because no one from others extractors or programs could not launch and view this format.
Thanks in advance for any help with this format.

HWman

Posted: Wed Dec 20, 2006 10:54 pm
by Darkfox
Providing an example would help.

Posted: Fri Dec 29, 2006 9:03 pm
by Hovnodabljumen
Which type of example do you want? 8D

Posted: Sat Dec 30, 2006 12:37 am
by Dinoguy1000
If you could attach or upload some sample files, that would work.

Posted: Thu Jan 04, 2007 9:12 pm
by Hovnodabljumen

Posted: Sun Jan 07, 2007 1:22 pm
by szevvy
OK - the bkg is basically a bunch of 8-bit images, in the example you gave it seems to be backgrounds, you can make out buildings and ships, etc.

The format is as so:

Code: Select all

4 bytes: "bkg1"
4 bytes: all zeroes in the example you provided
4 bytes: an unsigned 32-bit, the number of images in this file
8 bytes: *shrugs*

Then, after that, for each image you have:
8 bytes: a 'counter' of sorts
4 bytes: an unsigned 32, the width of the image, which needs to be multiplied by 2 to give the actual width
4 bytes: the height - does not need to be multiplied
4 bytes: an unsigned 32, the offset within the bkg to the image data itself.
As for the zbf: it looks, at first glance, to be RLE-compressed data - standard stuff, one byte gives the run, second gives the byte to draw out. Of course, you'd need to add 1 to the first byte as most of them are zeroes i.e. only one pixel of the following colour. However, that's just a hunch and I could be wrong.