|
| 10 Mar 2014 11:40 PM |
I am working on a data saving system for a universe, and since Data Stores cannot save Instances, I was going to just use Persistent Data. For this, I was going to store information as IntValues, StringValues, and IntContrainedValues, until I found out that multiple place (even in a universe) cannot reference the same Persistent Data. So, I am wanting to convert the information to keys and values in tables, and store the tables to the Data Store, but have the following questions / issues about tables that I would appreciate answers to or input on.
1. Can tables be renamed after they have been defined?
2. Is there an easy way of copying a table to a different name, or is it necessary to iterate over all of the key/value pairs to create a copy of a table?
3. Is it possible to define where a table is stored in a server? (I.e. have a table named "Save" stored under the local player. The goal would be to have the tables being different for each player but the same for any scripts referencing the player. I am hoping to avoid needing to put the player name in the name of the table.)
4. It seems like Data Stores are just tables themselves, with it being possible to store tables in tables, but is there a limit to how many layers of nested tables there can be? (To keep inside the throttled request limit of Data Stores, I would be loading and saving tables to the Data Store instead of each key/pair directly to the Data Store.)
5. Saving IntValues and StringValues as key/value pairs should be straightforward enough, but if anyone has an easier and more efficient way for IntConstrainedValues than storing 3 IntValues, I would be open to the idea. |
|
|
| Report Abuse |
|