How can I find this value in table and remove it?

Uhh… I get it. But then why I was serializing all the data of a part for saving it… Thanks for opening my eyes.

Edit - How to save model of parts using tables(Data store) - #2 by w4570

Even this person says that parts can’t be directly stored… I’m confused.

Then why serialization exists if we could directly save a part inside a table…

Parts stored in the table are references to parts that exist in memory during runtime. Think of them as unique IDs to find the appropriate objects anywhere in game (and also outside the data model).

Our own serialization, however, has to be done when storing properties of parts in the data store. The data is going to persist long after the server closes, engine references and memory addresses will be different in a new game instance. We are going to create a new part with a new ID and apply stored properties.

Furthermore, serialization allows us to compress the data and save as much memory as we can to comply with data store size limits.

Hopefully this helps. :slight_smile:

1 Like

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