View Single Post
  #13  
Old April 8th, 2020, 05:40 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,302
Thanks: 99
Thanked 528 Times in 357 Posts
MarkSheppard is on a distinguished road
Default Re: Blitzkrieg Banzai? (SP1 Conversion)

With both compressed and uncompressed datablocks both taking up 127 bytes, it looks like a quick and dirty compression method would be:

read chunks of 127 bytes. If bytes all match, compress. If there's mismatch, run as uncompressed.

EDIT: And of course, you don't need to recompress; you can just insert the newly uncompressed section into the scenario file and change the section header to account for the new length and change the COMPRESSED flag from "Y" to "N" and it'll load in game

Last edited by MarkSheppard; April 8th, 2020 at 05:55 PM..
Reply With Quote