Hi, I'm implementing Combu in my game, so far so good however I'm a little unsure about something.
When my player registers an account in my game, the player data is saved on the server.
I'm trying to set the game to save/load automatically the data on multiple devices. Is there any way to find out which data is most recent? Or should I have the player save and load manually?
Also, another unrelated question: Is it possible to store game data on the server that can be loaded by all players at game start up? My players can name game characters when they discover them first, I'd like all other players to load the character names when the game starts, Combu would be perfect for this use.
Thanks
For the first question you could use a customData key in your User profile to store the last saved date/time.
For the other question, if I understand your request (unique characters' names) you could do a search of customData if you're using customData to store your characters info, you need to define a good setup/keys for storing info in customData for using in a multiple-characters per account environment. Another way is to create your own custom addon (including class and database table) to have even more customization.
FRANCESCO CROCETTI @ SKARED CREATIONS
Thanks for the reply. I am now saving an int that increases each time the data is saved, if the int on the device is lower than on the server then the data is loaded.
If I searched the customData would I only be able to find the logged in players data? How would I load data from all players?
Check the overload of User.Load at http://skaredcreations.com/api/combu/page_users.html#sec_users_loadusers
FRANCESCO CROCETTI @ SKARED CREATIONS