Best practices on stats modifications

Game development with Board Game Arena Studio
Post Reply
User avatar
Lymon Flowers
Posts: 196
Joined: 01 April 2020, 21:14

Best practices on stats modifications

Post by Lymon Flowers »

Hello everyone,

I would like to add stats to my game, already published. As I do not want to break games because this game is only for the pleasure (it could be useful for the publisher for instance), what would be the best? I was thinking adding the statistic into stats.php, with the initStat() calls in the setup function but with no use afterwards. And then wait for all current games to finish (even turn-based) so that when every game started had correct initStat() it is safe to use the incStat() functions and friends.

Of course, between the moment I declare the stat into the stats.php and the moment I really use it, stats would have a value of 0 for instance.

What do you think?
Post Reply

Return to “Developers”