microsoft / xbox-live-samples

This repo contains the samples that demonstrate the API usage patterns for Microsoft Xbox Live Service. These code samples target the Universal Windows Platform (UWP) and Xbox One XDK. To get access to the Xbox Live service, you can join the Xbox Live Creators Program at https://aka.ms/xblcp, or apply to the ID@Xbox program at http://www.xbox.com/en-us/Developers/id
MIT License
144 stars 73 forks source link

Can't join a game with lobby members using Multiplayer\Xbox\ example #59

Closed whiteeat closed 6 years ago

whiteeat commented 6 years ago

We are using XDKS.1 Sandbox and using developer accounts with gold membership. Then, one account start the example then invite a friend, and the friend can receive the invite and correctly join the same lobby session. It's correctly displayed that two users are in the same lobby session. However, when the lobby host press button A to join the game, it only shows the host joins the game on the UI on host console, and nothing happens on another console. So do you guys have any ideas what is happening? Thanks!

adityatMS commented 6 years ago

That is by design. Each client that wants to join the game, needs to call join_game_from_lobby. In terms of the sample, each client will need to select 'A' to join the game. However, if a game is already in progress, then any new friend that joins the lobby will auto join into the game, if a game session exists and if there is room.