How can I set my friendlist in loadbalancing matchmaking system?
Options
Hi guys , ı have read this
https://doc.photonengine.com/en-us/onpremise/current/applications/loadbalancing/matchmaking-and-lobby#play_with_your_friends
I'm planing set users ıd's their facebook id and then a user when login with facebook I will get friend status with OpFindFriends function.But ı could not understand how can ı set my friend list on server side . what will this function return to me if I am not set anything? all users on master server and game servers?
https://doc.photonengine.com/en-us/onpremise/current/applications/loadbalancing/matchmaking-and-lobby#play_with_your_friends
I'm planing set users ıd's their facebook id and then a user when login with facebook I will get friend status with OpFindFriends function.But ı could not understand how can ı set my friend list on server side . what will this function return to me if I am not set anything? all users on master server and game servers?
0
Best Answer
-
Hi @Penth0s,
In Photon Realtime/LoadBalancing/PUN, you do not "set" friends list on server.
Server does not persist any friends list.
WhatOpFindFriends
does is the following:
- send the server an array of UserIDs.
- the server checks per UserID if it matches a connected client if it's the case the server checks if the player is joined to a room and returns its room name if so.
So it is like asking the server "tell me if these users are connected or joined to rooms".what will this function return to me if I am not set anything? all users on master server and game servers?It should throw an error if null or empty array or do not return anything.5
Answers
-
Hi @Penth0s,
In Photon Realtime/LoadBalancing/PUN, you do not "set" friends list on server.
Server does not persist any friends list.
WhatOpFindFriends
does is the following:
- send the server an array of UserIDs.
- the server checks per UserID if it matches a connected client if it's the case the server checks if the player is joined to a room and returns its room name if so.
So it is like asking the server "tell me if these users are connected or joined to rooms".what will this function return to me if I am not set anything? all users on master server and game servers?It should throw an error if null or empty array or do not return anything.5 -
Thank you ^^0