#Accessing other players Cloud Save Data without Cloud Code

1 messages · Page 1 of 1 (latest)

outer basin
#

Hello. After failing for days now, I've given up on implementing some kind of Cloud Code in my game:

I want to be able to load another players Cloud Save Data by knowing their player ID. I have found Public Key in the Cloud Save Dashboard, but I am not sure how I save something as a public key to begin with.

I have very big problems with the Cloud-Save Documentation and am struggling hard.

  • I am able to access the other players PlayerID by fetching their score in a leaderboard
  • I now want to LoadPublicDataByPlayerId as suggested in the docs, but how do I save data as public in the first place?

Thank you in advance. I came to this workaround since I couldn't make Cloud Code writing and reading of Cloud Save possible.

PS: I feel like a huuuge improvement would be to be able to read (and maybe even write) Game Data for making persistent game data manipulatable by players, if you could toggle that or implement that in the future, it feels like Cloud Save would enable infinite more possibilities.

#

Maybe I found the solution in:

public async void SavePublicData()
{
var data = new Dictionary<string, object>{{"keyName", "value"}};
await CloudSaveService.Instance.Data.Player.SaveAsync(data, new SaveOptions(new PublicWriteAccessClassOptions()));
}

Is that what I'm looking for? Being able to access that from another client by knowing this players ownerId will work, correct?

#

I would be incredibly thankfull if someone confirmed, that there is no direct way to access or save Game Data / Custom Data (?) that's not player specific directly through Cloud Save?

Feels like such a huge opportunity missed.

Is my workaround storing persistent Game Data within leaderboards a weird one? Are there better ways to do it by only using Economy / Cloud Save ?

I want Player A to engage with the world map, e..g claim Zone 123, and when he does, I want Player B to know who Zone 123 belongs to, and maybe what units are parked in there (by player A) or whatever.

floral kestrel
floral kestrel
outer basin
#

I use the DateTime in milliseconds as a highscore, so whenever someone pushes their score to the respectives Zone-Leaderboard I know it’s the current owner.

Not sure how the leaderboard would trigger a cloud save? Would that mean I can call some Leaderboard-Function which then can write Game Data? Feels quite Proxy 👀

floral kestrel
outer basin
#

Okay, I’ll see if I can get that connected / setup, thank you for your input, legend!