How To Make a Ready Up System - Steam Multiplayer Game in Unity

Поделиться
HTML-код
  • Опубликовано: 6 июн 2024
  • In this video I will be showing you how to implement readying up. This tutorial will cover how to make a readying up system and how to sync this across networks. I will also go over how to check if everyone is ready and if that is the case allow the host to start the game.
    -----Tutorial Links-----
    Previous Video: • How To Display Profile...
    Mirror: assetstore.unity.com/packages...
    FizzySteamworks: github.com/Chykary/FizzySteam...
    Steam Docs: partner.steamgames.com/doc/home
    Source Code: / 61625448
    -----My Personal Links-----
    Discord: / discord
    Instagram: / gabzxd
    Twitch: / officialzyger
    Twitter: / zygerdesigns
    ➤WISHLIST MY GAME:
    store.steampowered.com/app/16...
    ----Time Stamps-----
    0:00 - Intro
    0:13 - Lobby List Item Script
    1:28 - Player Object Script
    3:48 - Lobby Manager Script
    6:50 - Unity UI Setup
    7:18 - Testing
  • РазвлеченияРазвлечения

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

  • @TripalYT
    @TripalYT 2 года назад +4

    I'm loving these, they're so precise and straight to the point. Thanks so much Zyger!

  • @Superspy1764
    @Superspy1764 2 года назад +4

    Thank you so much for this you explain it so well and make multiplayer seem simple.

  • @lukakvlogs1478
    @lukakvlogs1478 2 года назад +3

    Thank you so much for these tutorials!! Im in desperate need of part 4!!

    • @ZygerGFX
      @ZygerGFX  2 года назад

      You're so welcome!

  • @SlavicPickle
    @SlavicPickle 2 года назад +2

    You are literally the best, Zyger! You make Unity networking not so terrifying! Thank you!

    • @ZygerGFX
      @ZygerGFX  2 года назад +2

      thank you too and no problem

  • @thoride_
    @thoride_ 2 года назад

    Love these tutorials, super handy to help me learn how to do some multiplayer. Can't wait to learn how to make actual game elements using this system!

    • @ZygerGFX
      @ZygerGFX  2 года назад

      Glad you like them!

  • @noairdnb
    @noairdnb 2 года назад

    love this series, keep it up!

  • @ushadevisoni7792
    @ushadevisoni7792 2 года назад

    That was amazing thanks!!!

    • @ZygerGFX
      @ZygerGFX  2 года назад

      thank you and np

  • @NeoLoveCookie
    @NeoLoveCookie 2 года назад

    You're a genius

  • @channeltrash6257
    @channeltrash6257 2 года назад

    Hi Zyger! I really like your videos and you are insanse. Would you like to make longer videos whee you explain steameorks basics? It would be very helpful and we would appreciate it

  • @Khaled_khalil
    @Khaled_khalil 2 года назад

    EPIC

  • @schurup2994
    @schurup2994 Год назад +2

    Bro you are so fast that I can't even keep up x0.75 💀

  • @hammyham
    @hammyham 8 месяцев назад +1

    I know im late to this but i have a question. when the host closes the game the clients will be disbanded like it should but when a client tries making a server the button doesnt do anything. How can i fix this?

  • @ooheureka
    @ooheureka 2 года назад

    first:) nice vid too!

  • @pvtrickkirk
    @pvtrickkirk Год назад

    So i got it working and tested it with my friend. Only issue is, if he presses and then unready again, the "start game" button doesn't become uninteractable again. Any ideas how to resolve this?

  • @fazin85
    @fazin85 Год назад

    👍

  • @rabiehaddad1925
    @rabiehaddad1925 Год назад

    I have already convert my third person shooter to multiplayer and i am searching for a lobby system is yours working in my case

  • @luki6380
    @luki6380 Год назад

    error CS0106: The modifier 'public' is not valid for this item ---- I write everything like you and this error shows.

  • @dkdnshdhhd9927
    @dkdnshdhhd9927 2 года назад

    Can you add lerning how make shoot in unity 3d

  • @coolorphans
    @coolorphans Год назад +6

    If anyone is having the error: "Disconnecting connId=0 to prevent exploits from an Exception in MessageHandler: NullReferenceException Object reference not set to an instance of an object." Make sure to set localPlayerController to the PlayerObjectController prefab in LobbyController script inside the Lobby Controller game object in the Lobby Scene.

    • @azazel7502
      @azazel7502 9 месяцев назад

      You helped a lot! Thank you so much sir!!!!

  • @nixonrulez
    @nixonrulez 12 дней назад +2

    ***** hasAuthority should be isOwned for the people with newer version of Mirror *****

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

    Seems like a pretty easy and quick process. So why did it take PAYDAY 3 five months to implement this?

  • @lukakvlogs1478
    @lukakvlogs1478 2 года назад +2

    Should there not be a way to leave the lobby? Ive been trying to figure out a good way to do it but I cant figure it out:(

    • @ZygerGFX
      @ZygerGFX  2 года назад +1

      There are methods. I'd recommend using the normal mirror way to leave lobbies. I'm pretty sure there's documentation about it on mirror. But at some point I might add it in a tutorial. Maybe like an extra things tutorial.

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

      @@ZygerGFX Was there a tutorial made for this Iv'e been struggling to do it myself

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

      Did you have any luck in finding a way to leave the lobby

  • @Dara-gq6jl
    @Dara-gq6jl 2 года назад

    5:52 just for my sake

  • @Rhys510
    @Rhys510 Год назад +1

    My ready up button doesn't work, stuck saying ready... Not sure if anyone else has the solution?

    • @Rhys510
      @Rhys510 Год назад +1

      Solution Found. You need to have a EventSystem in your hierarchy for buttons to be interactable.

  • @trublgame2470
    @trublgame2470 2 года назад

    It doesn´t work, i dont know if it´s because the codes have changed or what, but it doesn´t work

  • @XboxPlayerPL
    @XboxPlayerPL 2 года назад +2

    How about an option with the late joiners?

    • @ZygerGFX
      @ZygerGFX  2 года назад +2

      what do you mean ? could you elaborate?

    • @XboxPlayerPL
      @XboxPlayerPL 2 года назад

      @@ZygerGFX Quote from the Mirror's doc: "Note that Mirror's Room system is not designed to allow late joiners / spectators once the game has started." mirror-networking.gitbook.io/docs/examples/room

    • @XboxPlayerPL
      @XboxPlayerPL 2 года назад

      It means that after the game started, other players can't join the game. That's the problem. I talked to people in Mirror and they told me to use Multiple Additive Scenes if I want this feature. But I don't understand how to implement this. It's not well documented. Maybe you would be interested in covering this topic?

    • @XboxPlayerPL
      @XboxPlayerPL 2 года назад

      There is literally 0 information on that on RUclips.

    • @ZygerGFX
      @ZygerGFX  2 года назад

      @@XboxPlayerPL I've personally not explored the topic myself. but I've made a game before that will start and users can join just fine even if they weren't in the lobby prior. only issue is that the lobby is what generates the players and gives them all the steam data. So unfortunately if your planning on using steam stuff like I am here this wont be possible. But mirror on itself should be fine.

  • @jalzinanutshell1822
    @jalzinanutshell1822 2 года назад

    Wait do i need to upload it on steam to do it?

    • @ZygerGFX
      @ZygerGFX  2 года назад

      watch the firstly video where i go over how to test the game. eventually you will want to publish on steam though right ? since thats how others will be able to play your game.

    • @derluftiger
      @derluftiger 2 года назад

      no

  • @Duxkd
    @Duxkd 3 месяца назад +1

    The name 'hasAuthority' does not exist in the current context

    • @petkostankov3780
      @petkostankov3780 2 месяца назад +5

      Change it to "isOwned". It used to be hasAuthority, but it has been changed.

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

      @@petkostankov3780 Thanks!

  • @fanyiid4781
    @fanyiid4781 2 года назад

    My from Indonesia, pliss exsemple unity Dialoge + image to game visual novel

    • @ZygerGFX
      @ZygerGFX  2 года назад

      I already habe a tutorial on this. You can check my channel its a dialogue video

  • @JacksonAcademy1
    @JacksonAcademy1 2 года назад +2

    female brackeys

  • @LynJuice
    @LynJuice Год назад

    These tutorials are cool, but comming from a C++ background some things you are doing just annoys me, for example the check if All ready function could be made to a bool function and handled in update button.

    • @ZygerGFX
      @ZygerGFX  Год назад +3

      yes that's true but there's a few reasons why I didn't do that. Firstly this is mainly a tutorial for beginners so I tries to make it as simple as possible. Secondly by doing that I would have to change the system in which I am sending the data to all clients /server which once again not an issue but it makes it harder for people to follow. Also if I were to make my own multiplayer game I would definitely change a lot of things. thanks for the suggestion though.

  • @Chrizzonator
    @Chrizzonator Год назад +1

    So I don't know what I'm doing wrong, but I have to
    LobbyController.instance.updatePlayerList();
    Always set in the PlayerObjectController and not only on the client, otherwise it doesn't work for me.
    The value is set correctly but the gui does not update when I do not execute this.