Page 1 of 1

Table statistics not displayed, need to wait 1000 plays ?

Posted: 26 March 2026, 10:34
by Diogo_Femto
Hello everyone ! I'm a newbie and have a question about statistics for an abstract game that is now in "open alpha".

In this game players have many ways to win and I want to keep stats on which kind of victory was triggered. I added player and table stats with same names and ID's like:

"wins_by_alignment_standard"
"wins_by_capture_standard"

I use this to increment stats (suffix will be the word "standard" or "random"):

$this->game->bga->playerStats->inc('wins_by_alignment_' . $suffix, 1, $player_id,true);

If I understood correctly the documentation, the true flag at the end is "Increment also table stat"

At the the end of a game I see the correct values set in the players stats (sorry it's in french but it's to show that it's working)

Image

But when I check the stats in the "audience" page. I dont' have anything. It's related to the fact that there is a need of 1000 plays ?

Image

Edit: And while I was writing this, I'm understanding that it will not give me the stat I want...it will give me an average score even in the "table statistics" and not the number of players who triggered the wining condition...