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 /
  • PlayStream /
avatar image
Question by Ivan Kozka · Dec 30, 2021 at 02:15 AM · Matchmakingmultiplayer

Starting play to the game

Hello!

At this stage I want to do create pvp. What I need for this solution?

I have two players where each create new matchmaking, and when I request status from GetMatchmakingTicketRequest, I get status is a WaitingForMach.

My question what I need to do that the game/match is start and status changed to Matched and I get Match Id, I need lobby or playfab server?

Thank you in advance.

Comment

People who like this

0 Show 0
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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Made Wang · Dec 30, 2021 at 08:51 AM

If you just need to match the players, you don't need a playfab multiplayer server.

You need to call GetMatchmakingTicket repeatedly after creating a matching ticket. You can call it up to 10 times per minute, and you need to perform this step manually. When the returned status is Matched, you can get the MatchId in the result, and then call GetMatch with the MatchId.

Refer to Matchmaking quickstart - PlayFab | Microsoft Docs for more information.

Comment

People who like this

0 Show 7 · Share
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 Ivan Kozka · Dec 30, 2021 at 03:35 PM 0
Share

When I call GetMatchMakingTicket I get status WatingForMatch and after 120 second I get Status is Canceled. Where is happening matched between players at Lobby yes? otherwise, how will the players know that they have matched the parameters?

avatar image Made Wang Ivan Kozka · Dec 31, 2021 at 09:42 AM 0
Share

The time to cancel the match can be defined by setting the value of GiveUpAfterSeconds in the Request of the CreateMatchmakingTicket. As for the logic of matchmaking is handled by the matchmaking service, PlayFab developers and players can only obtain and manage the matchmaking status through the API.

And currently we do not have the function of lobby. If you need a custom lobby, you need to refer to this blog- Building Lobbies with Azure PlayFab to implement it yourself.

In addition, I read your thread, did you put two players in the same team?

If as a team, when the main player creates a matchmaking ticket, the remaining players need to call JoinMatchmakingTicket to join this ticket, and you need to create another team to create a matchmaking ticket so that you can start matching.

If it is 1V1, two players need to create their own tickets, and the PlayFab will match them, and then they need to call GetMatchmakingTicket repeatedly until the return status is Matched or Canceled.

avatar image Ivan Kozka Made Wang · Dec 31, 2021 at 11:04 AM 0
Share

No, I'm currently using 1 vs 1, I just watched a video of how the author created matchmaking through Unity, and everything is of course very simple and fast, but I use regular requests via HttpClient Console App and it seems to me there is some kind of restriction on this because it's not right here. It can't be that I'm creating a match waiting until the end and nothing is happening somehow it's all strange, isn't it?

Show more comments
avatar image Made Wang Ivan Kozka · Jan 04 at 10:53 AM 0
Share

Can you also share your matchmaking queue and the player data passed in when you created the ticket?

avatar image Ivan Kozka Made Wang · Jan 06 at 10:45 AM 0
Share

Thank you I solved my problem. I used two different TitleId, and accordingly I couldn't Matched players. And every time received status of WaitingForMatch

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

    9 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

    Related Questions

    Global Variables 1 Answer

    Access to "playfab.matchmaking.match_found" event 1 Answer

    Event is in (Data Explorer), but not in (Event History) 1 Answer

    EastUS region usage peak core usage 1 Answer

    Retrieve matchmaking parameters for attributes 1 Answer

    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