Page 1 of 1

number of players limit not working?

Posted: 01 November 2020, 04:22
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.

Re: number of players limit not working?

Posted: 01 November 2020, 04:33
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!

Re: number of players limit not working?

Posted: 01 November 2020, 04:39
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)!

Re: number of players limit not working?

Posted: 01 November 2020, 10:10
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 :)