question

kevin-7 avatar image
kevin-7 asked

How to send extra information to the server and players when starting the server?

We are doing an Unreal dedicated server and we would need to send extra information to the server when it starts and the players when they are matched together.

For context, we need this because we need to add a keyword to our steam session to allow the players to find it. Instead of doing direct connection using the IP address of the server (the one we get from playfab after the players are matched together), our players most find the correct steam session started by the server and join it.

We know that we can send extra data threw the start command (using something like -SessionId=SomeUniqueID), but how could we generate that ID and also make sure that the server and all the players receives it?

dataMatchmaking
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

·
Neils Shi avatar image
Neils Shi answered

If your server is allocated by the Matchmaking system, then the SessionId will be equal to the MatchId for the match, so players can get SessionId via API GetMatchmakingTicket after the Matchmaking finishes successfully. If you active the server instance with API RequestMultiplayerServer, The SessionId is a guid string set by the requester, the requester can share it with other players using Azure PlayFab Party overview - PlayFab | Microsoft Learn or Azure PlayFab Lobby overview - 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.