Match history
-
Hi @tlim ,
What sort of match history?
What sort of game are we talking about? Which multiplayer APIs are you using?
Paul.
-
My game is similar to team fight tactics, I have a dedicated server in multiplay with brain cloud S2S and player accounts, I would like to have a match history like this https://tactics.tools/player/ru/Nettlemidge/RU1
-
Hi, not involved with BrainCloud but seeing as the team may be offline during the weekend I thought I would suggest looking at Player Stats:
https://docs.braincloudservers.com/api/capi/playerstats/Converting into a table for display on the client should then be straightforward.
-
Hi @tlim and @devsleeper ,
Player stats are definitely useful for keeping all-time stats.
If you want to limit stats to recent matches - you might consider using "Owned Custom Entities" for each match result. You can set a TTL for the objects so they don't stick around too long - maybe 90 days?
And then just retrieve the last 20 match results (if they exist) to sum up the totals and produce the stats.
I hope that helps!
Paul.
-
thx, that should work for the player, but what if I want to look at all the matches that happened from the server or as a developer?
I guess I can use the global statistic? then I can omit saving the match history for the player, the player can query the global statistic and filter the matches that they played in?