generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Trying To Delete A Persistent Value

Previous Thread :: Next Thread 
GreatOculus is not online. GreatOculus
Joined: 30 Aug 2009
Total Posts: 2103
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 is not online. ohno1112
Joined: 23 Mar 2013
Total Posts: 833
27 Sep 2014 12:28 PM
Switch over to datastores.
Report Abuse
BetterBe is not online. 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
GreatOculus is not online. GreatOculus
Joined: 30 Aug 2009
Total Posts: 2103
27 Sep 2014 12:31 PM
Thanks @Above
Report Abuse
GreatOculus is not online. GreatOculus
Joined: 30 Aug 2009
Total Posts: 2103
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
GreatOculus is not online. GreatOculus
Joined: 30 Aug 2009
Total Posts: 2103
27 Sep 2014 12:46 PM
Bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image