question

scottadams avatar image
scottadams asked

What is Build Version in Matchmaking API?

In PlayFab matchmaking API Get Current Games it needs the Build Version in the GetCurrentGames request.

I tried putting in Build Id and Build Name for this parameter and it returned no matches even though I currently have servers active and on standby..

I tried setting it to string.empty and it said the parameter is required.

https://docs.microsoft.com/en-us/rest/api/playfab/client/matchmaking/getcurrentgames?view=playfab-rest

I have my build Id and Build Name and I am trying to find the regions the build is active on.

Do I need to use the Admin API instead?

Matchmaking
4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

scottadams avatar image scottadams commented ·

I am trying now to use the PlayFabAdminAPI.GetServerBuildInfo() and it has some issues as well
https://github.com/PlayFab/gsdk/issues/50

0 Likes 0 ·
scottadams avatar image scottadams commented ·

I am trying now to use the PlayFabAdminAPI.GetServerBuildInfo() and it has some issues as well
https://github.com/PlayFab/gsdk/issues/50

0 Likes 0 ·
scottadams avatar image scottadams commented ·

We aren't using the matchmaking system because it doesn't support the concept of AI opponents along with real opponents. So we are doing our own matchmaker, just need a way to determine what regions the game builds are on.

The getmatch I found here doesn't help

https://docs.microsoft.com/en-us/rest/api/playfab/multiplayer/matchmaking/getmatch?view=playfab-rest

I tried using the Admin API get the regions but it says it can't find the buildid give anywhere.

0 Likes 0 ·

1 Answer

·
Seth Du avatar image
Seth Du answered

Please understand that all the multiplayer and matchmaker related APIs in Client API set are the Legacy Multiplayer service, which aren’t compatible with the Multiplayer Server 2.0.

You can differ those APIs with the HTTP URL and Multiplayer Server 2.0 belongs to MultiplayerServer set and Match set, for example in GetMatch, please note the “Match” in https://titleId.playfabapi.com/Match/GetMatch

4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

scottadams avatar image scottadams commented ·

Thanks for answering that is helpful.

The link doesn't work. I was using https://docs.microsoft.com/en-us/rest/api/playfab/client/matchmaking?view=playfab-rest

Where do I find the correct call for finding regions a game is running in?

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ scottadams commented ·

There is no API that can retrieve the region externally. This is because when you request a server externally, the region is already specified.

However, you will be able to get the region information from GSDK, all the information required is stored in a file named "GSDK_CONFIG_FILE" and it will be stored in a variable named :"_gsdkconfig". Since it is private, you can add some codes to expose your required information in PlayFabMultiplayerAgentAPI class.

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Seth Du ♦ commented ·

In addition, you can use PlayFabMultiplayerAgentAPI.GetConfigSettings(), which will return “_gsdkconfig” in a dictionary variable.

0 Likes 0 ·
scottadams avatar image scottadams commented ·

Also see additional info above under the original question about what I am trying to do.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.