Multiplayer Game Architecture in Unity

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ต.ค. 2024

ความคิดเห็น • 130

  • @AttackOnTyler
    @AttackOnTyler 2 ปีที่แล้ว +11

    My thing is, when multi-player game devs talk about multiplayer, they will tell you two things.
    1. It's hard
    2. You need to develop your game with multi-player in mind from the start.
    While conceptually that makes sense, they don't elaborate. Like of course you need to start with multi-player if you're going to have a dedicated server and clients because your input needs to go to the server and the server needs to communicate that back. Cloud based servers makes sense, since you want low latency for your player base but nothing more is elaborated on past that.
    This video is the best road map I've ever seen for all the big picture systems that need to be put in place to make a big multi-player game and I can not thank you enough for putting this together.

    • @alcionetauri
      @alcionetauri 3 หลายเดือนก่อน

      tbf, if you use unity, there are some libraries that makes it pretty easy. These "mmo architectures" are just needed when you're developing a pretty big project.
      Exactly the same war you see on webdevelopment when people argue that languages like Ruby or PHP aren't suitable for webapps and that's why facebook stopped using PHP.

  • @xzippyzachx
    @xzippyzachx 4 ปีที่แล้ว +110

    This was a very good high level explanation of how the architecture of a multiplayer game is built! Very well put together!

  • @washburnlane
    @washburnlane 3 ปีที่แล้ว +36

    20 years in IT and this is probably most concise yet informative 15:21 of my career. Excellent work! I look forward to the series.

  • @obaynaeem8595
    @obaynaeem8595 4 ปีที่แล้ว +8

    i have searched the internet for simple info about networking before making my first unity multiplayer game and found that this series is the best of the internet has to offer
    keep up the good work , and thank you

  • @stuffwithjuice2111
    @stuffwithjuice2111 2 ปีที่แล้ว +1

    Literally am going from using Ableton to soft and tNice tutorials helped trendously as a beginner. Thank you so so much for tNice tutorials!!

  • @sreejith3317
    @sreejith3317 4 ปีที่แล้ว +38

    This series is awsome

  • @FullStackIndie
    @FullStackIndie 4 ปีที่แล้ว +35

    Oh my goodness dude you blew my mind!!! This probably the most in depth and simple to understand tutorial on networking I've ever seen. Great job man!!! loved it! I truly hope your able to achieve the scope of what you presented in this tutorial. So far you've given all this away freely and it's much appreciated. Keep up the great work!

  • @BladezyEditz
    @BladezyEditz 2 หลายเดือนก่อน

    No intro, no side talks just straight to point... You gained a new sub buddy ❤✨

  • @VincentVeak
    @VincentVeak 4 ปีที่แล้ว +17

    Holy smokes, this is actually amazing and was everything I was hoping for. Just stumbled across this randomly and I'd love to support this. I really do hope that this series reaches completion!

  • @urzytkownikYT
    @urzytkownikYT 3 ปีที่แล้ว +1

    This is entire goldmine of knowledge. God almighty, where would we be if every youtuber would keep such quality.

  • @0sac
    @0sac 4 ปีที่แล้ว +22

    Great video, also worth noting that giving players the ability to host dedicated servers will ensure that the game can be played long after official servers have shut down.
    I love games that give me this ability as I know the game won't just become unplayable at some point in the future.

  • @niazm.sameer9088
    @niazm.sameer9088 4 ปีที่แล้ว +3

    Let me just say; I hope you don’t stop making these videos. You’re helping people make their dream game. Thank you! ❤️

  • @MonkeyBoyKHS
    @MonkeyBoyKHS 2 ปีที่แล้ว +2

    how do you only have 6k subs bro. As a dev myself this is such a great break down of some complex things in such a clear manner. Good shit my guy

  • @Ayyouboss
    @Ayyouboss 4 ปีที่แล้ว +12

    Why is this just so awesome. I can just feel how much effort ist put into these vids just based on the packed and understandable knowledge I was able to obtain from just this video!
    Great work and please keep this series up! I really would like to see more of this awesome stuff as I never was able to really understand the core of Networking because of its complexity. Thanks

  • @raphaelembarbe4626
    @raphaelembarbe4626 4 ปีที่แล้ว +1

    Best series about Mirror ever !

  • @hmqasim_08
    @hmqasim_08 11 หลายเดือนก่อน

    This was a very good high level explanation of how the architecture of a multiplayer game is built! Very well put together. Nice work buddy !!!

  • @johnwang975
    @johnwang975 3 ปีที่แล้ว +1

    I am currently studying for big tech system design interviews and came across your video, just wanted to say how amazing and well-put together this video is. I really liked how you compared different cloud services and also how you built upon each example to go from local multiplayer all the way to dedicated servers. You have a talent for teaching!

  • @alexsofia6884
    @alexsofia6884 3 ปีที่แล้ว

    Best series, and no TH-cam ads. All of these videos earn a like from me.

  • @TheSensationalMr.Science
    @TheSensationalMr.Science ปีที่แล้ว

    10:51 nakama... is a great software for social, matchmaking and competitive game server. also works with unity.
    Hope you have a great day & Safe Travels!

  • @frederickfreund1957
    @frederickfreund1957 2 ปีที่แล้ว +1

    OMG this video is soo good. Thank you so much! Love the topic and the way you explain it. I Was very sad when the video was over. I would also be very interested in more videos that go into the rough architecture of different kind of multiplayer games (i.e. "how would you approach a game like worms, NFS, cod" and so on). There are many Tutorials out there that explain how to write something specific in code, but I am more interested in how to structurize multiplayer games, as I struggle a lot with that when my projects get bigger.

  • @zyntist
    @zyntist 3 ปีที่แล้ว +4

    This is gold! TY for the tremendous effort man. Finally someone explaining the concepts and not just specific cases.
    I'm sure shrine wars will crush it and hope you keep showing us the way ;)

  • @ShrineApp
    @ShrineApp  4 ปีที่แล้ว +9

    Hope you enjoyed this one! You can join our Discord here: discord.shrinewars.com

    • @eriksjud9465
      @eriksjud9465 3 ปีที่แล้ว +1

      its a dead link

    • @avisor1894
      @avisor1894 3 ปีที่แล้ว

      We need new link!) I need help from profi

  • @xso8476
    @xso8476 2 ปีที่แล้ว

    5 k subscribers ? this guy is sooo underrated , thank you great explaining

  • @3rdlastsurvivor
    @3rdlastsurvivor 4 ปีที่แล้ว +17

    awesome! can't wait for the rest of the series :)

  • @TheSlaxer
    @TheSlaxer 4 ปีที่แล้ว +1

    Thats Channel is awsome! I waited so long for channel like this. Theory + explained implementation, aaah i love that.

  • @codingTheFuture
    @codingTheFuture 4 ปีที่แล้ว +1

    Thank you! Awesome tutorial videos... Very much looking forward to the rest of the series.

  • @armadababus
    @armadababus 7 หลายเดือนก่อน

    thank you soo so much for clarifying what and hows inside my head, keep it up

  • @MrJuancho2706
    @MrJuancho2706 4 ปีที่แล้ว +2

    I fricking love you dude!

  • @siavashmehmandoost2198
    @siavashmehmandoost2198 4 ปีที่แล้ว +2

    Amazing tutorial! I know making such tutorials is time consuming but it worth!

  • @KlojMaalem
    @KlojMaalem หลายเดือนก่อน

    the hardest thing if you plan on making a dedicated server is the syncrhonization it is like client sends stream of messages through one pipe and the server filters each accordingly then broadcasts it and the client refilters also that for clients to render for each other except the receiver client while applying this for everyone atleast from my algorithm :D

  • @povilasca8306
    @povilasca8306 4 ปีที่แล้ว +3

    Amazing, please keep this up

  • @ANJ_gaming
    @ANJ_gaming 8 หลายเดือนก่อน

    One note I feel was overlooked was that Dedicated Servers don't Have to have the downside of cost. In the scenario that the game devs themselves want to host dedicated servers, that is accurate, but you can also build around player ran dedicated servers which wouldn't run the developers any extra cost as far as I'm aware.
    Great video nonetheless

  • @bronzemoongames
    @bronzemoongames 3 ปีที่แล้ว

    This is like all required crucial information in a small pill, thanks a lot. Looking forward to rest of the series.

  • @trombonaught
    @trombonaught 2 ปีที่แล้ว

    That must've been the most beginner-friendly 15 minutes out there for this topic. Woah.

  • @styliann
    @styliann 3 ปีที่แล้ว +1

    This is excellent work. Looking forward to more videos in that series!

  • @noamsapir2366
    @noamsapir2366 4 ปีที่แล้ว

    Very good series, Your explanations are very good.
    As a developer with Networking experience I learnt new stuff that I didn't know about Networking and Mirror.
    Keep up the good work!

  • @yousufazad6914
    @yousufazad6914 ปีที่แล้ว

    Freaking subscribed! God-tier video

  • @wmcmurray
    @wmcmurray 3 ปีที่แล้ว +12

    Person 1 : "Are you a game developer ?"
    Person 2 : "I'm a third-party-services-bundler specialist."

  • @nootherkyle
    @nootherkyle 3 ปีที่แล้ว

    Omg you gotta admit that he's putting much more efforts into this than others.. Man you nailed it
    You deserve a millions subs, you will reach there tbh just keep up the good work..

  • @thilun9176
    @thilun9176 4 ปีที่แล้ว +2

    Thank you so much for this series

  • @kalkatos
    @kalkatos 2 ปีที่แล้ว

    Great video! I can confirm that you managed to put every information needed in a nice way. To be perfect, I think you only missed explanation on one kind of games: asynchronous multiplayer. I'm talking about games like Clash of Clans, Super Mario Maker, and the likes of play-by-e-mail. There is some interaction between players, but not in real-time, they act upon a database.

  • @hansvallee9558
    @hansvallee9558 3 ปีที่แล้ว

    Thanks you very much for this straight to the point and comprehensive architecture tutorial.

  • @ayan3789
    @ayan3789 3 ปีที่แล้ว +1

    no bullshit! straight knowledge! loving it

  • @chadzulu4328
    @chadzulu4328 ปีที่แล้ว

    Excellent video, thanks so much!

  • @nikilkumar1000
    @nikilkumar1000 3 ปีที่แล้ว

    Really really well built series.
    Appreciate the high effort.
    Keep the series going strong.

  • @SirSnowman
    @SirSnowman 3 ปีที่แล้ว

    Wow, straight to the point! Thank you, subscribed!

  • @RadicalRik
    @RadicalRik ปีที่แล้ว

    Host migration just brought back modern warfare 2 nightmares from 10+ years ago

  • @anonymouscommentator
    @anonymouscommentator 10 หลายเดือนก่อน

    i loved this video! thank you so much!

  • @davedaddy101
    @davedaddy101 2 ปีที่แล้ว

    Your channel is very good. Thank you for this.

  • @AlexandrBorschchev
    @AlexandrBorschchev 3 ปีที่แล้ว

    I remember playing this fps game called bullet party, it used p2p and lan, when i first learned about networking i looked back to this game and i realize one player is hosting the connection and the players are all around the world so no wonder it was so laggy in different lobbies.

  • @fasterplop
    @fasterplop 3 ปีที่แล้ว

    im glad i found this wonderful video

  • @yousufazad6914
    @yousufazad6914 ปีที่แล้ว

    Awesome video dude. Really.

  • @techmaster90
    @techmaster90 3 ปีที่แล้ว

    I'm the 1K like lol. Very good video. Thank you for the effort!!!

  • @MatejVancoCG
    @MatejVancoCG 3 ปีที่แล้ว

    Great presentation on the highest level! Good job.

  • @NatadTech
    @NatadTech 2 ปีที่แล้ว +1

    Thanks

  • @Aminsx_
    @Aminsx_ 2 ปีที่แล้ว

    Thank you mister knowledgeable

  • @tricknick4930
    @tricknick4930 3 ปีที่แล้ว

    Man, you're so underrated! Keep going

  • @nirupamdey6628
    @nirupamdey6628 3 ปีที่แล้ว

    Very clean looking video.

  • @justlama0
    @justlama0 ปีที่แล้ว +1

    for fall guys - local deterministic simulation architecture with rollback will be better.

  • @karansahu7710
    @karansahu7710 3 ปีที่แล้ว

    this video is very informative, thank you for creating these kind of videos

  • @KhangNguyen-wj5jd
    @KhangNguyen-wj5jd 3 ปีที่แล้ว

    This is a great series

  • @IgorSantos-qw8vv
    @IgorSantos-qw8vv 4 ปีที่แล้ว +4

    Hey, I am so excited for this series. I always want to learn it but never found good materials. Do you have a patreon? I can't afford much but I would be pleased in paying you something for the great work :)

    • @ShrineApp
      @ShrineApp  4 ปีที่แล้ว +1

      Thanks Igor, glad you found it useful. I'll consider making one as the series grows.

  • @sudarshandoke3022
    @sudarshandoke3022 3 ปีที่แล้ว

    Very well explained.😍
    Thank you soo much

  • @EnderElohim
    @EnderElohim ปีที่แล้ว +1

    3:20 BUT we also have steam play together now which means your friend can join your game as if you playing in same computer through steam

  • @CourageousCreatives
    @CourageousCreatives 3 ปีที่แล้ว

    This was very helpful. Thank you !

  • @2bitsbyab
    @2bitsbyab 2 ปีที่แล้ว

    awesome explanation

  • @AlbertoFdzM
    @AlbertoFdzM 3 ปีที่แล้ว

    Amazing video, this is a ton of info well packed and organized. Thank you so much for your dedication to this, I learned a lot.

  • @omerfi
    @omerfi 2 ปีที่แล้ว

    Awesome video!

  • @eduardorabanal2803
    @eduardorabanal2803 4 ปีที่แล้ว +2

    thanks a lot bro

  • @navdeeparya153
    @navdeeparya153 2 ปีที่แล้ว

    Good Explanation! Keep it up

  • @Kisme-e9f
    @Kisme-e9f ปีที่แล้ว

    great video!
    But that's good to consider P2P generaly is not a topology, it's a service model.

  • @DanielDaAbadSukarno
    @DanielDaAbadSukarno 2 ปีที่แล้ว

    Thx for explanation it very helpful! 😁

  • @shahriarrezowan4065
    @shahriarrezowan4065 5 หลายเดือนก่อน

    THANK YOU MOST❤❤❤❤❤❤❤❤

  • @lucasmontec
    @lucasmontec 2 ปีที่แล้ว +10

    player hosted is not about money saving! Cmon, your game types are quite limited if you think that way. Really. Having a player hosted game is amazing for simpler games. Party games, co-op, adventure games. If a group is playing ANY non competitive game, then they just don't have any reason to cheat. Or if they do, does it really matter? They are playing together, it's their session. I mean, you are correct about what you said but I believe saying that this way is very misleading to new developers that want to create multiplayer games. Cloud-hosted servers are harder to setup and to test. The logic split between the client-side and the server side is harder to maintain... cmon, there are a LOT of great reasons to go with 'listen servers'.

    • @noahlederer8587
      @noahlederer8587 3 หลายเดือนก่อน +1

      i think i get what you mean, however he mentioned ease of implementation. the rant seems a bit too much

  • @Ivcifer
    @Ivcifer 3 ปีที่แล้ว

    amazing content, thank you so much for the knowledge!

  • @benjamindenis2215
    @benjamindenis2215 3 ปีที่แล้ว

    Really good vid! Learned a lot thanks

  • @jeistarGames
    @jeistarGames 3 ปีที่แล้ว +1

    no boring stock videos or image macros. just diagrams. as it should be.

    • @miguelescutia5556
      @miguelescutia5556 ปีที่แล้ว

      His video is so well put and interesting that I didn´t even notice not having fancy graphics or sound. He could do a podcast and still be awesome in delivering his gold info. I rarely subscribe to a channel but I will explore his in depth. Thank you.

  • @shoaibzafar5663
    @shoaibzafar5663 ปีที่แล้ว

    Great video

  • @theebulll
    @theebulll 3 ปีที่แล้ว

    Love this video, will we be getting the follow up videos for this?

  • @edusnapsity3207
    @edusnapsity3207 2 ปีที่แล้ว +1

    project a lot because I've been working on other stuff (and being lazy lol). Also, I had been facing a recurring problem of content dropouts in

  • @dantebuscaglia649
    @dantebuscaglia649 3 ปีที่แล้ว

    Nice vídeo !!!!!

  • @anthonygrooms4015
    @anthonygrooms4015 3 ปีที่แล้ว +1

    This video makes sense and all but what is the role of Mirror with all of this? Does it provide the transport layer? Does it allow unity to connect to all these needed services?

  • @victorz7748
    @victorz7748 5 หลายเดือนก่อน

    Nice work! It's just not clear to me how host migration is handled in dedicated server model. Is it simply just bringing a new server up with all the necessary credentials to talk to different client workers? Any states the backup server needs to have? (sorry if questions are naive). thanks

  • @FredTheJust
    @FredTheJust 3 ปีที่แล้ว

    you must be a teacher. a good one

  • @NoelTugy
    @NoelTugy 3 ปีที่แล้ว

    I'm making a Gacha game so that helps a lot!
    I think I'll imply an online server after I'll finish the Gacha and the basic story for my game
    Having a server definitely adds a lot of options for my game so I'm very curious about it

  • @calccalccalc
    @calccalccalc 3 ปีที่แล้ว

    Great, but the irony of re-making a fall guys multiplayer system isn't lost on me :')

  • @Kugelschrei
    @Kugelschrei 3 ปีที่แล้ว

    Awesome, that rundown in the beginning really helped me!
    I am currently planning to turn my local multiplayer game, which is up to four players shared screen, into an online multiplayer game.
    The type of multiplayer I aim for is roughly comparable to speedrunners. Since there should never be more than four players in a game together, I assume it would be okay to use P2P.
    Since I plan to launch it on Steam, leveraging the Steam friendslist and join/invite features would be a big advantage.
    Do you have any tips regarding what kind of networking solution would fit here? I heard there is Steamworks P2P, but there are also other solutions out there. Can it be combined with mirror?
    Thanks for your content!!

  • @seanpaulson9098
    @seanpaulson9098 ปีที่แล้ว

    This was amazing dude it is Ardmore credit or a lot of money for this😊

  • @JB10008d
    @JB10008d 2 หลายเดือนก่อน

    Do any of the engines have trouble with large scale multiplayer stuff?

  • @elliottk68va
    @elliottk68va 3 ปีที่แล้ว

    It's looks like its been awhile since a video was added. I was just curious if this series was still in development?

  • @harisahamed
    @harisahamed 2 ปีที่แล้ว

    Can you share what the architecture would be for a jeopardy style game

  • @speedrunnercaliorda2787
    @speedrunnercaliorda2787 3 ปีที่แล้ว

    Good thing I want to make a game so simple it wont need any of that XD

  • @whatamiwitnessing1003
    @whatamiwitnessing1003 3 ปีที่แล้ว

    If I were to make a game with a dedicated server that does not consist of matches but a world that players can play in.
    Should I save player location to the database every once in a while?

  • @d3zar
    @d3zar ปีที่แล้ว

    I program my own server with C# Socket library. My game server is handling one scene ( unity game ). Server, communicates with clients for one lobby. If i want to make a game server like Fall Guys. I have to program a Master Server. This master server have to handle lobby servers and players. Master server will must provide clients to exact lobby servers. So lobby servers have to be communicate with master. But i don't know how i can make this system in one single computer ( server's computer ). How can we make this ?

  • @piztech5168
    @piztech5168 3 ปีที่แล้ว

    I'm gonna tell my kids this was the college I graduated in

  • @MuhammadBilal-cs3dg
    @MuhammadBilal-cs3dg 3 ปีที่แล้ว

    Can you share this presentation please? Thank you

  • @vishnuvkarthiku6714
    @vishnuvkarthiku6714 3 ปีที่แล้ว

    Great content! I want to put up my first game.. is there any way I can host a multiplayer game on a free server?
    Apart from google, aws, azure , can you suggest any other options with less cost by compromising on scaling?

    • @ShrineApp
      @ShrineApp  3 ปีที่แล้ว +1

      they all have very cheap options (starting at $3.50/mo). I don't think you'll find anything for free (unless it's a promotion or something) lol

    • @vishnuvkarthiku6714
      @vishnuvkarthiku6714 3 ปีที่แล้ว

      Thanks!!

  • @user-th8pr7no5p
    @user-th8pr7no5p 3 ปีที่แล้ว

    soo can u do matchmaking with player hosted client server p2p?

  • @erickao3058
    @erickao3058 3 ปีที่แล้ว

    Amazing bro! Thank god for your existance.. hahahah

  • @atifahmad6457
    @atifahmad6457 3 ปีที่แล้ว

    Hello sir can you make a video on new Mlapi in unity?