number of players limit not working?

Game development with Board Game Arena Studio
Post Reply
User avatar
Idsky
Posts: 132
Joined: 16 April 2020, 16:49

number of players limit not working?

Post by Idsky »

On Studio, on a new project (factum) I set

Code: Select all

'players' => array( 4, 5, 6 ),
But when I create a game, it only has 2 player slots (it should not allow that few),
and when I try to add a player I get the error: "Can't start game with less players"

If I set

Code: Select all

'players' => array( 4 ),
Then I still only get 2 slots but no + or - buttons on the player slots.

Reloading gameinfos.inc.php in control panel appears to work fine.

The lobby correctly shows 4 slots before I hit the 'Create' button.
User avatar
Idsky
Posts: 132
Joined: 16 April 2020, 16:49

Re: number of players limit not working?

Post by Idsky »

Oh I see the problem bug (with studio code and my previous behaviour, not my game settings).

I started a game with 2 players before I increased the minimum player limit to 4.
Now, it defaults to 2 players if I start another game, even though that is less than the minimum allowed number!
And it won't let me increase the value since 3 is still too few players!
User avatar
Idsky
Posts: 132
Joined: 16 April 2020, 16:49

Re: number of players limit not working?

Post by Idsky »

I tricked it into working by gradually increasing the minimum player number first to 3 (+ button then successfully added a 3rd player to reach new minimum) and then 4 (+ button then worked once more to reach new correct minimum)!
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: number of players limit not working?

Post by Een »

Yes, developers can block themselves with saved preferences if they change the game player number.
But they can also unblock themselves by changing player number again, launching a game with a larger number, and then getting back to the numbers they want.
Anyway, good that you found a solution :)
Post Reply

Return to “Developers”