GGData - save() errors after doing a destroy()

I just got the latest GGData off of github, and replaced my ICE integration with GGData, replaced all the ice calls with the newer GGData ones (store changed to set, etc.)

With Ice, when I wanted to reset all my game data I would run the box:destroy(); call.  That worked, then I could start loading the box back up with stuff.  But now with GGData, if I try to do the destroy, then the next time I do a save() it errors:

File: GGData.lua

Line: 176
Bad argument #1 to ‘mkdir’ (string expected, got nil)

If, I restart the app, it’s fine, cause I recreate the box I think…

I tried doing a destroy then recreating the box, and it still had all the same data in it.

What is the easiest method to just delete everything in the box, and still be able to start saving to the box again.

So, this seems to be working now if I do it in this order:

1.  box:delete()

2.  box:destory()

3.  data = GGData:new( “myData” )

It looks like I have to not only destroy the object, but also delete it from disk, then recreate the object.  Wow… in ICE this was all done for me just by doing a destroy().

So, this seems to be working now if I do it in this order:

1.  box:delete()

2.  box:destory()

3.  data = GGData:new( “myData” )

It looks like I have to not only destroy the object, but also delete it from disk, then recreate the object.  Wow… in ICE this was all done for me just by doing a destroy().