October 19, 2025Oct 19 Hey everyone, I've been trying to get an accurate LZSS compression routine working for King of Colosseum 2, but have not been able to get it to compress to how the original file is. I've been able to get a compression script working, but the texture (file9967_incorrectlycompressed.comp) does not load correctly in the game. It's due to the compression not being accurate, however the decompression script can decompress the TIM2 file correctly. I've replaced another file with an original raw compressed file (file9967_correct.comp) within the KC2FIRE.001 archive and had no issues with the texture loading. I'm trying to get texture replacements working. I know Brienj was working on this a number of years ago, but I don't know how much progress was made. Hope this makes sense. I've attached the tm2, compressed files as well as the LZSS decompression script and the Python compression tool that I've created. Hopefully someone is able to help. KoC2.zip
October 20, 2025Oct 20 Author Hi, Thanks for the response. Unfortunately, the output doesn't match the original file. Is there a way to get an accurate byte for byte compression? This is the main issue I have. The output from your tool is in the first screenshot. The original is underneath. Thanks! Edited October 20, 2025Oct 20 by skstylez
October 20, 2025Oct 20 Author Yes. I've replaced another file with the unmodified comp file from the default game and the one from the tool you provided. The default game version (file9967_correct.comp) works.
October 20, 2025Oct 20 Supporter I will take a look, lzss compression is trick sometimes. I made some alterations, and the file was very near to original, maybe you can try with this one.
October 20, 2025Oct 20 Author I'll try it. I don't see any files by the way. Could KoC2 have a unique decompression algorithm? Is there a way to find the assembly routine within the game?
October 25, 2025Oct 25 Author try2 seems to work. If you have the compression script for that in python, I'd appreciate that. I would like to include it to a file injection tool I'm working on. Credit will be given. Thanks!
October 26, 2025Oct 26 Supporter Nice! So it´s solved! Mark as well, for help the community. Edited October 26, 2025Oct 26 by Rabatini
March 16Mar 16 Author Hi, I'm having some more issues with the compression. This time it's the models which are causing the game to crash. I've used the previous compression script you posted (which worked for the textures), however it doesn't seem to work for models. Please see the attached zip. File1.mdl should ideally compress to file1.comp, but the script gives the output file1_tool_output.comp. There is a byte shift which I think could be causing thr issue. Any idea why this happens? Thanks! File1_mdl.zip
March 21Mar 21 Supporter On 3/19/2026 at 6:34 PM, skstylez said: @Rabatiniare you able to assist? Thanks Your zip file is kind confuse. what is the compressed file? Edited March 21Mar 21 by Rabatini
March 21Mar 21 Author file1.comp is the original compressed file from the game's archive. This decompresses to give you file1.mdl. file1_tool_output.comp is the compressed file I get when I compress file1.mdl with the script you provided in the previous post. When I try to inject file1_tool_output.comp back into the archive and rebuild the ISO, it does not load up in game. It crashes.
March 22Mar 22 Author The decompression is fine. It's the compression which is the issue. The compression algorithm that works for the TIM2 files does not work for the models.
March 29Mar 29 Supporter 14 hours ago, skstylez said: Any possible solution? I am very busy lately, and do not take look yet.
Create an account or sign in to comment