|Category||Compression / Decompression|
|Release Date||03 November 2014|
|Last Modified||03 November 2014|
This program is used to compress and decompress graphics/data/some text from several Koei games for the SNES. This program has been confirmed to work with Romance of the Three Kingdoms III and IV, Gemfire, and Genghis Khan II. It should work with any other Koei game that uses the same compression format.
Results of a decompression will be stored in a file with the extension .kdf (Koei decompressed file). Results of a compression will be stored in a file with the extension .kcf (Koei compressed file). In addition to these file types, running a decompression will also generate a file with a .dat extension. This file holds information regarding the hex offsets of compressed data in the ROM, corresponding locations in the .kdf file, and also the size of the sequence in bytes both compressed and uncompressed. Once the data is decompressed, graphics data can be easily viewed using a different tool, such as TileLayerPro.
Run times vary, with decompression of the entire ROM taking sometimes over a minute to handle, depending on your computer. Re-compressing individual sequences should no longer take a long time in V1.1. The largest individual sequences I have found in Koei games are about 20kB when decompressed. Compressing anything significantly larger than this could take awhile, as compression is much slower than decompression.
V1.1: Fixed a problem with a variable that would cause errors at the end of a compression sequence. Also made improvements to the efficiency of the compression algorithm, making it run significantly faster.