Multiplayer Game Architecture in Unity

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 131

  • @AttackOnTyler
    @AttackOnTyler 2 роки тому +14

    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 5 місяців тому

      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 роки тому +113

    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 роки тому +38

    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.

  • @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!!

  • @obaynaeem8595
    @obaynaeem8595 4 роки тому +9

    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

  • @urzytkownikYT
    @urzytkownikYT 3 роки тому +1

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

  • @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 4 місяці тому

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

  • @sreejith3317
    @sreejith3317 4 роки тому +38

    This series is awsome

  • @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! ❤️

  • @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.

  • @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!

  • @alexsofia6884
    @alexsofia6884 3 роки тому

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

  • @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!

  • @hmqasim_08
    @hmqasim_08 Рік тому

    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 !!!

  • @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

  • @raphaelembarbe4626
    @raphaelembarbe4626 4 роки тому +1

    Best series about Mirror ever !

  • @xso8476
    @xso8476 2 роки тому

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

  • @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!

  • @codingTheFuture
    @codingTheFuture 4 роки тому +1

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

  • @KlojMaalem
    @KlojMaalem 2 місяці тому

    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

  • @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

  • @trombonaught
    @trombonaught 3 роки тому

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

  • @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 ;)

  • @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

  • @bronzemoongames
    @bronzemoongames 4 роки тому

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

  • @siavashmehmandoost2198
    @siavashmehmandoost2198 4 роки тому +2

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

  • @TheSlaxer
    @TheSlaxer 4 роки тому +1

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

  • @RadicalRik
    @RadicalRik Рік тому

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

  • @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!

  • @3rdlastsurvivor
    @3rdlastsurvivor 4 роки тому +17

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

  • @frederickfreund1957
    @frederickfreund1957 3 роки тому +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.

  • @hansvallee9558
    @hansvallee9558 3 роки тому

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

  • @styliann
    @styliann 3 роки тому +1

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

  • @armadababus
    @armadababus 9 місяців тому

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

  • @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..

  • @ANJ_gaming
    @ANJ_gaming 10 місяців тому

    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

  • @wmcmurray
    @wmcmurray 3 роки тому +12

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

  • @nikilkumar1000
    @nikilkumar1000 4 роки тому

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

  • @justlama0
    @justlama0 Рік тому +1

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

  • @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.

  • @SirSnowman
    @SirSnowman 3 роки тому

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

  • @chadzulu4328
    @chadzulu4328 Рік тому

    Excellent video, thanks so much!

  • @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.

  • @thilun9176
    @thilun9176 4 роки тому +2

    Thank you so much for this series

  • @MrJuancho2706
    @MrJuancho2706 4 роки тому +2

    I fricking love you dude!

  • @MatejVancoCG
    @MatejVancoCG 3 роки тому

    Great presentation on the highest level! Good job.

  • @anonymouscommentator
    @anonymouscommentator 11 місяців тому

    i loved this video! thank you so much!

  • @karansahu7710
    @karansahu7710 3 роки тому

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

  • @fasterplop
    @fasterplop 3 роки тому

    im glad i found this wonderful video

  • @povilasca8306
    @povilasca8306 4 роки тому +3

    Amazing, please keep this up

  • @davedaddy101
    @davedaddy101 2 роки тому

    Your channel is very good. Thank you for this.

  • @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.

  • @ayan3789
    @ayan3789 4 роки тому +1

    no bullshit! straight knowledge! loving it

  • @yousufazad6914
    @yousufazad6914 Рік тому

    Freaking subscribed! God-tier video

  • @tricknick4930
    @tricknick4930 3 роки тому

    Man, you're so underrated! Keep going

  • @nirupamdey6628
    @nirupamdey6628 3 роки тому

    Very clean looking video.

  • @sudarshandoke3022
    @sudarshandoke3022 3 роки тому

    Very well explained.😍
    Thank you soo much

  • @CourageousCreatives
    @CourageousCreatives 3 роки тому

    This was very helpful. Thank you !

  • @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.

  • @Kisme-e9f
    @Kisme-e9f Рік тому

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

  • @yousufazad6914
    @yousufazad6914 Рік тому

    Awesome video dude. Really.

  • @Aminsx_
    @Aminsx_ 2 роки тому

    Thank you mister knowledgeable

  • @KhangNguyen-wj5jd
    @KhangNguyen-wj5jd 3 роки тому

    This is a great series

  • @2bitsbyab
    @2bitsbyab 2 роки тому

    awesome explanation

  • @benjamindenis2215
    @benjamindenis2215 4 роки тому

    Really good vid! Learned a lot thanks

  • @Ivcifer
    @Ivcifer 4 роки тому

    amazing content, thank you so much for the knowledge!

  • @navdeeparya153
    @navdeeparya153 2 роки тому

    Good Explanation! Keep it up

  • @eduardorabanal2803
    @eduardorabanal2803 4 роки тому +2

    thanks a lot bro

  • @theebulll
    @theebulll 3 роки тому

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

  • @DanielDaAbadSukarno
    @DanielDaAbadSukarno 2 роки тому

    Thx for explanation it very helpful! 😁

  • @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

  • @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

  • @techmaster90
    @techmaster90 3 роки тому

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

  • @NatadTech
    @NatadTech 2 роки тому +1

    Thanks

  • @omerfi
    @omerfi 2 роки тому

    Awesome video!

  • @lucasmontec
    @lucasmontec 2 роки тому +11

    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 5 місяців тому +1

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

  • @shahriarrezowan4065
    @shahriarrezowan4065 6 місяців тому

    THANK YOU MOST❤❤❤❤❤❤❤❤

  • @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

  • @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.

  • @shoaibzafar5663
    @shoaibzafar5663 Рік тому

    Great video

  • @seanpaulson9098
    @seanpaulson9098 Рік тому

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

  • @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?

  • @dantebuscaglia649
    @dantebuscaglia649 3 роки тому

    Nice vídeo !!!!!

  • @calccalccalc
    @calccalccalc 3 роки тому

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

  • @victorz7748
    @victorz7748 7 місяців тому

    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

  • @harisahamed
    @harisahamed 2 роки тому

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

  • @MuhammadBilal-cs3dg
    @MuhammadBilal-cs3dg 3 роки тому

    Can you share this presentation please? Thank you

  • @JB10008d
    @JB10008d 3 місяці тому

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

  • @speedrunnercaliorda2787
    @speedrunnercaliorda2787 3 роки тому

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

  • @Awark-f5w
    @Awark-f5w 2 роки тому +1

    What font?)

  • @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?

  • @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!!

  • @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 ?

  • @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?

  • @user-th8pr7no5p
    @user-th8pr7no5p 4 роки тому

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

  • @atifahmad6457
    @atifahmad6457 3 роки тому

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

  • @piztech5168
    @piztech5168 3 роки тому

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

  • @张宋阳
    @张宋阳 2 роки тому +1

    etc.