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!
@liamcalice75803 жыл бұрын
Thanks so much !
@da1memer1922 жыл бұрын
Agree :D
@landonchandler97142 жыл бұрын
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.
@SarveSilva6 ай бұрын
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
@PixelbugStudio3 жыл бұрын
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✌️
@SaadTheGlad3 жыл бұрын
Wdym "I think" is that a typo?
@rp93553 жыл бұрын
I really want code work content 🙂
@GoodSmile33 жыл бұрын
Finally something warm this cold morning.
@darkwingdanger36613 жыл бұрын
You literally released this as I finished the other one. You guys are the greatest.
@tryme64133 жыл бұрын
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
@mikael8083 жыл бұрын
I'm super excited for this series! Thank you so much! :)
@bunggo99143 жыл бұрын
this is the best unity networking tutorial I've ever see.
@pauls.76633 жыл бұрын
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👍
@anishsrivatsan23323 жыл бұрын
I was missing Blackthornprod's new uploads... So happy now!
@liamcalice75803 жыл бұрын
Yes, we are back! Thanks for the support :)
@giant67063 жыл бұрын
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 😎
@recodegamesstudio10 ай бұрын
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
@abhay53552 жыл бұрын
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❤❤
@Necronlord20112 жыл бұрын
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.
@2gr8te4u52 жыл бұрын
True, but if you're a beginner, why are you trying to do online networking?
@AnimalLovers929272 жыл бұрын
@@2gr8te4u5 im beginer, but not beginer in unity, just beginer in online networking, thats what he means
@leadattic Жыл бұрын
@@2gr8te4u5 cuz why not
@dh5888 Жыл бұрын
@@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
@AnimalLovers92927 Жыл бұрын
@@dh5888 yes i did, now my multiplayer game has been finished, and already on playstore
@isthatcaydo3 жыл бұрын
This is the only channel that I've turned on the notifications for. Thank you for this 😄
@NOTONtechsx3 жыл бұрын
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.
@spyschannel80002 жыл бұрын
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
@tristanlapointe90872 жыл бұрын
Thank you so much!!
@felipeliberado2 жыл бұрын
But the "return" is gonna stop the other listing of rooms, right? this solution is not working for me
@minitruffle2 жыл бұрын
thank you kind sir
@philliperasmus84262 жыл бұрын
@@felipeliberado Hi, did you ever find a solution for this? I have the exact same issue?
@CharlesBalisalisa Жыл бұрын
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
@kamilopupilo Жыл бұрын
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?
@kamilopupilo Жыл бұрын
nvm I sorted it now
@johntrinh2711 Жыл бұрын
its doesnt work for me
@nachaphont9 ай бұрын
IT DOESNT WORK FOR ME T-T I CANT FIX IT
@coverscollection87758 ай бұрын
@@kamilopupilo sir how did you fixed it?
@HelperWesley3 жыл бұрын
I don't use Unity to make my games, but this tutorials does make it look really simple. Nicely explained. 👍
@senate_663 жыл бұрын
Great tutorial, a tutorial on how to join a random lobby that starts automaticly would be great
@emnd45403 жыл бұрын
Superb tutorial. Waiting for the next one. Thank you.
@norvinshaqlintag92143 жыл бұрын
THANK YOU BTP! You saved my life. This is what I am looking for. When is the part 2?
@ekanshtardeja3 жыл бұрын
I LEARNED EVERYTHING FROM U MY MASTER
@Shorkiedokey3 жыл бұрын
Awesome networking tutorials, please keep them up!!!
@ralphietheduckkkkk2 жыл бұрын
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?
@simonvutov75752 жыл бұрын
THANK YOU SO MUCH, IVE BEEN LOOKING FOR THIS!
@denn5012 жыл бұрын
Im creating a virtual table to play some cards games online with my friends This tutorials are helping me alot!!
@baifan87043 жыл бұрын
Download the project here: drive.google.com/drive/folders/1zTMfk8_tu9nP3EHc26KEfii5l3hIyoOg?usp=sharing
@CarlosMartinez-ir6mu2 жыл бұрын
You don't happen to have the scripts for the second part of this video?
@da1memer1922 жыл бұрын
Amazing Tutorial! Keep Doing This!
@kingjawdev81023 жыл бұрын
Let’s gooo blackthornprods back
@kyleennis45602 жыл бұрын
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.
@5thBabbitt3 жыл бұрын
Seriously appreciate this tutorial
@liadovdat2 жыл бұрын
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.
@youngag2710 Жыл бұрын
Same lol, have you found a solution ?
@legends3893 жыл бұрын
Awesome Man! Can't Wait For The Next Tutorial When Will It Be Out :D
@jiaen46322 жыл бұрын
this tutorial saving me from my assignment
@lucaschagas85883 жыл бұрын
I love it bro! Thank you very much, amazing tutorial!!!
@royvictorgagarin553 жыл бұрын
Awesome, another great tutorial 👍
@noobcraft57123 жыл бұрын
Your vidios are the best.
@liamcalice75803 жыл бұрын
Thanks!
@Benjabenjaaaa3 жыл бұрын
Amazing tutorial eazy to follow and a good result as always✔
@vihaansachan78053 жыл бұрын
Nice video helped me alot
@greenergamer578 ай бұрын
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.
@thefire8960 Жыл бұрын
Great video , I start with Pun2 and you helpful me thanks
@onkarwakchaure35866 ай бұрын
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 ‼️‼️
@coverscollection87758 ай бұрын
18:33 Anyone knows why i cant drag my room name text to the prefab room item room rame?
@maiimrc24828 ай бұрын
I also have the same issue, please tell me if you found what was the issue
@coverscollection87758 ай бұрын
@@maiimrc2482 nope i just dont use it
@IvánAlexanderAcostaRodas7 ай бұрын
Maybe bc u are using textmeshpro
@foncode1016 ай бұрын
Open the prefab, then drag the child text from the hierarchy of the roomButton
@BinaryVectorJr2 жыл бұрын
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]
@spai_wolf8561 Жыл бұрын
how to solve it
@FoxDenWorld Жыл бұрын
7:06 when I try to drag and drop it won't let me. Just has the little circle error sign. Any suggestions?
@flashbackmovie87922 жыл бұрын
please, help! Why can't I create a prefab on button click, watched the video 100 times, didn't notice anything...
@CodeConnor3 жыл бұрын
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
@SeeMoreKelly2 жыл бұрын
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.
@CodeConnor2 жыл бұрын
@@SeeMoreKelly I fixed this a while ago it was a unity. Bug
@argiam.ahyaelmushofa65923 жыл бұрын
Finnaly i'am waiting for this
@shikup68773 жыл бұрын
Does anyone know how he added the scene object "Roomname" to the prefab "Roomitem" at timestamp 18:28 ?
@CodeConnor3 жыл бұрын
No clue you ever figure it out?
@xtienpham2 жыл бұрын
Check 18:54, RoomName is the text object that was changed to called 'test'. It's the one that displays the text for RoomItem
@Saykey201112 жыл бұрын
it is made this way to buy his class in udemy, This guys wasted a lot of our time for half baked tutorial.
@celledge482 жыл бұрын
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.
@Charlie13O2 Жыл бұрын
@@Saykey20111 No. you have to drag in the text inside the prefab, not the prefab
@Maxime664102 жыл бұрын
it does not work with me, even watching other video or creating a new project, I have no return from the list of servers I do not know why. 18:57
@Dievis30103 күн бұрын
Can someone help me with this? I have a problem where I can't drag the roomName in the hierarchy to the prefab roomItem, even though both are using the same data type TMP, but it still doesn't work.
@ItsAxoReal2 жыл бұрын
What a THICC Tutorial
@ivanplouganou32442 жыл бұрын
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...
@treeadam52982 жыл бұрын
Same did you find a way to fix this?
@Charlie13O2 Жыл бұрын
@@treeadam5298 you drag in the text inside the prefab instead of the whole prefab
@rblxl3g3nd66 Жыл бұрын
Whenever I build the game, my antivirus blocks the game and says that it's a virus.
@duztine2 жыл бұрын
Very helpful! Thanks
@W1nt3r_.2 жыл бұрын
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.
@timmy_he14692 жыл бұрын
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.
@christopherdeguzmaniii78108 ай бұрын
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.
@Rise20343 жыл бұрын
he's back!!!! yay!
@xiba049 ай бұрын
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?
@infiniverse8353 жыл бұрын
Amazing BTP!
@thespecialnoob2 жыл бұрын
How would you make it so that all created room would lead to a different scene?
@saulrojas26792 жыл бұрын
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?
@purpleskrim69352 жыл бұрын
same it wont work
@littlemage34322 жыл бұрын
same problem here
@jamesfan7768 Жыл бұрын
7 months later, same problem
@emlgaming1234 Жыл бұрын
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"
@coverscollection87758 ай бұрын
@@emlgaming1234 still wont work
@ctenga13 жыл бұрын
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 ...
@ShahbazGames3 жыл бұрын
You guys are awesome
@psimurilo2 жыл бұрын
can you share the UI assets you used in this project?
@souporwormgaming3 жыл бұрын
Epic he back
@nv72872 жыл бұрын
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?
@estherogwuche17082 жыл бұрын
Great content
@haiminh643 Жыл бұрын
Good Video, +1 repect for tutorial of you.
@zentz14083 жыл бұрын
Ur back!!
@nehasharma88963 жыл бұрын
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
@mahimnaimofficial1363 жыл бұрын
Thanks Man
@acrow49698 ай бұрын
im not sure what i did but the server wont show up to a second party(both builds ran on my computer)
@jasperdavis82343 жыл бұрын
your back?!
@tunahancoskun3375 Жыл бұрын
normally there was no problem, but it doesn't list the rooms anymore, problem is canvasta?
@pacusz3 жыл бұрын
Wow, usefull stuff, thx ;)
@liamcalice75803 жыл бұрын
Thanks for the support :)
@SarveSilva6 ай бұрын
My list doesn't update, nothing appears when I create the room
@Goose99534 ай бұрын
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!
@dclxviclan8 ай бұрын
And second series with player selection
@JP-vi9mw3 жыл бұрын
it would be cool a chat system for the servers
@wesamkabha6794 Жыл бұрын
OnRoomListUpdate is not really invoked after creating room, did this problem happen to some1 ?
@ninofranci3922 Жыл бұрын
Why can't I drag Room Name (text) to RoomItem prefab script?
@killstreakz2 жыл бұрын
I have got error while tryna Display room: The Object you want to instantiate is null
@thediodoin10002 жыл бұрын
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
@yaredhernandez41712 жыл бұрын
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?
@DarinBills3 жыл бұрын
Can you put a link to the scripts plz cause im new to proton so can you please link a github for this video
@ColdChocco2 жыл бұрын
6:58 it wont let me drag them into the slots
@ColdChocco2 жыл бұрын
nvm I had to reference the fact that it was TMP
@coolaydunno2 жыл бұрын
@@ColdChocco Hello. I'm currently having the same issue. Could you please explain how you solved it?
@ColdChocco2 жыл бұрын
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 :)
@littlemage34322 жыл бұрын
@@ColdChocco Why dont use TMP_Text ?
@MadaraUchihaAnime Жыл бұрын
I need help. after i leave the room the name is still showing in the list
@hi-fi2680 Жыл бұрын
Tips: 18:30 => public class RoomItem : MonoBehaviour { public Text roomName; private void Awake() { if (roomName == null) { roomName = GetComponentInChildren(); } } public void SetRoomName(string _roomName) { roomName.text = _roomName; } } ================ private void UpdateRoomList(List list) { foreach (RoomItem item in roomItemsList) { Destroy(item.gameObject); } roomItemsList.Clear(); foreach (RoomInfo room in list) { RoomItem newRoom = Instantiate(roomItemPrefab, contentObject); Text textComponent = newRoom.GetComponentInChildren(); newRoom.roomName = textComponent; newRoom.SetRoomName(room.Name); roomItemsList.Add(newRoom); } } gogo
@andruhevich46412 жыл бұрын
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
@theAAGfilms Жыл бұрын
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.
@SeemaSingh-xf6ts3 жыл бұрын
Hey I have purchased your multiplayer course and I want to ask that why didn't you update that course with this content
@457Deniz4573 жыл бұрын
Nice thanks ! :)
@liamcalice75803 жыл бұрын
No problem !
@baifan87043 жыл бұрын
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.
@Sakura-zt8td3 жыл бұрын
yeah
@Sakura-zt8td3 жыл бұрын
you must seen the last part
@baifan87043 жыл бұрын
@@Sakura-zt8td I followed the last part, the bug didnt go away
@baifan87043 жыл бұрын
@@igna3385 Sadly not
@xtienpham2 жыл бұрын
@@Sakura-zt8td The last part is for the room still showing on the host itself, doesn't solve the problem baifan mentioned
@TimokaajeWinkelman Жыл бұрын
how do you get all those suggested codes into your visual studio?
@brunofan81043 жыл бұрын
BRO I HAVE 6 MONTHS UNITY GAME DEVELOPING EXPERIENCE BUT I HAVE SO MANY PROBLEMS TO DO PROGRAMING ❣️❣️❣️
@thekillerduck69773 жыл бұрын
Whats this? A new vid!!
@naufalmumtazadzaki2ddd2 жыл бұрын
why my room is not destroying when leave the room
@andruhevich46412 жыл бұрын
Please help After step 4, when I connect to the server I see all the prefabs that I added. How to remove them and show only the rooms?
@kanebrawlstars2 жыл бұрын
you should delete the current rooms prefab in the unity editor and then start the game
@andruhevich46412 жыл бұрын
@@kanebrawlstars Got it. It works. Thank ypu
@jasben93192 жыл бұрын
For some reason when I test the game, the room i created doesn't show at all, and the prefab asset "RoomItem" shows up saying only "room name" and won't disappear. How can I fix this? plz
@toddholford22392 жыл бұрын
did you figure out a fix for this? I'm currently getting the same issue sadly
@jasben93192 жыл бұрын
@@toddholford2239 I think before you go into play test, remove the current prefab in the editor. The script will add the prefab instead by itself.