Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Save an array into multiple keys efficiently?

Asked by 5 years ago

I'm making a building game.

So I have this table of blocks. A block is an table containing position, color, size, and type of block. Unfortunately, the 260k character limit for datastores is quite low when you save like this. My plan was to use multiple keys to save the table, by splitting the table in halves until it could fit. However, I realised this would take a lot of time to save, so I can't save with game.Close. Since I couldn't find another solution, I started implementing this. I would like to know if there's a better way to save into multiple arrays.

0
If you are going over that char limit then you should be thinking "is this the best way I can be saving this data" and "can I remove a lot of redundant/duplicate data" User#5423 17 — 5y
0
Thanks a lot. It's a temporary fix: people will demand more features. It somewhat works, though. User#24228 0 — 5y

Answer this question