| 12-05-2006, 06:23 AM | #1 |
I'm looking for a way to compress a string of numbers. Each string is about 250 numbers. I've though about just replacing each 2 numbers with a character (eg with a number). That should cut it in half but I'm wonder if there are any better ideas? Besides the numbers themself (0123456789) I have 179 characters to use. !"#$%&'()*+,-./:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn opqrstuvwxyz{|}~¡¢£¤¥¦§¨©ª«¬*®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊà ÌÍÎÏÐÑÒ ÓÔÕÖרÙÚÛÜÝÞßÃ*áâãäåæçèéêëìÃ*îïðñòóôõö÷øùúûüýþÿ |
| 12-05-2006, 06:26 AM | #2 |
I assume you're not expecting people to type in 250 base 10 numbers worth of information, and that this is a constant in a script. In that case, don't worry about it. MPQ will take care of it. |
| 12-05-2006, 06:38 AM | #3 | |
Quote:
Are you saying that when you save the map is auto compresses them? Anyways I still need some ideas. Just so you know what I'm doing I'm trying to save all of a maps information (terrain, doodads, etc) so I can create a map ingame. I copy all the information into gamecache, save the map, then extract the gamecache. The problem is that for the terrain alone its about 3000 numbers in total. So as you can see I really want to compress it. |
| 12-05-2006, 12:19 PM | #4 |
gamecache is also a compressed format. |
