Hi,
I’m creating an experience where players can construct their own map on a 256 x 256 grid. Data is stored in two dimensional arrays in game (one for height, one for color, etc.), to have it readily available. Each value is a one byte variable.
However, when storing player data between sessions, I want to try and use a more memory efficient data type. As I have only one byte values, I can relatively easily just take the approximately 64,000 bytes (256 x 256) and put them into a string variable (with a checksum after each 256). I’m afraid, however, that the string encoding (UTF-8 or whatever) used by Roblox will not be consistant and the data may be destorted.
Can anybody tell me what string encoding Roblox script uses, and if it will be consistant in the future?
Do you have any other ideas for this task?
Thanks a lot.