C
Cyberman
Guest
That would be my conclusion too. Dang what a pain. It works perfect for everything else I've used it for though. When is a bug a feature?I checked the uncompressed sizes, and ALL of them give me 7808 bytes, without exception. I made a basic "checksum" calculation for the blocks, and most of them give me different values, meaning there is different data, xcept for a few files that are empty (the ones that compress to only 11 words).
From that I deduce your decompression method doesn't work as it should.
Script Length? No length marker that I am aware of I believe since the record size is fixed to 7808 bytes that means that you check if there are any scripts. Then after that you perform much the same computation as you did to find the compressed file lengths (between scripts) the final one can be done using the end of the record. If you have one script though it means from the offset to the end of record is the AI. There are a few battles that are like that. Look at the ProudClod battle that might help.EDIT: I have been trying to figure out how to "get" the script length, but I'm starting to think there isn't any length marker and the scripts just exit when they are done executing...
Cyb