stats.json issues: display=limited and max stats

Game development with Board Game Arena Studio
Post Reply
User avatar
Kayvon
Posts: 1059
Joined: 17 October 2011, 01:39

stats.json issues: display=limited and max stats

Post by Kayvon »

The wiki says to add "display":"limited" to prevent it from being displayed to players on the final screen. In my testing, this seems to work great in Studio, but is ignored for deployed games. Is this a known bug? Am I doing something wrong?

While testing, I also noticed a limited to the number of statistics, around 324 total player+board stats before the game broke with at Table not Found (or similar) error in Studio. I've added a note to the wiki, but I can't otherwise find why this limit exists or where it's documented.
User avatar
CitadelUK
Posts: 7
Joined: 05 April 2018, 22:11

Re: stats.json issues: display=limited and max stats

Post by CitadelUK »

I think the limited stats will show for the user who developed the game. They should not show for other users. Can you send a friend a link to an ended game where you can see them and they should not be able to see them? Feel free to post a link here and the name of the stat that I shouldn't be able to see and I can let you know what I see (if I remember to check back).

In the notes of the stats page it says:
The maximum number of statistics appears to be 324. This can be any combination of table and player statistics. This is true even if you don't use the "Reload statitics configuration" after saving stats.json.
https://en.doc.boardgamearena.com/Game_ ... stats.json

I wouldn't be surprised to learn that the limit was a decision made 15 years ago that no one remembers why. Maybe it seemed like a reasonable limit when more complex games weren't being implemented. I know other devs have talked about using things like bitmasks to store multiple variables in a single stat. (code: https://discord.com/channels/7533047356 ... 4947214388 )
User avatar
Kayvon
Posts: 1059
Joined: 17 October 2011, 01:39

Re: stats.json issues: display=limited and max stats

Post by Kayvon »

Great find on the hidden stats! I had another, non-premium user try it and only the visible stats appeared (albeit blurred due to lack of premium). That's a relief. They probably didn't show in Studio because my login there, kayvon0, is different than here.
CitadelUK wrote: 15 February 2025, 19:07 In the notes of the stats page it says:
The maximum number of statistics appears to be 324. This can be any combination of table and player statistics. This is true even if you don't use the "Reload statitics configuration" after saving stats.json.
https://en.doc.boardgamearena.com/Game_ ... stats.json
Well, sure. But it only says that because...
Kayvon wrote: 14 February 2025, 18:04I've added a note to the wiki, but I can't otherwise find why this limit exists or where it's documented.
It sounds like you're in the same boat I am... no real indication of what the limit is or why, other than what I've just said/added.
User avatar
CitadelUK
Posts: 7
Joined: 05 April 2018, 22:11

Re: stats.json issues: display=limited and max stats

Post by CitadelUK »

I had Aurum's designer check that they couldn't see hidden stats as it wasn't clear to me.

Sorry, I'd wondered if you had added that note. I should have reread your original post.

I added a link to code on the Dev Discord to my original reply that is used in Agricola to store multiple variables in a single stat using bitmasking.
Post Reply

Return to “Developers”