+==========================================================================================+ |Keen Dreams CMP SLIB (Compressed graphics library) format: | +==========================================================================================+ Commander Keen Dreams uses the SLIB format for its title screen in earlier versions. It is divided into three main parts, the file header, a varying number of image headers and the image data. When decompressed images are planar EGA data, like those of Keen 1 ending screens. Compression method is probably huffman, using EGADCT. ------------------------------------------------------------------------------- FILE HEADER: 0 4 Sig Signature, 'SLIB' 4 2 Version Version number, always $0002 6 2 Imgs Number of images in file 8 30x Img hed Image headers ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- IMAGE HEADERS: ? 16 Name Name of compressed image (Max len 12 chars) padded with nuls +16 4 Dat st Start of image data in file (From start of first image chunk) +20 4 Dat end End of image data in file (From start of first image chunk) +24 4 ??? ??? +28 2 ? $0002 ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- IMAGE DATA: ? 3 Sig 'CNK' (Chunk) +3 4 ??? Same value as ???? in image header +7 2 ??? $0002 +9 ? Data Image data -------------------------------------------------------------------------------