question

Brian Jordan avatar image
Brian Jordan asked

Possible for a server to retrieve its own tags (GameInfo)?

Is there a way for a Custom Game Server with the PlayFab Server + Client APIs installed and running to look up its current tags? Or otherwise retrieve any data set on it via CloudScript?

Use case is: we set an "invite join code" as a server tag via CloudScript.

I'd like the server to know its code once set.

apissdksCustom Game Servers
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

·
pfnathan avatar image
pfnathan answered

For the moment, this is the only way we "expose" the data via (https://api.playfab.com/documentation/Client/method/GetCurrentGames)

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

Brian Jordan avatar image Brian Jordan commented ·

Ah I see, so maybe I could pull in the LobbyID from the command line, store that, and find it in the GetCurrentGames. Thanks!

0 Likes 0 ·
pfnathan avatar image pfnathan ♦ commented ·

Please try and let us know if it worked out, meanwhile we will look to see if there are other ways to do this...

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.