• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums

Match history

Scheduled Pinned Locked Moved Unsolved General
8 Posts 3 Posters 297 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tlim
    wrote on last edited by tlim
    #1

    Hi, I am wondering what is the recommended way to store match history so it can be viewed and filtered in the portal as well

    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote on last edited by
    #2

    Hi @tlim ,

    What sort of match history?

    What sort of game are we talking about? Which multiplayer APIs are you using?

    Paul.

    1 Reply Last reply
    0
  • T Offline
    T Offline
    tlim
    wrote on last edited by
    #3

    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

    1 Reply Last reply
    0
  • devsleeperD Offline
    devsleeperD Offline
    devsleeper
    wrote on last edited by
    #4

    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.

    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote on last edited by Paul Winterhalder
    #5

    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.

    1 Reply Last reply
    0
  • T Offline
    T Offline
    tlim
    wrote on last edited by tlim
    #6

    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?

    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote on last edited by
    #7

    Well - the "owned custom entities" approach could come into play again if you want to view the matches across the system. Although owned custom entities are owned by players (and get deleted if a player account is deleted) - they are still queryable across the system... via API or the Portal (see App > Global > Global Data > Custom Entities ).

    I hope that helps!

    1 Reply Last reply
    0
  • T Offline
    T Offline
    tlim
    wrote on last edited by
    #8

    thx, I will give it a try

    1 Reply Last reply
    0

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users