question

StormTruppen avatar image
StormTruppen asked

How to do Co-Op with Unreal SDK

Hi,

I am Testing out the Unreal SDK. But, there isn't much Info available on Unreal SDK. What i am trying to do is Join a Player to an Existing Game Session. How to I let PlayFab take care of that, via MatchMaking?

Scenario :

Player 1 starts a Game.
Player 2 Searches for a Game & is Joined on the Player 1's Game.

Any Info is Greatly Appreciated.

Thanks.

Matchmaking
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

·
brendan avatar image
brendan answered

The way to use the matchmaker is that you call Matchmake with the properties for the session you want to match - region, game mode, etc.

Since it sounds like you're talking about joining a friend's game, one way to approach this would be to use GetFriendsList, since the FriendInfo returned contains the CurrentMatchmakerLobbyId that the player is in, if he's in an active game server session. You could then use that Session ID in the Matchmake call to get the info needed to join that server.

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.

StormTruppen avatar image StormTruppen commented ·

@Brendan Can this be done with a Local Game with no Online Game Server what so ever? Also, how to Login Users via Facebook? I can see that there are BP Nodes to get the Facebook Access Tokens & use that to Login. But i was unable to find a Login module. Or, do i have to use a external FB Login & then pass the tokens to contunue with PlayFab?

Thanks :)

0 Likes 0 ·
brendan avatar image brendan StormTruppen commented ·

Yes, for Facebook login, you do have to provide a Facebook authentication token (https://developers.facebook.com/docs/facebook-login/access-tokens). Our blog on authentication systems provides more context on this: https://playfab.com/first-impressions-count-best-practices-friction-free-player-authentication/.

Now, for your co-op experience, can you describe in more detail what it is you have in mind? If the game in question is local-only, what is the option for multiplayer? If, alternately, the session can be joined by others, the external server hosting tutorial should provide you with all the info you need: https://api.playfab.com/docs/external-server-hosting. The key element to note is that nothing that ships to the client should ever have the ability to use the Server API, as that requires the Secret Key for your title.

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.