I’m trying to compress datastore data and in a previous topic string.pack was suggested to me. However, data stores only accept values between 0-127(so for example a byte like 128 or 200 that string.pack may produce isn’t a valid datastore byte and it will throw an error if I try to save it in one). Therefore I’m making the topic to ask if there is a string.pack configuration or optimal method of making it limit each byte to 128 values instead of 256 or if I should create my own custom method of achieving this from scratch, also any code snippets of your own function ideas are welcome
(but they must implement string.pack in them and basically be an extra layer on top of it).
Possibly splitting the data might help. If it’s over 127, you can make it 2 characters long that add up to the number.
Or, you could not use string.pack and just remove whitespace and unneeded characters.