This is a drag and drop sprite that can compress text lightning fast and at a relatively high compression ratio. It minimizes clutter in the rest of the project by only using 4 broadcasts, and 3 public variables. In addition, all broadcasts and variables start with Z to put them at the bottom of the list, further minimizing clutter. Steps to use: Add the sprite to your project Manually set the 4 keys if desired. *The text to be compressed should never have any of the key characters in it, or it will cause issues with decompression. Load the text you want to compress into the "Text to compress" variable broadcast Z LZ77 Compress and wait The compressed text is now in the compressed text variable. When you want to decompress text load the compressed text into the compressed text variable Be sure the same keys are set now as was set when the text was compressed initially! Now broadcast decompress text and wait. Decompressing is much faster than compressing. The decompressed text is now in the Decompressed text variable. You may freely use this as you wish, if you credit me appropriately. I would also love to see what you guys do with it.
An implementation of the LZ77 text compression algorithm that utilizes base 100 to have smaller tokens. This video does a much better job explaining how it works than I can https://scratch.mit.edu/discuss/youtube/goOa3DGezUA/