- Home /
Friend-/Partyinvites with Photon
Hello there,
i am currently implementing a friendslist in my current project. For the Networking part i use Photon. The thing I stumbled upon is the following:
Even though there is a way to find the online/room/lobby status of friends in my "friendslist", i can't find a method for "partyinvites" or "friendinvites". Basic idea would be e.g. click a button and friend xy get's notified that he/she got invited into a party or my friendslist, where xy can press accept or decline. So far i'd have to use third party communication to manually exchange each others status (in party/not in party/friendslist). So i can add people to a friendslist or a party but as a user i have no idea if they have me in theirs as well.
I want to be able to do "invites" while not in a lobby and/or room. So when i am just connected to the photon master server.
I have also stated this question in the photon-forum here, but so far have not recieved an answer there.
Thanks in advance!
Thats a tough one. You'd probably have to watch a tutorial rather than ask here for the answer, because i'm sure only a few here are a networking whiz. In the meanwhile waiting for answer, you should probably experiment with photon to see if you can figure it out on your own.
well that is the problem: i don't consult a forum if i really can't figure it out by myself. There might actually be no solution to this since i can't find anything resembling a friend/party invitesystem/solution in the photon documentation. It also makes kind of sense... Since photon uses the master server to only distribute players to lobbys/rooms, they probably don't bother providing an advanced system for friends/partys on the master server that might be prone to heavy network traffic if people start sending out too many messages to this system.
In case you can provide me with a tutorial covering said problem then i'd be glad to have a link to this. So far this seems to be an uncovered topic...
Answer by Captain_Pineapple · Apr 20, 2018 at 11:47 AM
After quite some searching i have come to 2 possible solutions:
1: For a partyinvite i create a Room at the Party-Leaders client. In this room it is possible to reserve slots for certain players. Each player can search for rooms with reserved slots for themselves. Thus i can handle finding a room with a reserved slot as a "party invite". (I personally don't like this approach and will not further implement/research it)
2: Implement the Photon Chat system and use it to send custom rpc-like commands to other players. (e.g. "\invite ") So far this is the only option i found that enables one to communicate with other players without beeing in the same room/lobby.