#my server never shuts down
32 messages · Page 1 of 1 (latest)
you need to explicitly kill your game server process yourself, so we can bring up a new game server
usually this happens when the last player has disconnected from the game
@outer marsh how do i do that?
just quit the application. Thats it
what do you mean
Something like this.
Your using this?
https://learn.microsoft.com/en-us/rest/api/playfab/multiplayer/multiplayer-server/shutdown-multiplayer-server?view=playfab-rest
It says 15 min grace period in docs in which it will try to shutdown but if it not happens, it should force it to shutdown.
I also recommend you to use LMA while testing stuff as it saves time and also easy to debug. Use Playfab servers when you are done with testing on your side.
FWIW, this API should be used for emergencies only (e.g. when your game server is stuck)
@outer marsh i don't see any other documentation on how to close a server
as @languid shore mentioned, you should quit your process. There is no documentation on it because it's dependent on your game engine.
@outer marsh i think i explained it bad, i want it to go from activ to standing by but it never does
and yeah i have no idea why it says active 15 min ago but is still actic
If you have told it to shutdown when game ends but its not shutting down, then it means something is wrong with your code.
The server does not go to active to standby. You have to quit the app, a new standby server will appear if your standby target requirments are not being met.
@languid shore do you know if they have example project for unreal?
The samples they have on the website are for C#
https://learn.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/server-samples-resources
You could try to understand them if you know C#. Should be a bit more easy to understand compared to c++ in my mind.
no worries - so the servers never go to standingBy when they are active. Active servers can terminate themselves and then we will create a fresh/new standingBy server.
At the same time, we consider the server to terminate when the root process (the one in the StartGameCommand or the one in the Dockerfile) has exited. What is the command you are starting your game server? If the command starts the Unreal game server, then you should be OK.
quit game function not working for me
because I can join to server
On my Game Mode (On Logout):
I will try this
This is working. Is that true way? So, I shouldn't can use Shutdown Multiplayer Server function?
The Shutdown Multiplayer Serve API you are using is for forced quit which can take time. Have shared the screenshot of its information. Its not for normal flow. Its in case the app is frozen or something and you need to force the app to close. The blueprint will tell playfab to kill the server with the id given.
The quit method you have used is fine.
The blueprint/API you are using is for something like a internal team admin app/automation process some people make to make stuff more automated.
Also the server telling playfab to shut itself down kinda does not make sense.