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 martinliu1993 · Nov 14, 2017 at 07:52 PM · apisMatchmakingCustom Game Servers

What API calls are needed in PlayFab hosted server vs self hosted server?

From what I understand, these are the calls required for a self hosted server on client and server side:

-Register Server

-Deregister Server

-RefreshHeartbeat

-Matchmake (Client)

-RedeemMatchMakerTicket

-NotifyMatchmakerPlayerLeft

It seems that if I were to have PlayFab host the server, I don't need to call Register/DeregisterGameServer, and also I don't need to send heartbeats.

But server still has to call RedeemMatchMakingTicket. Since the server doesn't call RegisterGame, there is no LobbyId. Where would I get the LobbyID I need to redeem the ticket?

Comment
newgay

People who like this

1 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 martinliu1993 · Nov 14, 2017 at 09:00 PM

On a 2nd look, it seems that the client needs to pass both the ticket and the lobbyId from the client to the server when redeeming match making ticket. the client receives both from the result of the MatchMake call

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 Brendan ♦♦ · Nov 15, 2017 at 12:07 AM 0
Share

The client must pass up their ticket, but the LobbyId is actually part of the command line info sent to the server when it is started (have a look at the "game_id" parameter - https://api.playfab.com/docs/tutorials/landing-tournaments/custom-game-servers).

avatar image martinliu1993 Brendan ♦♦ · Nov 15, 2017 at 12:39 AM 0
Share

Suppose I were using a self hosted server, then do I just pass up the lobbyId to the client that I got on the server from the result of "RegisterGame"?

avatar image Brendan ♦♦ martinliu1993 · Nov 15, 2017 at 02:09 AM 0
Share

Oh! Sorry, yes - I was obviously thinking of servers hosted with us. For externally hosted servers, you do get the LobbyId back from the call to RegisterGame. So that would indeed be the one to use.

Show more comments

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

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

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

    Server API get servers 1 Answer

    [SERVER or Cloud Script] Retrieving Server CustomData or Tags without Client.GetCurrentGames 1 Answer

    UE4 PlayFab pipeline interactions 1 Answer

    Direct Challenges,Direct Challenges (via FB) 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