question

cyn80171229 avatar image
cyn80171229 asked

Match/GetMatch no ServerDetails data

1.CreateMatchmakingTicket

请求

{“Creator”:{“Entity”:{“Id”:“B73227E6DF9453BE”,“Type”:“title_player_account”}},“MembersToMatchWith”:[{“Id”:“13EECD2B991F20DD”,“Type”:“title_player_account” ,“TypeString”:“title_player_account”}],“GiveUpAfterSeconds”:“120”,“QueueName”:“Test”}

GetMatchmakingTicket

响应

{“code”:200,“status”:“OK”,“data”:{“TicketId”:“8b052504-1386-4af4-893d-9c91a273177d”}}

2.其他玩家使用JoinMatchmakingTicket加入票证

3.GetMatchmakingTicket

请求

{“TicketId”:“8b052504-1386-4af4-893d-9c91a273177d”,“QueueName”:“Test”,“EscapeObject”:false}

响应

{“code”:200,“status”:“OK”,“data”:{“TicketId”:“8b052504-1386-4af4-893d-9c91a273177d”,“QueueName”:“Test”,“MatchId”:“d75ae8ec -6939-44c8-8fc7-ac30f363cfc5“,”Created“:”2019-03-25T04:45:30Z“,”Status“:”Matched“,”GiveUpAfterSeconds“:120,”MembersToMatchWith“:[{”Id“: “13EECD2B991F20DD”,“类型”:“title_player_account”,“TypeString”:“title_player_account”}],“成员”:[{“实体”:{“Id”:“13EECD2B991F20DD”,“类型”:“title_player_account”,“TypeString”:“title_player_account”},“属性”:{“DataObject”:{}}},{“实体”:{“Id”:“B73227E6DF9453BE”,“键入“:”title_player_account“,”TypeString“:”title_player_account“},”属性“:{”DataObject“:{}}}],”创建者“:{”Id“:”B73227E6DF9453BE“,”类型“:“title_player_account”,“TypeString”:“title_player_account”}}}

4.GetMatch

请求

{“MatchId”:“d75ae8ec-6939-44c8-8fc7-ac30f363cfc5”,“QueueName”:“Test”,“EscapeObject”:false,“ReturnMemberAttributes”:false}

响应

{“code”:200,“status”:“OK”,“data”:{“MatchId”:“d75ae8ec-6939-44c8-8fc7-ac30f363cfc5”,“Members”:[{“TeamId”:“”,“实体“:{”Id“:”13EECD2B991F20DD“,”类型“:”title_player_account“,”TypeString“:”title_player_account“}},{”TeamId“:”“,”实体“:{”Id“:”B73227E6DF9453BE“ ,“类型”:“title_player_account”,“TypeString”:“title_player_account“}}]}}

没有ServerDetails数据

我的服务器状态已经存在,请问哪一步仍然存在问题?

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.

JayZuo avatar image JayZuo ♦ commented ·

Could you share more details? How did you set up your "Test" queue? Have you enabled server allocation on the queue config page and provided the build id (guid) to associate with the queue?

0 Likes 0 ·
cyn80171229 avatar image cyn80171229 JayZuo ♦ commented ·

Match/CreateMatchmakingTicket create ticket

request

{ "Creator": { "Entity" : { "Id": "B73227E6DF9453BE", "Type": "title_player_account" } }, "MembersToMatchWith": [ { "Id": "13EECD2B991F20DD", "Type": "title_player_account", "TypeString": "title_player_account" } ], "GiveUpAfterSeconds": "120", "QueueName": "Test" }

0 Likes 0 ·
cyn80171229 avatar image cyn80171229 JayZuo ♦ commented ·


I am using the MultiplayerServer/CreateBuildWithCustomContainer API and it was created successfully.

{ "code": 200, "status": "OK", "data": { "CustomGameContainerImage": { "ImageName": "3d_texas", "Tag": "bt.game.cd" }, "ContainerRunCommand": "java -Djava.security.egd=file:/dev/./urandom -jar -server -XX:+UseG1GC /app.jar", "BuildId": "8f7ec229-4b5f-411c-b465-845318e8f396", "BuildName": "3d_texas_1.0", "CreationTime": "2019-03-25T02:59:42.035Z", "Metadata": {}, "VmSize": "Standard_A2_v2", "ContainerFlavor": "CustomLinux", "Ports": [ { "Name": "Netty_Socket", "Num": 1000, "Protocol": "TCP" }, { "Name": "Restful", "Num": 1500, "Protocol": "TCP" } ], "RegionConfigurations": [ { "Region": "JapanEast", "Status": "Initialized", "MaxServers": 1, "StandbyServers": 1, "CurrentServerStats": { "Active": 0, "StandingBy": 0, "Propping": 0, "Total": 0 } } ], "GameAssetReferences": [], "GameCertificateReferences": [], "MultiplayerServerCountPerVm": 2 } }


Also need to set enabled server allocation? I edit Test queue, Build id for multiplayer server = 3d_texas_1.0 prompt error after saving, no other information

0 Likes 0 ·
JayZuo avatar image JayZuo ♦ cyn80171229 commented ·

The build id is a guid return by PlayFab. As in your response, it should be "8f7ec229-XXXX-845318e8f396". You can also find this Id in Game Manager under Builds (版本) tab. It would be listed under "3d_texas_1.0". And if possible, please edit the response Json in your comment to hidden the sensitive information.

0 Likes 0 ·

1 Answer

·
JayZuo avatar image
JayZuo answered

To get ServerDetails from GetMatch call, you will need to Enable server allocation on the queue config page and provide the build id (guid) to associate with the queue. For more info, please see Integrating with PlayFab Multiplayer Servers.

Besides, in your queue config page, you didn't set TEAMS, then you do not need to set MembersToMatchWith and use JoinMatchmakingTicket method. They are designed for multiple user ticket matchmaking (team-oriented matches). Please see Matchmaking quickstart to understand the whole flow of the new matchmaking system.

10 |1200

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

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.