How to save large amounts of data?

I was wondering how games such as Welcome to Bloxburg, Retail Tycoon 2 and Restaurant Tycoon 2 are able to save an entire map created by the player. With each individual item having their own color, location, etc., it seems like it would be a lot to save.

I’m not talking about what datastore they use, because I highly doubt they use Roblox’s, but I am more interested in how they save the data. Do they somehow group the entire map and save it that way, or does each individual item get data logged for?

1 Like

They probably use lots of different kinds of clever techniques to reduce size of data saved. One of the major things that you need to consider when saving objects is to store data that you really need to remember, other things should be discarded.

I can think of them storing object id, position, rotation, colors, and other customization properties. Then what they do is load the objects by their respective id’s and perform transformations described by position, rotation, colors, etc.

For example:

CoffeTable {
  id = 1,
  rotation = 90,
  position = {x = 0, y = 0, z = 0},
  customization = {
    legColor = "#fff",
    topColor = "#eee"
  }
}
1 Like

For Regular DataStoreService

DataStores can hold up to 4MB of Data (4 million Characters)

Each character takes up 1B (1MB = 1,000,000B)


Some Developers Use Multiple DataStores, others Compact Data to make more space

2 Likes

Others might even use dedicated database from third-party provider.

2 Likes

Yeah that’s a good point, I couldn’t imagine storing all of that on Roblox’s datastore

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.