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?
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"
}
}