Talk:Captain Comic II Tileset Format

How are the zero bytes used during compression? I tried inserting a zero byte after each tile but the game loads with completely blank (black) tiles then. It seems the game doesn't need these zero bytes? -- Malvineous (talk) 07:39, 27 December 2014 (UTC)

I believe they aren't used in the tileset which the game loads as one contiguous block. Putting in a stop code would then prevent the game from loading the rest of the tiles. The zero byte stop code is used in the sprite files which use the same compression/decompression algorithm. With the sprites, the game knows where to seek in the sprite files to read each sprite, and the stop code prevents it from reading to EOF through several other sprites. (That data is in the EXE, which I'll have a page on soon, as it contains many sprites and the level metadata.) Ceidwad (talk) 13:09, 27 December 2014 (UTC)