Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by novelstudiosllc · Jun 06 at 01:14 AM · apisunity3dMatchmaking

Problems trying to sync playfab lobby changes/updates with lobby members

I am have troubling figuring out a proper way (that works) to sync any lobby changes that occur, for example new members being added/removed etc.

I have a multiplayer game working in Unity, and I am trying to use the PlayFab Lobby system as a staging ground for players before having everyone connect to a server and load into a game. I have had no problem using the PlayFab Unity SDK lobby functions here. I am able to create/Find/Join/etc.. any lobbies. The problem I have is that if a client is waiting in a lobby and I have another client join the lobby, I would like some kind of event to trigger letting the existing clients in the lobby know that a new client joined.

I did stumble onto the PlayFab Multiplayer SDK, but I have been unable to get this to work. The OnLobbyMemberAdded events never trigger (yes I did add the MultiplayerEvent prefab to the scene). I thought maybe that maybe using the PlayFab SDK JoinLobby method instead of the PlayFab Multiplayer SDK JoinLobby might be an issue, but I was also unable to get the PlayFabMultiplayer SDK JoinLobby method from working.

Using the PlayFabMultiplayer SDK joinLobby, I get the follow disconnect/error saying:

The client is no longer connected to the lobby because none of the client's local entities are members.

I don't know what a "local" PlayFab entity is here, but this might be related as the OnLobbyMemberAdded description says "local PlayFab entity was added to lobby as a member". Can someone help explain these issues with the PlayFabMultiplayer SDK? What is "local" here. I am simply creating lobbies and trying to join these lobbies?

Comment

People who like this

0 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Xiao Zha · Jun 06 at 10:38 AM 0
Share

In my test, it works fine. Can you provide your code for further research.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Matchmaking Cancellation Reason: Internal? 1 Answer

    Region Ping measured RTT inaccurate/high using Unity HTTP, recommendations or ICMP ping protocol support? 1 Answer

    Getting a MatchID in Server 2 Answers

    API SetMatchmakingQueue doesn't work 2 Answers

    What happens when a client calls ClientAPI.Matchmake then does not connect to a returned server? 2 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges