-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|595|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Variables


 
Jayenkai
Created : 15 April 2007
Edited : 13 May 2007
Language : Blitz

JNKrunch (v0.1)

Simple compression for Level data.

I've been using this same type of compression for my data for years.
Take a lengthy bit of Ascii data, and compress it a little.
I figured some of you might find it useful.

Be aware, though, that it's really rubbish at compressing complex data! It's meant for incredibly repetitive stuff.


 

Comments


Monday, 16 April 2007, 04:22
mike_g
Cool. I'll give this a try when I get home. It works a bit like GIF compression. I wanted to write a compression algo sometime, its one of the things I havent got around to yet. Anyway, nice snippet
Monday, 16 April 2007, 05:47
Blitz3Dman
Nice snippet, if I use it and change the way my The Running Man level saving works and use this method should I give you credit?
Monday, 16 April 2007, 05:51
Jayenkai
No need to credit me.

If I stick a "; Remember to credit me!" thing at the top of my code, then do so.. Otherwise, this is just a little teensy bit of code, and isn't really worth the credit.
Monday, 16 April 2007, 05:59
Blitz3Dman
Add this code to have the program decide which method to use and use one extra byte to declare which method is used.