|
| 27 Sep 2014 12:27 PM |
| I am testing a game in which I use data persistence to save an instance (a configuration with numerous value objects in it). I changed the way that the items are saved and to to re - test it. The only problem is that the game is still loading in the original way because the values saved. I need a way to make it forget the :SaveInstance item, just as a one time thing. Anyone know of one? |
|
|
| Report Abuse |
|
|
ohno1112
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 833 |
|
|
| 27 Sep 2014 12:28 PM |
| Switch over to datastores. |
|
|
| Report Abuse |
|
|
BetterBe
|
  |
| Joined: 25 Jan 2009 |
| Total Posts: 1034 |
|
|
| 27 Sep 2014 12:31 PM |
| I would suggest just renaming the save keys for the objects, which means it wont draw from the old ones and hence the solution. You could simply put a version number after the keys like "2" since this is the 2nd gen of your keys. |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Sep 2014 12:38 PM |
Alright, so that DID fix that problem. However, I now have a different problem, but decided to just post it as a reply here since it's related:
classes is a variable that is declared as a configuration object inside of the player
This isn't the full code, obviously, but here's the broken part:
local c1 = classes.Class1 TButton.Text = ("The value is: "..c1.Color1.Value) --Color1 is a BricKColor value.
The error is - attempt to concatenate field "Value", a userdata value.
I've already tried setting it's value to a variable, but received the same error. |
|
|
| Report Abuse |
|
|
| |
|