It's Noa's brother speaking, who is interested in coding part of game dev. Really looking forward to watch intermediate or advanced level of Coding tutorials man✌️
That was the best and most straightforward tutorial about the topic, I have ever seen. And just when I needed it. You made it so easy to understand. Great work! A million thanks and keep it up!
After countless hours of searching I have finally found the perfect tutorial that actually explains everything and is very simplistic and straightforward. Thank you for making this video. One small issue I had was the cropped screen at some times, and the prefab object probably wouldn't be that clear to beginners initially. Aside from that this is one of the most helpful photon tutorials out there.
As feedback, please don't have screen cropped when you drag GameObjects into their place in the script, as a beginner it gets confusing to follow where you got them from even with their name displayed.
@@AnimalLovers92927 If you are just a beginner in Networking and not Unity, you must have developed basic sense of what game objects are being linked between UI and scripts
Well you helped me at the right moment! I started to experiment with Photon yesterday after seeing you old tutorial. This updated video goes even further👍
omg im so looking forward to this tutorial and future tutorials about multiplayer because i was just searching on how to make a multiplayer game tysm for making this
Note that this is a great tutorial but slightly a bit outdated as Pun has changed since and your lobby may show rooms that have no players or are ended. I fixed it by doing a check before creating the "roomItemPrefab". Check if "room.IsOpen" and "room.playercount > 0". The room is open shows if it can be joined (still active) and playercount greater than 0 prevents room that end still appearing with 0 players (non-existent). This for me works and now the lobby only shows active, alive rooms that the player can join. Hope it helps anyone
Thanksss a lotttt Sir, I was working on a 3d multiplayer game from past many days but was unable to implement photon, i followed this tutorial, watched it many times and today just a moment ago i did it. The level of satisfaction i am having right now i just can't explain, no more words to say. Thanksss a lotttt sirrrr❤❤
I was having an issue where if a room is being created and then after leaving it, it would still show up in the rooms list. Ran a Debug statement and noticed the error was because for some reason Photon was returning that room even after all players have left the room. But if I disconnect and reconnect back to the Lobby, it doesn't return the empty room anymore. If anyone is having this issue, then inside the foreach statement where we instantiate a new room item, add this code before the Instantiate statement: if (room.RemovedFromList) { return; } This will make sure that if there are any empty rooms, it will not be shown in the rooms list.
if anyone is having trouble at 18:30 where he dragged the text to the room name in the inspector. Just open the prefab, then in the button game object, there will be a text there. Use that to drag and drop the text object to the script
Great tutorial ! I do have one issue, if player 1 create room and left it, the room will be deleted and wont show on his list but player 2 will still see the room in the list and won't update. Of course if player 2 will try to join the empty room he won't succed and just stay in the lobby panel. for some reason the OnRoomListUpdate is not updating the list when the list is updated.
If anyone is getting the "Operation JoinLobby (229) not called because client is not connected or not ready yet, client state: JoiningLobby" error, just comment out the "public overrride void OnConnectedToMaster()...." code block. Apparently this method causes the JoinLobby() to be called once correctly and then again during client lobby connection process, which causes it to fail. It seems that in newer versions of Photon, doing the UpdateList stuff is enough. [Working as of 9 July 2022]
thanks for this! made making our lobby a breeze! As I've only had the briefest experience with Photon, this really made the concepts quick and easy to understand.
Okay im making this comment cause I spent a couple days figuring it out. If you couldn’t drag the room name text into the room item prefab make the room name a prefab and make sure your script for room item is attached to the room item with a normal text field. I was using a raw image for where my script was attached and underneath I had the text. I did this to give a background image but it didn’t work. Try changing the location of your script on the prefab and see if that solves the problem for anyone having this issue
If you double click on your prefab, then within the hierarchy of the prefab itself there should already be a text field. Click on RoomItem in the hierarchy(NOT the prefab in resources, then drag the child text(directly below RoomItem in hierarchy) into the script slot.
i love your videos man. your helping me a lot but this one just seemed rushed. i hope you take this constructively... i ALWAYS prefer a quicker video with good explanations like yours but this video was just meant to be a bit longer with more in depth details. with that being said i figured out the things i needed to. much love!! love your game designs as well. what do you use? i use procreate for all visual assets ive created. also, second video link or title?
Here is a working fix for rooms duplicating just add this to the for loop where we instantiate a new room item. Basically what I have done here is I delete the room's GameObject. Soon enough I noticed that if u were to create a room with the same name, it wouldn't be created because it is still in the list. Since we only delete the gameobject, we never got rid of it from the list, so you simply just have to remove it from the list aswell : if (room.PlayerCount == 0) { PhotonNetwork.Destroy(newRoom.gameObject); roomItemsList.Remove(newRoom); } If you have any question about it just reply to this comment and I'll try my best to answer.
I have a question.What if one player created a room when another player hasn't login yet,so when the other player logs in and gets in the lobby,he can't see the created room,because you're only showing the room list after onRoomListUpdate() function.
This is such a great tutorial - I wonder how this would be integrated with a location based game - how to place Players in a room but have their locations?
best tutorial out there however i found a liitle bug. If the other client creates and leaves the room the room is still shown at the other client. If the client waiting in the lobby tries to join the lobby nothing happens. I couldn`t figure out how to call the roomupdate method constantly so that clients waiting in the lobby have an real picture of avaible rooms. Would be pretty neat if someone could share a solution.
for anyone who cant drag their input fields into the script reference, you are using TMP, in your script define the variable as public TMP_InputField usernameInput; and the same for your text EDIT: IMPORTANT: make sure you say at the top using TMPPro; or this wont work!
Great tutorial, I was having an issue on second 18:34, Unity does not let me attach roomName text to my roomItem prefab, I was wondering why but not received satisfactory answer on internet, can anyone tell me what are the correct steps to do in that case?
OMG it's crazy ! I am creating a new project live just to try it on my own with the documentation. You're a wizard !!! But I'm sad that a part of your Udemy class is free here ...
He has a bunch of detailed tutorials on creating 2D game art for beginners, but it's best to find your own art style. If you do prefer to take inspiration from his art style, I've listed a bunch of his tutorials here: Pixel Art Playlist: ua-cam.com/play/PLBIb_auVtBwDCYz94DLRsXQ5nuqL7DiAh.html 2D Game Character: ua-cam.com/video/9oiz1pectr8/v-deo.html 2D Game Animations: ua-cam.com/video/2o5HerzDohU/v-deo.html Complex 2D Animations, Easily: ua-cam.com/video/5KroAMRdZpM/v-deo.html Step-by-Step Painting in Photoshop: ua-cam.com/video/1kc2HGj8ef0/v-deo.html 2D Game Art Playlist: ua-cam.com/play/PLBIb_auVtBwBzY820L_LFnlK8v_V3Avxc.html
I really don't understand how you can add the RoomName (Text) to the RoomItem Prefab in min 18:32... For me it don't allow to add the text on the Prefab, only if the buttom is created in the Scene...
I can't get the name of the rooms to appear in the list. The buttons are being added to the list but it does not put the names of the rooms on the buttons in the list. In the RoomItem it is not clear to me in the Room Name field that I have to drag. The Room Name of the PanelRoom?
This is a good tutorial but I have a problem where the game only shows me the room in the project and not when I build the game and then comes up with a very long error
Since no one has answered this anywhere, I will answer it here. Sorry if I am late to the party. So the prefab is a button, so if you open the prefab, you can go to the text component in the button dropdown and then you drag and drop its own text component into the script. The text component isn't from any other object, it is coming from itself.
This was a great tutorial, I really appreciate it! I did have an issue, though. Let's say I run a build instance of the game and then an in-editor instance of the game. Then, in the build instance, I go ahead and create a room. After doing this, I connect to the Lobby with the in-editor instance. HOWEVER, in the editor instance, the room doesn't show up in the list. This does not happen if both instances are in the lobby at the same time. Only if the one instance is in a room, and afterwards another instance goes to lobby. Does anyone know a solve? I tried to create a button that would refresh the list by calling OnRoomListUpdate again, but it doesn't seem to find any new rooms.
I have a problem, I followed what you did step by step and it worked perfectly for me until the next day when I asked a friend to try if my room appeared. I created the room and everything was fine, but it told me that nothing appeared, I tried how you do it by compiling and from Unity and the rooms were no longer updated, it did not move anything at all. The room is created fine and everything works perfectly but it no longer shows me the list of rooms when a day before if the rooms appeared. Do you know what could be due?
hello im following this tutorial but im having a problem bc you crop the screen its hard for me to see and i got lost so when i try to multiplay theres a defult server there and then when i make a server then the default servers name changes to the name i named the server too but the problem is that i dont want that default server to be there unless i make a server
I do everything as I see on the video, but doesnt work. At the beginning all scenes are visible, then I connect to server, got connection, in the lobby scene I cannot write a room name. No errors on a console.
CreateRoom failed. Client is on MasterServer (must be Master Server for matchmaking)but not ready for operations (State: PeerCreated). Wait for callback: OnJoinedLobby or OnConnectedToMaster. UnityEngine.Debug:LogError (object) Photon.Pun.PhotonNetwork:CreateRoom (string,Photon.Realtime.RoomOptions,Photon.Realtime.TypedLobby,string[]) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:1782) LobbyManager:OnClickCreate () (at Assets/Scripts/LobbyManager.cs:24) UnityEngine.EventSystems.EventSystem:Update () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:517)
Did someone have a problem where a friend stays in your room, you leave the room and then he leaves the room, but the room stays visible in the room list for you but not for him.
Ok, so it wasn't working bc his tutorial is using normal text, while i'm guessing you would be using text mesh pro, bc of the recent update making it the only text option that shows up in the create > ui menu. So, i found that you have to reference the namespace "using TMPro;" at the top o the script. Also, you have to replace the variables set at 4:11 from "InputField" and "Text" to "TMP_InputField" and "TextMeshProUGUI". Hope this helps :)
Hey hey, i Tryed your tutorial and i really like it! Greate Work! BUT: When i leave a room the "new roomname" and also the "create room" button are disabled or maybe the programm itself freezes. could anyone help here?
Hi I am new at Unity, so I have a question regarding this Photon server. Should I hos this server, so other can play with me, or how it works? Thank you
Hey Thanks for this tutorial! :-) I was just wondering .... What if I " PhotonNetwork.CurrentRoom.IsOpen = false;" ? Room will be still visible even if closed! How can I "Leave a Room" and make the list update? Player A creates a Room and Player B sees it in the Room List. Player A then push an "Exit" Button ... How to close that room and refresh Player B list with "No rooms" ? Thanks
It's Noa's brother speaking, who is interested in coding part of game dev. Really looking forward to watch intermediate or advanced level of Coding tutorials man✌️
Wdym "I think" is that a typo?
I really want code work content 🙂
That was the best and most straightforward tutorial about the topic, I have ever seen. And just when I needed it. You made it so easy to understand. Great work! A million thanks and keep it up!
Thanks so much !
Agree :D
After countless hours of searching I have finally found the perfect tutorial that actually explains everything and is very simplistic and straightforward. Thank you for making this video. One small issue I had was the cropped screen at some times, and the prefab object probably wouldn't be that clear to beginners initially. Aside from that this is one of the most helpful photon tutorials out there.
Could you help me with the prefab items? I'm a total beginner and it doesn't work, I'll give you my discord if I can
As feedback, please don't have screen cropped when you drag GameObjects into their place in the script, as a beginner it gets confusing to follow where you got them from even with their name displayed.
True, but if you're a beginner, why are you trying to do online networking?
@@2gr8te4u5 im beginer, but not beginer in unity, just beginer in online networking, thats what he means
@@2gr8te4u5 cuz why not
@@AnimalLovers92927 If you are just a beginner in Networking and not Unity, you must have developed basic sense of what game objects are being linked between UI and scripts
@@dh5888 yes i did, now my multiplayer game has been finished, and already on playstore
You literally released this as I finished the other one. You guys are the greatest.
Finally something warm this cold morning.
Well you helped me at the right moment! I started to experiment with Photon yesterday after seeing you old tutorial. This updated video goes even further👍
omg im so looking forward to this tutorial and future tutorials about multiplayer because i was just searching on how to make a multiplayer game tysm for making this
Note that this is a great tutorial but slightly a bit outdated as Pun has changed since and your lobby may show rooms that have no players or are ended. I fixed it by doing a check before creating the "roomItemPrefab". Check if "room.IsOpen" and "room.playercount > 0". The room is open shows if it can be joined (still active) and playercount greater than 0 prevents room that end still appearing with 0 players (non-existent). This for me works and now the lobby only shows active, alive rooms that the player can join. Hope it helps anyone
I was watching the other multi-player tutorial of yours and suddenly got a ping from discord that you uploaded a new video about Photon 😎
I'm super excited for this series! Thank you so much! :)
this is the best unity networking tutorial I've ever see.
Thanksss a lotttt Sir, I was working on a 3d multiplayer game from past many days but was unable to implement photon, i followed this tutorial, watched it many times and today just a moment ago i did it. The level of satisfaction i am having right now i just can't explain, no more words to say. Thanksss a lotttt sirrrr❤❤
I was having an issue where if a room is being created and then after leaving it, it would still show up in the rooms list. Ran a Debug statement and noticed the error was because for some reason Photon was returning that room even after all players have left the room. But if I disconnect and reconnect back to the Lobby, it doesn't return the empty room anymore. If anyone is having this issue, then inside the foreach statement where we instantiate a new room item, add this code before the Instantiate statement:
if (room.RemovedFromList)
{
return;
}
This will make sure that if there are any empty rooms, it will not be shown in the rooms list.
i dont know who takes the time out of their day to put a fix in youtube comments but thank you my man, your stuff should be way up there
Thank you so much!!
But the "return" is gonna stop the other listing of rooms, right? this solution is not working for me
thank you kind sir
@@felipeliberado Hi, did you ever find a solution for this? I have the exact same issue?
I was missing Blackthornprod's new uploads... So happy now!
Yes, we are back! Thanks for the support :)
Great tutorial, a tutorial on how to join a random lobby that starts automaticly would be great
This is the only channel that I've turned on the notifications for. Thank you for this 😄
if anyone is having trouble at 18:30 where he dragged the text to the room name in the inspector. Just open the prefab, then in the button game object, there will be a text there. Use that to drag and drop the text object to the script
I'm having the same issue but I don't understand how that works because you can't add anything outside the prefab if you are in the prefab?
nvm I sorted it now
its doesnt work for me
IT DOESNT WORK FOR ME T-T I CANT FIX IT
@@kamilopupilo sir how did you fixed it?
THANK YOU BTP! You saved my life. This is what I am looking for. When is the part 2?
I don't use Unity to make my games, but this tutorials does make it look really simple. Nicely explained. 👍
Great tutorial !
I do have one issue, if player 1 create room and left it, the room will be deleted and wont show on his list but player 2 will still see the room in the list and won't update. Of course if player 2 will try to join the empty room he won't succed and just stay in the lobby panel.
for some reason the OnRoomListUpdate is not updating the list when the list is updated.
Same lol, have you found a solution ?
Awesome networking tutorials, please keep them up!!!
Im creating a virtual table to play some cards games online with my friends
This tutorials are helping me alot!!
Superb tutorial. Waiting for the next one. Thank you.
Hey any one know how to fix error, Object reference not set to an instance of an object. It happens when someone try's to join a room. plz help.
If anyone is getting the "Operation JoinLobby (229) not called because client is not connected or not ready yet, client state: JoiningLobby" error, just comment out the "public overrride void OnConnectedToMaster()...." code block. Apparently this method causes the JoinLobby() to be called once correctly and then again during client lobby connection process, which causes it to fail. It seems that in newer versions of Photon, doing the UpdateList stuff is enough. [Working as of 9 July 2022]
how to solve it
thanks for this! made making our lobby a breeze! As I've only had the briefest experience with Photon, this really made the concepts quick and easy to understand.
THANK YOU SO MUCH, IVE BEEN LOOKING FOR THIS!
Okay im making this comment cause I spent a couple days figuring it out. If you couldn’t drag the room name text into the room item prefab make the room name a prefab and make sure your script for room item is attached to the room item with a normal text field. I was using a raw image for where my script was attached and underneath I had the text. I did this to give a background image but it didn’t work. Try changing the location of your script on the prefab and see if that solves the problem for anyone having this issue
If you double click on your prefab, then within the hierarchy of the prefab itself there should already be a text field. Click on RoomItem in the hierarchy(NOT the prefab in resources, then drag the child text(directly below RoomItem in hierarchy) into the script slot.
@@SeeMoreKelly I fixed this a while ago it was a unity. Bug
I LEARNED EVERYTHING FROM U MY MASTER
Awesome Man! Can't Wait For The Next Tutorial When Will It Be Out :D
Seriously appreciate this tutorial
Amazing Tutorial!
Keep Doing This!
Let’s gooo blackthornprods back
Download the project here: drive.google.com/drive/folders/1zTMfk8_tu9nP3EHc26KEfii5l3hIyoOg?usp=sharing
You don't happen to have the scripts for the second part of this video?
Whenever I build the game, my antivirus blocks the game and says that it's a virus.
Amazing tutorial eazy to follow and a good result as always✔
I love it bro! Thank you very much, amazing tutorial!!!
Nice video helped me alot
Your vidios are the best.
Thanks!
please, help! Why can't I create a prefab on button click, watched the video 100 times, didn't notice anything...
normally there was no problem, but it doesn't list the rooms anymore, problem is canvasta?
this tutorial saving me from my assignment
Finnaly i'am waiting for this
Great video , I start with Pun2 and you helpful me thanks
Awesome, another great tutorial 👍
i love your videos man. your helping me a lot but this one just seemed rushed. i hope you take this constructively... i ALWAYS prefer a quicker video with good explanations like yours but this video was just meant to be a bit longer with more in depth details.
with that being said i figured out the things i needed to. much love!! love your game designs as well. what do you use? i use procreate for all visual assets ive created. also, second video link or title?
Here is a working fix for rooms duplicating just add this to the for loop where we instantiate a new room item. Basically what I have done here is I delete the room's GameObject. Soon enough I noticed that if u were to create a room with the same name, it wouldn't be created because it is still in the list. Since we only delete the gameobject, we never got rid of it from the list, so you simply just have to remove it from the list aswell :
if (room.PlayerCount == 0)
{
PhotonNetwork.Destroy(newRoom.gameObject);
roomItemsList.Remove(newRoom);
}
If you have any question about it just reply to this comment and I'll try my best to answer.
I have a question.What if one player created a room when another player hasn't login yet,so when the other player logs in and gets in the lobby,he can't see the created room,because you're only showing the room list after onRoomListUpdate() function.
Epic he back
he's back!!!! yay!
This is such a great tutorial
- I wonder how this would be integrated with a location based game - how to place Players in a room but have their locations?
Amazing BTP!
After a long time I miss you much a great game dev is missing and a great news do you know Mark brown announced he will start making games
best tutorial out there however i found a liitle bug. If the other client creates and leaves the room the room is still shown at the other client. If the client waiting in the lobby tries to join the lobby nothing happens. I couldn`t figure out how to call the roomupdate method constantly so that clients waiting in the lobby have an real picture of avaible rooms. Would be pretty neat if someone could share a solution.
yeah
you must seen the last part
@@Sakura-zt8td I followed the last part, the bug didnt go away
@@igna3385 Sadly not
@@Sakura-zt8td The last part is for the room still showing on the host itself, doesn't solve the problem baifan mentioned
for anyone who cant drag their input fields into the script reference, you are using TMP, in your script define the variable as public TMP_InputField usernameInput;
and the same for your text
EDIT: IMPORTANT: make sure you say at the top using TMPPro; or this wont work!
it would be cool a chat system for the servers
Very helpful! Thanks
What a THICC Tutorial
Great tutorial, I was having an issue on second 18:34, Unity does not let me attach roomName text to my roomItem prefab, I was wondering why but not received satisfactory answer on internet, can anyone tell me what are the correct steps to do in that case?
same it wont work
same problem here
7 months later, same problem
do u use teytMeshPro?
because if you use it you have to write
using TMPro;
and then write instead of "public Text", "public TMP_Text"
@@emlgaming1234 still wont work
Ur back!!
Thanks Man
How would you make it so that all created room would lead to a different scene?
You guys are awesome
Previously the room items show after creating a room. but after a few tries of playing the room items is not showing anymore.Please help.
OMG it's crazy ! I am creating a new project live just to try it on my own with the documentation.
You're a wizard !!!
But I'm sad that a part of your Udemy class is free here ...
I am a noob in unity but I like the animation and graphic in your game.Can you plzz do a detailed tutorial of how to make it
He has a bunch of detailed tutorials on creating 2D game art for beginners, but it's best to find your own art style. If you do prefer to take inspiration from his art style, I've listed a bunch of his tutorials here:
Pixel Art Playlist: ua-cam.com/play/PLBIb_auVtBwDCYz94DLRsXQ5nuqL7DiAh.html
2D Game Character: ua-cam.com/video/9oiz1pectr8/v-deo.html
2D Game Animations: ua-cam.com/video/2o5HerzDohU/v-deo.html
Complex 2D Animations, Easily: ua-cam.com/video/5KroAMRdZpM/v-deo.html
Step-by-Step Painting in Photoshop: ua-cam.com/video/1kc2HGj8ef0/v-deo.html
2D Game Art Playlist: ua-cam.com/play/PLBIb_auVtBwBzY820L_LFnlK8v_V3Avxc.html
I really don't understand how you can add the RoomName (Text) to the RoomItem Prefab in min 18:32... For me it don't allow to add the text on the Prefab, only if the buttom is created in the Scene...
Same did you find a way to fix this?
@@treeadam5298 you drag in the text inside the prefab instead of the whole prefab
BRO I HAVE 6 MONTHS UNITY GAME DEVELOPING EXPERIENCE BUT I HAVE SO MANY PROBLEMS TO DO PROGRAMING ❣️❣️❣️
Great content
I can't get the name of the rooms to appear in the list. The buttons are being added to the list but it does not put the names of the rooms on the buttons in the list. In the RoomItem it is not clear to me in the Room Name field that I have to drag. The Room Name of the PanelRoom?
can you share the UI assets you used in this project?
your back?!
This is a good tutorial but I have a problem where the game only shows me the room in the project and not when I build the game and then comes up with a very long error
nvm, I just forgot to build the game again
Hey I have purchased your multiplayer course and I want to ask that why didn't you update that course with this content
Does anyone know how he added the scene object "Roomname" to the prefab "Roomitem" at timestamp 18:28 ?
No clue you ever figure it out?
Check 18:54, RoomName is the text object that was changed to called 'test'. It's the one that displays the text for RoomItem
it is made this way to buy his class in udemy, This guys wasted a lot of our time for half baked tutorial.
Since no one has answered this anywhere, I will answer it here. Sorry if I am late to the party. So the prefab is a button, so if you open the prefab, you can go to the text component in the button dropdown and then you drag and drop its own text component into the script. The text component isn't from any other object, it is coming from itself.
@@Saykey20111 No. you have to drag in the text inside the prefab, not the prefab
This was a great tutorial, I really appreciate it!
I did have an issue, though. Let's say I run a build instance of the game and then an in-editor instance of the game. Then, in the build instance, I go ahead and create a room. After doing this, I connect to the Lobby with the in-editor instance.
HOWEVER, in the editor instance, the room doesn't show up in the list. This does not happen if both instances are in the lobby at the same time. Only if the one instance is in a room, and afterwards another instance goes to lobby.
Does anyone know a solve? I tried to create a button that would refresh the list by calling OnRoomListUpdate again, but it doesn't seem to find any new rooms.
Is 20 CCU the max player of a lobby or for the whole game
Whole game, but if you self-host the server, you can get up to 100 CCU for free
im not sure what i did but the server wont show up to a second party(both builds ran on my computer)
I have a problem, I followed what you did step by step and it worked perfectly for me until the next day when I asked a friend to try if my room appeared.
I created the room and everything was fine, but it told me that nothing appeared, I tried how you do it by compiling and from Unity and the rooms were no longer updated, it did not move anything at all.
The room is created fine and everything works perfectly but it no longer shows me the list of rooms when a day before if the rooms appeared.
Do you know what could be due?
7:06 when I try to drag and drop it won't let me. Just has the little circle error sign. Any suggestions?
Wow, usefull stuff, thx ;)
Thanks for the support :)
Thanks!
18:28 here im unable to drag text element into room name slot 😞 I tried TMP_text too but still its not working. PLEASE HELP ME WITH THAT ‼️‼️
hello im following this tutorial but im having a problem bc you crop the screen its hard for me to see and i got lost so when i try to multiplay theres a defult server there and then when i make a server then the default servers name changes to the name i named the server too but the problem is that i dont want that default server to be there unless i make a server
I do everything as I see on the video, but doesnt work. At the beginning all scenes are visible, then I connect to server, got connection, in the lobby scene I cannot write a room name. No errors on a console.
Try adding an event system from the UI options
Thank you, I'll try your tip.
@@estherogwuche1708 Could you be so kind and tell me how to add event system to the project properly?
CreateRoom failed. Client is on MasterServer (must be Master Server for matchmaking)but not ready for operations (State: PeerCreated). Wait for callback: OnJoinedLobby or OnConnectedToMaster.
UnityEngine.Debug:LogError (object)
Photon.Pun.PhotonNetwork:CreateRoom (string,Photon.Realtime.RoomOptions,Photon.Realtime.TypedLobby,string[]) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:1782)
LobbyManager:OnClickCreate () (at Assets/Scripts/LobbyManager.cs:24)
UnityEngine.EventSystems.EventSystem:Update () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:517)
Ok, I have moved Event System from Connect scene to Lobby scene and it worked.
Did someone have a problem where a friend stays in your room, you leave the room and then he leaves the room, but the room stays visible in the room list for you but not for him.
i've got this issue too, have you solve it? and can you tell me how?
My list doesn't update, nothing appears when I create the room
6:58 it wont let me drag them into the slots
nvm I had to reference the fact that it was TMP
@@ColdChocco Hello. I'm currently having the same issue. Could you please explain how you solved it?
Ok, so it wasn't working bc his tutorial is using normal text, while i'm guessing you would be using text mesh pro, bc of the recent update making it the only text option that shows up in the create > ui menu.
So, i found that you have to reference the namespace "using TMPro;" at the top o the script. Also, you have to replace the variables set at 4:11 from "InputField" and "Text" to "TMP_InputField" and "TextMeshProUGUI".
Hope this helps :)
@@ColdChocco Why dont use TMP_Text ?
And second series with player selection
I have got error while tryna Display room: The Object you want to instantiate is null
Awesome
Will u be uploading the next parts of this tutorial??
Yes of course
Nice thanks ! :)
No problem !
Where is the ready button
Can you put a link to the scripts plz cause im new to proton so can you please link a github for this video
Hey hey,
i Tryed your tutorial and i really like it! Greate Work!
BUT: When i leave a room the "new roomname" and also the "create room" button are disabled or maybe the programm itself freezes. could anyone help here?
Hi
I am new at Unity, so I have a question regarding this Photon server.
Should I hos this server, so other can play with me, or how it works?
Thank you
OnRoomListUpdate is not really invoked after creating room, did this problem happen to some1 ?
how do you get all those suggested codes into your visual studio?
Hey Thanks for this tutorial! :-) I was just wondering .... What if I " PhotonNetwork.CurrentRoom.IsOpen = false;" ? Room will be still visible even if closed! How can I "Leave a Room" and make the list update? Player A creates a Room and Player B sees it in the Room List. Player A then push an "Exit" Button ... How to close that room and refresh Player B list with "No rooms" ? Thanks