So in order to at least have some kind of way to protect myself against losing data when writing to BigDB in RoomClosed(), I'm trying to do a back-up of objects from one table into another as soon as they're loaded.
But, all it saves is a blank object with the given key.
- Code: Select all
PlayerIO.BigDB.Load(DatabaseTableNames.Rooms, roomIdToLoad, (dbo) =>
{
PlayerIO.BigDB.CreateObject(<a different table name>, dbo.Key, dbo, resultDbo => { }, OnDatabaseError);
}
Help? I'm running out of ideas now....
Cheers, Paul.