Create Custom Lobbies With Ease || Unity Lobby Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

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

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

    I can't create and join lobbies, it shows http exceptions such as 409 conflict, too many request, bad request etc

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

      Hi, did you add the cooldown? So it calls some of the Lobbies functions just once per second or so? Extra characters in the lobby code could be an issue as well - forum.unity.com/threads/problem-joining-a-private-lobby-through-lobbycode-joinlobbybycodeasync.1287908/#post-8171102

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

      @@freedomcoding Thanks, will try that

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

      @@freedomcoding And why we used Relay, how can we use dedicated servers along with lobby

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

      @@itachi1115 Instead of connecting the players through Relay you could use Matchmaker to find a match for your entire lobby. This would give you the IP to connect through Multiplay. The code shouldn't be too complicated. It would be just connecting these three services together. I made tutorials on all of these.

  • @unai_r7
    @unai_r7 2 หลายเดือนก่อน +1

    Good video, the only problem is that whenever I try to start the lobby I keep receiving the error "(429) HTTP/1.1 429 Too Many Requests", apparently, what is making the error is "Lobby lobby = await Lobbies.Instance.GetLobbyAsync(LobbyId);", any idea?

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

      Thanks. I was getting the error too and I am unsure about what could be wrong... I have set up all of the cooldowns, so too many requests error doesn't make sense to me. Maybe I missed something. If you find out what is wrong, let me know!

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

    Bad code :(

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

      What exactly is bad about it?

  • @비씨디
    @비씨디 2 หลายเดือนก่อน

    very good video. But How can I disconnect with relay server as a host or client?

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

      Thank you. I haven't tried that. Take a look at the documentation - docs.unity.com/ugs/en-us/manual/relay/manual/disconnection

    • @비씨디
      @비씨디 2 หลายเดือนก่อน

      @@freedomcoding that's the fake doc. As I found from forum, that doc is for low level api not NGO. Tech team said just use shutdown func. Anyway awesome video!!!

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

      @@비씨디 Interesting, thanks for letting me know.

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

    How can I choose the player's outfit before entering the game?

    • @freedomcoding
      @freedomcoding  4 หลายเดือนก่อน +1

      You could store Id of the outfit for each of the players and set the look based on that.

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

      @@freedomcoding Can you make a tutorial video? I will be very grateful for that

    • @freedomcoding
      @freedomcoding  4 หลายเดือนก่อน +1

      @@qkiet2k4 Some time I may make full tutorial series about creating a multiplayer game from start to finish, but don't wait for it as I am not sure when I will get to it.

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

    Hello, nice video! I have a pretty similar system but I am trying to allow the host to change people teams but unlucky according to Unity Docs, only each player can modify its PlayerData not even the host can. Do you know any workaround?

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

      Hi, thanks. I am glad you liked it. Are you using Netcode For GameObjects? If so, you could just send a ClientRPC with the data that should change and the client could then set it on its own.

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

      ​​@@freedomcoding Thanks! Unfourtunetly I am in the Lobby yet, not real connection yet with Relay/Netcode or whatever :'(

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

      @@juanalvear6592 I am sure you will figure it out soon. I also have tutorials about NGO and the logic behind is quite simple. Feel free to ask me if you have any questions.

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

    Good video!

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

      Glad you enjoyed it!

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

    Thanks for tutorial, all working fine

    • @freedomcoding
      @freedomcoding  2 หลายเดือนก่อน +1

      I am glad you liked it!

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

      ​@@freedomcoding U do not meet wirh error " HTTP error , Too many request" ?
      When Joining to lobby and wanna start the relay, Press start button, and firstly i got error "Http error, too many request" secondly press start and woking fine

    • @freedomcoding
      @freedomcoding  2 หลายเดือนก่อน +1

      @@nemethszabolcs9239 Yes I was getting it as well. I should have fixed it... I think it may be something with the LobbyHeartbeat. I would try to give it some delay, so after creating the lobby, it waits some time before sending the heartbeat. But it may be something else. Let me know if you find the solution. It could help other people as well :)