Full Tutorial: Multiplayer Matchmaking and Dedicated Server Setup for any game

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024

Комментарии • 27

  • @DrewofDonuts
    @DrewofDonuts Месяц назад

    Maybe someone can clear this up for me, but this implementation would have the server start the game scene before any players have even joined, correct? How could we modify so that the server changes scenes only after a matchmaking ticket is successful and then have clients join from there? Or am I just fundamentally misunderstanding how this works?

  • @buffoverflow
    @buffoverflow 7 месяцев назад +1

    Great video, now I have a very clear idea on how to get the matchmaking with dedicated server running. Looks too complicated, I was expecting something easier out of the box, maybe Unity can work on a simpler workflow, idk.

  • @stewgamin3294
    @stewgamin3294 2 месяца назад

    I keep failing to connect as client to the dedicated server please help.

    • @lotwar
      @lotwar 3 дня назад

      I had two different issues regarding this.
      I quickly as default put things on european servers as I am european. but I am located in Asia. so when trying to connect there is no avaialble region for me.
      Another thing too look for:
      I ended changing the name of the build file... obviously the "executable file" that I already sat will no longer work. since it now have a different name.

  • @NpXAutobot
    @NpXAutobot 6 месяцев назад +1

    I need like 30 minutes on discord call with you haha, show you my progress on the whole matchmaking teams, party, lobby setup I have going on. im sure there are things that will make you sick, but it could inspire some ideas and thought as to how to solve some of the not so simple situations. i know the courses come with some 1 on 1s... do you offer those on the side!?

    • @Unity3dCollege
      @Unity3dCollege  6 месяцев назад +2

      It's something I've been considering adding for a while, get asked about it almost every week now. Maybe I'll set something up this week and get it going. What's the game you're building btw?

    • @NpXAutobot
      @NpXAutobot 6 месяцев назад

      @Unity3dCollege ill be your play tester for 1on1s ;) my prototype is a simplistic, fast shooter, .. working toward an esport feel more than realistic combat.

    • @NpXAutobot
      @NpXAutobot 6 месяцев назад

      @Unity3dCollege Im working on setting up a proper backfill setup.. which requires all the other things to work well as is...
      My thoughts right now are... making a timer for pre allocated players to join. If they all join, I can update the backfill ticket and start allowing others in, or just start match, etc..
      If all pre alocated players dont join by x seconds. I can choose to shutdown game, or open backfill and wait until minimum players have joined before starting a match....
      It's a lot at first, but im trying to break it down and keep it simple...
      Updates to the ticket are a pain when working with teams, and having to use AuthIds also

  • @sarfraz8533
    @sarfraz8533 7 месяцев назад

    Notebook looking cool , Name ?

  • @brayansantiagobetancourt7151
    @brayansantiagobetancourt7151 2 месяца назад +1

    "Really easy to use" - 40 min tutorial.

  • @eSMisiek
    @eSMisiek 6 месяцев назад +1

    Great video, all well explained, thank you for that!
    I got everything up and running, however I'm having an issue where the servers crash due to too high CPU usage (even with 0 players). I've used the sample provided, and I haven't made code changes... I'm new to networking and NGO and I have no idea what's wrong ?
    Server Event: Allocated server had issues (CPU over limit. Combined core(s) usage 130.90% (65.45% of machine), only 30.00% allowed with 0 players), stopping server and deallocating

    • @NpXAutobot
      @NpXAutobot 6 месяцев назад

      frame rate needs to be capped at 60 on awake on server build :D found that one out the hard way

    • @Unity3dCollege
      @Unity3dCollege  6 месяцев назад

      Check the logs on the server. Every time I ran into that, there was an exception in the server code, causing it to shut down.

  • @yusufayvz
    @yusufayvz 3 месяца назад

    I have a problem like this in engine.log. Can u help me? Error sending message: Connection ID is invalid. Likely caused by sending on stale connection 0.

  • @johnny5alive238
    @johnny5alive238 5 месяцев назад

    Just converted this to mirror, this was the most straight forward explanation of getting the basics running. Keep it up Jason.. we appreciate you and all you do! Only problem I'm having is starting the game once the max players have joined, so don't start the game till 4 players have joined and 4 players are needed and how to deallocate the server once the game has started and everyone quit... I think I just need to figure out how to query the servers max players and compare that to the connected players... still looking for that fix..

  • @Sabre2Dance
    @Sabre2Dance Месяц назад

    Thanks so much for this video. I was demotivated by the documentation and other videos out there, but you helped out a lot! :)

  • @mjkkaya6056
    @mjkkaya6056 4 месяца назад +1

    That's exactly what I wanted. Simple and Clear.
    Thanks.

  • @tehmasipalikhan8598
    @tehmasipalikhan8598 3 месяца назад

    response success for the first time after that it keeps on failing ?

  • @hanfiajahangir7262
    @hanfiajahangir7262 7 месяцев назад

    Awesome !! just the thing i was looking for

  • @tehmasipalikhan8598
    @tehmasipalikhan8598 3 месяца назад

    having issue only connects one time to the server

    • @lotwar
      @lotwar 3 дня назад

      I imagine you resolved the issue. But I had the same issue as well so I just answer here in case this happens to more people.
      Under fleet -> *your fleet* -> Scaling settings.
      If you only have 0 - 1 servers available this will happen quickly. I added this too the same amount Servers per machine..
      Maybe not the same issue as for everyone else.

  • @keyzhao1775
    @keyzhao1775 7 месяцев назад

    What flowchart tool are you using?

    • @Unity3dCollege
      @Unity3dCollege  7 месяцев назад +1

      Obsidian, the canvas part

    • @keyzhao1775
      @keyzhao1775 7 месяцев назад

      @@Unity3dCollege thank you! so cool and simple to use

  • @NpXAutobot
    @NpXAutobot 6 месяцев назад

    yessss

  • @AyyoNevNev
    @AyyoNevNev 7 месяцев назад

    Amazing 👍🏾