Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Accessing other players data

Discussion in 'Cloud Save' started by aixa, Oct 23, 2021.

  1. aixa

    aixa

    Joined:
    Sep 28, 2012
    Posts:
    46
    Is cloud save supporting accessing other player data?

    Simple use case:
    I have simple friend list. In player data I have list of string with other players ids.
    With Cloud Code script I can call FetchFriends that would fetch extra information like name and level from other players, and return the new list with full into about friends.

    Would that be correct way of doing it?

    Also based on the docs, data is always tight to player id. Is it possible to use Cloud Save as global database slot, for example leaderboards, where more players can read from?
     
    Dasp likes this.
  2. StevenStip-Unity

    StevenStip-Unity

    Unity Technologies

    Joined:
    Apr 7, 2021
    Posts:
    19
    Hi Aixa,

    Thank you for your question, this is a really good point. Cloud Save & Cloud Code currently only supports access to the data of the player who makes the request.

    We do however realise that this is limiting, especially in situations as you mentioned. This is high on our to-do for the beta product and when we figure out how to do this in a secure way you will be able to have both, access to any player's data and store global data. This will resolve both your use cases. Watch this space!
     
    DavidZobrist, psbskb22 and aixa like this.
  3. aixa

    aixa

    Joined:
    Sep 28, 2012
    Posts:
    46
    ok, that's good to know and thanks for your response
    Will be checking the updates as they come :)
     
  4. psbskb22

    psbskb22

    Joined:
    Oct 26, 2021
    Posts:
    3
    Hi,
    It's good to know these upcoming features. But is there any timeline or future planning for these features to arrive at cloud save?
     
  5. DeGenerals

    DeGenerals

    Joined:
    Feb 12, 2018
    Posts:
    2
    Hello,

    sorry for undigging this, but I have a similar issue, is there any good solution within Unity Services for this problem?

    I want the players to be able to get a save from host to which they are connecting to - with being able to just download the data from host Authentication ID then it would be all I want.

    Thanks,
     
  6. Laurie-Unity

    Laurie-Unity

    Unity Technologies

    Joined:
    Mar 5, 2020
    Posts:
    174
    Hi DeGenerals,

    Don't be sorry :) we really appreciate your feedback, suggestions and questions.

    Can you provide a little more information or clarification on the use case you are trying to implement?

    Are you saying that multiple players are connecting to a host player and you want them to load the hosts save data? Is the purpose of this for connecting players to access the host players state (e.g. XP, Strength etc..) or is it more about accessing a persistent world or level state?

    Thanks,
    L
     
    DavidZobrist likes this.
  7. DeGenerals

    DeGenerals

    Joined:
    Feb 12, 2018
    Posts:
    2
    Hello,

    the answer is the latter, to get the state of the world, let me explain better:

    1. This is a multiplayer coop game made in PUN 2
    2. The save state contains information about player team resources, force pool, units etc. (this is a WW2 tank game) during a campaign.
    3. Players can join such game in any moment, during battles or during special segments of repairing and managing.
    4. A single game can last for few hours, as in a single campaign there will be few battle missions, separated by repair section game mode.
    5. To properly synchronize everything when players join the room they need to get the game state from the host. This is stored by Easy Save 3 .json file (around 50-100 kb file).

    Thanks,
     
    Recon03 likes this.