NokiMo
Pretty Fly Games
Pretty Fly Games

patreon


Code Access: Online multiplayer 🔫 FPS Unity & Photon Fusion EP7 (Lobby Session Browser)

The 7th episode is now available on YouTube

In this episode we'll go through how to implement the lobby system in Photon Fusion. This allows you to create a server browser where you can see the name of the game sessions and how many players are connected. You can easily extend this with additional information that you'd like to display like which map is loaded etc.

Download the the source code for the Unity project below 👇

Code Access: Online multiplayer 🔫 FPS Unity & Photon Fusion EP7 (Lobby Session Browser)

Comments

After 3 days, I finally found the reason. In fact, the callbacks are only registered if the interfaces are a component of the runner or a child of the runner. I had separated them. I must admit that the new Fusion SDK is slightly different from the one where you did the tutorial. However, yours is definitely the best tutorial I have found. As Breaking Studio, we are benefiting from it, and I thank you so much.

Lothar Breaking Studio

Hi! The callback OnSessionListUpdated comes from the Lobby, so you'll need to join a lobby to get it update. Are you calling networkRunner.JoinSessionLobby( somewhere in your code? Fusion 2.0 does things a bit differently but the concept is still the same.

Fredrik Kellermann

I've been stuck on a problem for a while. I'm trying to create a session and publish a list of available sessions. Unfortunately, it's not working because the OnSessionListUpdated callback is never called. I create the session like this: await SessionRunner.StartGame(new StartGameArgs() { GameMode = GameMode.Host , Address = NetAddress.Any() , Scene = SceneRef.FromIndex(SceneManager.GetActiveScene().buildIndex) , SessionName = sessionName , CustomLobbyName = "OurLobbyTest" , SceneManager = GetComponent() }); The other callbacks are being called, such as OnPlayerJoined Where am I going wrong? It seems that the new version of Fusion 2 SDK has changed the way sessions are used... Does it make sense to you?

Lothar Breaking Studio


Related Creators