question

metaverse avatar image
metaverse asked

Shutdown Multiplayer Server issue!

I used the "Shutdown Multiplayer Server" API call from inside unreal engine using both the playfab SDK node and the HTTP request node with correct parameters. The result is: { "code": 200, "status": "OK", "data": {} }. But even then the server instance is not shutting down. We noticed with few tests that it closed when there was still players on the server but when the number of players was 0 it didn't close. Can you check if there is an issue from your side? or is it something that we are missing on our side?

Custom Game Serversmultiplayerdocumentation
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

·
Xiao Zha avatar image
Xiao Zha answered

The ShutdownMultiplayerServer API should only be called outside the server and should only be called when the game server process cannot terminate by itself. And calling that API calls the OnShutdown method of the GSDK, which your application needs to handle. In addition, the normal game server lifecycle should be “Initializing->StandingBy->Active->Terminating”, to terminate the server instance inside the server, you may call the UE Application shutdown method. For more information about game server lifecycle, you may refer to Lifecycle of a multiplayer server - PlayFab | Microsoft Learn.

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.