Should I store loads of data to one datastore?

Hello! I am currently working on a terrain generation system and I have encountered a problem.

So, my generation script generates big islands for people to build and do stuff on. I want to save it so you can use the same island. Problem is, Islands are really big and I want to know if it is tangible to save them at all. If so, is there a specific way?

An island:

I don’t need a whole system designed, I just need guidance on how I could do this. Thank you!

There is a maximum allowed data limit per key of 4MB. Each character accounts to 1 Byte. You should have no issues when storing data since you can store 4,000,000 Characters. If you think you’ll reach this limit or get close to it then there is ways to crunch down on this.

Instead of storing an entire CFrame all you really need to store is the Position + LookVector.

To crunch the Position value down a bit if you’re noticing decimals you can store the positions as: math.floor(number * 10) then when loading the data you simply do: number/10 and you’re back to the original number!

I hope what I wrote makes sense and can be useful. If you have any questions or further concerns feel free to ask!

1 Like