Overwriting player ...
 
Notifications
Clear all

Overwriting player data

4 Posts
2 Users
0 Reactions
594 Views
(@derkoi)
Posts: 15
Eminent Member
Topic starter
 

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

 
Posted : 12/08/2016 11:12 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

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

 
Posted : 12/08/2016 5:45 pm
(@derkoi)
Posts: 15
Eminent Member
Topic starter
 

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?

 
Posted : 12/08/2016 8:27 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Check the overload of User.Load at  http://skaredcreations.com/api/combu/page_users.html#sec_users_loadusers

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 12/08/2016 11:00 pm
Share: