Adding game options after release

Game development with Board Game Arena Studio
Post Reply
User avatar
chriskang
Posts: 7
Joined: 10 March 2021, 02:20

Adding game options after release

Post by chriskang »

The wiki says that adding options after release may break current games and I'm trying to understand why.
Is it just because the call to getGameStateValue may fail ? In this case couldn't I just encapsulate it in a "try" block and have a default behavior for old games in the "catch" ?
Or is there something trickier in the database or in the server state that might break ?
User avatar
paramesis
Posts: 398
Joined: 28 April 2020, 05:00

Re: Adding game options after release

Post by paramesis »

getGameStateValue wouldn't throw an exception, it would just return 0. Note that this value would not actually exist in the "global" table.

Introducing options can present a problem if your code is expecting a value from this function that isn't 0, or you've made other changes that would be incompatible.
vincentt
Posts: 254
Joined: 01 September 2017, 17:25

Re: Adding game options after release

Post by vincentt »

Also, check with admins if there is an Arena season on it, some changes in setup may be needed.

Vincent
Post Reply

Return to “Developers”