Board Thread:Questions and Answers/@comment-178.200.16.31-20140515180236/@comment-25080172-20140523002520

Randomouscrap98 wrote:

If you're storing the map for later use (like a save file), you'll either want to keep the map numbers under 256 or perform some math tricks in order to store larger values. This is because a GRP and MEM file can only store numbers from 0 to 255. A useful trick is to convert all the numbers into hex (assuming all values are below 16) and pack them into a MEM$ string. The maximum would roughly be a 16x16 map. Then, all you need to do is read the MEM$ string one character at a time, checking the value of each hex digit, and loading it into the array as a decimal (think base-10) value.