Unity load other player data from cloud?

I am making a game, and save items to the cloud that includes their scores. I need a way to either save/load somewhere else, OR use cloud save to load other players’ data… once I figure that out, I need to load a few players items that have a close score to the searched one.

-player1

------item
------------score(50)

------item
------------score(1)

-player2

------item
------------score(5)

------item
------------score(51)

-Local player(searches for score of 50)
–gets both items in players 1 and 2 with scores close to 50 and(unrelated): adds the player+item to a list

if this is not possible, I would appreciate ANY databases I can use, it simply needs to store files, and have a query/search system.

I did look into firestore, but there is no way to use it in a desktop app, unless you go through a web, and I don’t really want to have to deal with that

Hi!

You can use cloud code to access others player data and write a search method for your use case. It is recommended to use the C# module of cloud code so you can setup a repository with your own backend code.

You can also use Custom Items (using Cloud Code or API) from Cloud Save to save custom data that isn’t tied to a player id.

If you are looking at managing player scores, the Leaderboard service might fit your needs!

We are looking at introducing features such as querying and/or databases. Stay tuned!

Thanks, i have never used the Cloud Code API, is there documentation with examples I could see?, how would I do a query? would a query work even when their connected to player ID’s?

still not sure how to do this, as I’m not really good at JS at all, and I can’t figure out how to do it with C#… any help appreciated… any other databases I could use? I’m hoping I can save/load and query folders with json files, one includes the score. so I need to query(search) based on the score jsons’, and load the other json files

Were you able to find some solution?

Not really. still procrastinating the search haha. I changed my game a bit so I didn’t have to use it. I would still like to learn the cloud code for future use cases, and any extra explanation in this thread would be useful.

Haha nice, i am actually working on a multiplayer game, i have done a good progress so far, like i have implemened authentication, cloud save and cloud code module to add cross player data. I am currently struggling with getting data from leaderboard for all players and show it in proper sense in UI like player name, score etc.
I am able to pull the leaderboard data and debug it with this code

var scoresResponse = await LeaderboardsService.Instance
    .GetScoresAsync(leaderboardId, new GetScoresOptions { Offset = 0, Limit = 1000});
Debug.Log(JsonConvert.SerializeObject(scoresResponse));

But i am failing to show this data in UI, do you have any idea?

Please open a new thread in the leaderboards section of the forum as your use case is not related to cloud save (which this thread is about).

Okay thank you and my aplogies.