question

Jamie Seward avatar image
Jamie Seward asked

Confusion over required GameMode in StartGame when it appears GameModes are no longer supported when adding a New Build?

StartGame (https://titleId.playfabapi.com/Matchmaker/StartGame) currently requires a GameMode but I'm confused over where this comes from.

When adding a new build in PlayFab (multiplayer/server/builds/new) there is nowhere that I can see to specify supported GameModes. I do see a tab in Legacy but it says "cannot create game modes: no builds". The legacy built tab says: "No builds found". But the Servers tab definitely has the build added in the list.

I will start looking into using the admin REST api https://titleId.playfabapi.com/Admin/ModifyMatchmakerGameModes but I feel I'm on the wrong path here.

Thanks

game managerMatchmaking
10 |1200

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

1 Answer

·
Ivan Cai avatar image
Ivan Cai answered

There is no GameMode in the Server 2.0.The GameMode is used in the legacy one.In the new version, you use wrong API(legacy). You can refer to https://docs.microsoft.com/zh-cn/rest/api/playfab/multiplayer/multiplayerserver?view=playfab-rest to use new API for your needs. In your case, the StartGame API should be replaced to MultiplayerServer/RequestMultiplayerServer.

3 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.

Jamie Seward avatar image Jamie Seward commented ·

Thanks Ivan, that cleared things up.

0 Likes 0 ·
dylan-1 avatar image dylan-1 commented ·

Wait, if this was deprecated since early 2021, that means it's been nearly 2 years and there's no notification of deprecation on your docs...? I just implemented an entire deprecate module, ugh. Why would you do this to your users and not spend just a few heartbeats to show deprecated + toss a link to the new one?

0 Likes 0 ·
drallcom3 avatar image drallcom3 dylan-1 commented ·

Legacy is clearly labled Legacy and the first thing you see when you click on it is a warning. You complain about documentation, but you don't even read it.

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.