playgameservices / cpp-android-basic-samples

Sample games using the Google Play Games C++ SDK
302 stars 133 forks source link

WaitingRoomUIResponse with too few participants. #51

Open stolk opened 7 years ago

stolk commented 7 years ago

I have observed that occasionally, my WaitingRoomUIResponse comes back as Succes, yet when checking the room participants, there is only 1 participant. Whereas I specified the minimum number of participants to be 2.

I show the room as follows (numplayers is 2):

            StateManager::game_services_->RealTimeMultiplayer().ShowWaitingRoomUI
            (
                    StateManager::room_,
                    numplayers,
                    showcallback
            );

Most of the times it works, but yet, sometimes I see just one participant.

I also have a 2vs2 version of my online matches, where I supply a minimum of players of 4.

Is it to be expected to have the show waiting room callback return success, yet not have enough players?

stolk commented 7 years ago

Oh, and when this happens, the room's status is still 'auto_matching' by the way.

stolk commented 7 years ago

In 4 player games, I've also seen successful ShowWaitingRoomUI results, with just 3 participants. The room is then in status 'inviting.' Minimum players passed to ShowWaitingRoomUI was 4 in this case.

SanyamPunia commented 6 years ago

Make it happen with "numplayers = 5" for the each turn u play. or else try a permanent fix by using bool