Can gameinfos variables be changed according to options?

Game development with Board Game Arena Studio
Post Reply
User avatar
AmadanNaBriona
Posts: 48
Joined: 17 March 2018, 18:52

Can gameinfos variables be changed according to options?

Post by AmadanNaBriona »

For Trick of the Rails, there is a Teams variant in which four players play as partners.

By default, the players on the winning team are both ranked 1, while the losers are both ranked 3rd.

I could use 'losers_not_ranked' => true in gameinfos.inc.php, but that would apply to all games. Is there a way to set a value in gameinfos.inc.php according to which game option (from gameoptions.inc.php) is set?
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Can gameinfos variables be changed according to options?

Post by Een »

The same kind of point was discussed for a game that is competitive, but has an option to make it cooperative.

There is actually two subjects about this:
1) displaying the game result in the proper way (with a rank for each player if the game is ranked, with just winner/loser if the game is not ranked or cooperative)
2) how to take different ranking modes into account in the global ranking for this game (ranking apples and oranges) as there is only one ranking and not one per option.

For 1) we don't have it at the moment, but if you add 'losers_not_ranked' => true on your option ("is_coop" => true for someone having the same problematic with a coop option), we can display the game result correctly when we find the time to take this into account in the framework.

For 2), the best is to have the most rarely used option available in training mode only, so that the games played with this option are not taken into account in the global ranking.
Post Reply

Return to “Developers”