Page 1 of 1

Best practices on stats modifications

Posted: 17 June 2020, 21:11
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?