Sign In Register

How can we help you today?

Start a new topic

Copying player data

I would like to be able to make a backup copy of the players data (script data and private data) before the player data is updated to a new version, in cloud code. However there seems to be no way to do this automatically as there is no way to get a list of the key values. Every key and data pair would have to be copied over manually, which would be error prone. I could put all of the data into two objects (one for script data and one for private data), but presumably that would have a serious affect on performance, as the whole player data structure would have to be accessed every time I wanted to access a single item of data.


Is there a around this?


Thanks for any help.

1 Comment

Hi Kevin,


How much scriptData and privateData are you storing on your players ? If it's a lot, a custom collection might suit your needs better here. What is the name of your game ? I'll take a look at your players and advise on the best course of action for you.


Thanks,

Liam

Login to post a comment