Managing Connected Players | OnPostLogin, OnSwapPlayerControllers | UE5 Multiplayer Tutorial Series

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

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

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

    Hey guys,
    👨‍🏫 My Patreon link:
    www.patreon.com/kekdot
    Download Project Files | Premium Tutorials | Courses
    💦 Get our Game on Steam | Kekdot Center:
    store.steampowered.com/app/1487180/Kekdot_Center/

  • @VizibilityZero
    @VizibilityZero Год назад +14

    This was quite literally the best explanation of multiplayer in ue I've seen on the internet, easy to follow, easy to understand, reason and information behind every concept, I will definitely recommend this to others.

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

      this series has taken me from barely getting by to a firm grasp of what i need to do in my project. THANK YOU SO MUCH Kekdot!

  • @jakedubs
    @jakedubs 2 года назад +17

    I really like the detailed explanations. It helps a lot.

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

      Glad to hear! I’ll keep them coming

  • @Jaysinxe
    @Jaysinxe 10 месяцев назад +1

    You're tutorials on multiplayer are so helpful. Thank you!!!

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

    That was super clear explanation, I hope you can make more video about this series, thanks you

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

      Will do

  • @구원자-j8m
    @구원자-j8m 2 года назад +1

    I need this explanataion. When I opened MBLS, it totallay looked like rocket science. Thank you Kekdot😄

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

      hahaha, enjoy!

  • @christofferwinterjenssen5784
    @christofferwinterjenssen5784 2 года назад +5

    Continue with the great work guys.
    Kind regards Chris

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

    Really great series with all the framework justification

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

    Thanks for this, please do continue the series! waiting for next video

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

    So good, hope you can make a complete mini multiplayer game tut one day

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

    Thank you! Very clear and cannot wait for the next video, Make it a "Part" Series, Your explanations are very straight forward and understanding. The best videos ive seen on this yet.
    - Question
    When I load my character into a single player level, and then load a new level into a multiplayer session, What default classes should be changed in the updated Gamemode defaults?

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

      I recommend setting your Game Mode,
      Game State, PlayerState, Player controller. And set the default pawn to none, and spawn the character with code via a GameMode function, which you call from the beginplay of your PlayerController.
      Glad you enjoy it! Nice to hear your nice feedback. More coming this weekend.

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

      @@Kekdot A clearly explained and understood comment. Thank you much.

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

    What a fantastic tutorial ! Impressive.

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

    Nice tutorial, well done.

  • @m.r5380
    @m.r5380 2 года назад

    Great video, looking forward to the next ones!

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

    Omg this video and discussion on next vid is what i neeeeeed! The only thing left i really really really need in my design is "account mgmt". What is the best method of accpunt creation for server/client? Website? I dont want to use EOS or Steams etc

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

    I love the Content very insightful
    I was wondering when you're going to work on the player state and player controller
    I can't wait for more of your videos

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

      Coming soon! (This week I hope)

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

      Awesome!!
      Can't wait for it I've been stuck with some issues with a turn based game in VR and i think your next video will help me greatly thank you soo much

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

      @@Kekdot Did that video ever get done? I don't think i saw it anywhere on your channel videos...

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

    Hello @Kekdot
    This is a great explanation for the handling of players. I am trying to use seamless travel from the game mode, but I am finding that with this setup it doesn't quite work. I followed the instructions in the documentation, but I noticed that the player list gets messed up when I try to keep track of data associated to the player controllers across level. Should I be using the "Handle Starting New Player" event in the game mode to populate the PC array? Do player controllers change during seamless travel?
    Thank you! :)

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

    Just wanted to ask, why you didn't connect the Player Array For Each Loop to any event?

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

    Thank you!

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

    I'm keeping a copy of player controllers both as a base reference and as the casted controller, that way I can cast the originals to the new controller when going from a lobby to the game. Hope it works out like I hope.

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

      If you want to get the originals at any time, you can also simply use the Players variable from the default available variables from the Game State. That might be easier for you in this case 😄
      Try typing Get ‘Player Array’ from the Game State.

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

      @@Kekdot Does this work from any game state?

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

      Yep

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

    what if you have lobby game mode with a player controller , and an in game gamemode with its player controller , how does that node "on swap player controller " work in that case ? , Thanks for the tutorial

  • @heqiqi-qb5wz
    @heqiqi-qb5wz Год назад

    If there are 8 local players, on the same big touch screen, 8 players interact at the same time, how to configure? thanks a lot!

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

    hey mate can you make a tutorial on how to add names on top of players when they join automatically and make it work with your chat product? I am having to manually make names for my players. I want them to be able to use their epic id atleast. thanks!

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

      To use the epic ID name, simply hook up the Player State’s Player Name variable.

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

    Hello I have a big problem with what you done, my gamemode get his variable reset each time on postlogin get called so AllPC's is always of length 1 and if I have a counter, it's always 0.
    Anyone has a solution

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

    I wonder: May it also be possible to just cast to game state and get the PlayerArray from there? What would be the difference?

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

      Hi there,
      Yes that is also possible! This is a technique for inside of the game mode. It’s not mandatory, it simply an example of how one can handle having an overview of players in the Game Mode directly.

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

      @@Kekdot ah okay thank you :) I have a way better understanding of the multiplayer framework because of your work :) helps a lot

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

    Is there a reason you're not removing the old PC before adding the new PC ?

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

      12:23
      After changing the level, GameMode will be created again with empty array of player controllers, and event OnSwapPC would be called on this new GameMode, you dont need to remove old PC then

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

    Hi, In case I want to pass variables from the last client map from which the player is connecting to a dedicated server, which functionality should I use? I have a menu from which a player connect to the dedicated server. It's a lobby map in the server and based on the menu selection of the user, I want the loby to take him to matchmaking.

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

    It has been impossible for me to get "Simple Move to location" and "AI Move To" to work in a multiplayer game. Any possibility of you doing a tutorial along this line ?

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

      You sure you using a nav mesh in your world. Really all you need is a navmesh and then plugin your ai controller.

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

    Hello Kekdot, quick question: does this setup works for dedicated server too?

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

      Yep in essence all the same stuff. This is all just server side logic.

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

      thank you Kekdot! The only thing Im not able to achieve right now is that every player gets assigned his personal playerController once a session is created on a dedicated server hosted on GameLift, do you have any idea why? Thank you

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

    I understand but i have a Question. Maybe somebody can help. What if i want to disable the input of a Player that is a Client Controller? I cant get it. It works if i want to disable the input of the Player who is the Server...but not Client.

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

      I Tried that with a RPC but it dont work

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

      I can only make it if the Player push a Button to Do that as an Event. But if i want Do that in the Game Mode it wont work with an event

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

    Hey man just a quick questions, this multiplayer asset is it cross platform or just for a pc ?
    and is it online or just local (lan)

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

      It’s fully replicated so you can make it cross platform with any platform of your choice. Simply implement your bewished subsystems.

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

      ​@@Kekdot Just some more questions : ), because I really want to make an online game and probably gonna buy this asset/plug-in
      Can I make my own game and add this online functionality inside it?
      does this support multiple levels simply (is it dedicated or listen)?
      Hope you answer all the questions

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

    I still dont find any use for the player state. I believe everything can be done without it.

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

    👍

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

    if any one having issues with this
    someone may want to run a server event on an actor as a client (that doesnt work)
    basically u can only do that if u own that actor (so what i do is set the owner to that character and then run the event) this is not a good idea for obline pvp games but if anyone have a better way pls share with us

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

      Hi there,
      This is actually not the case.
      Simply ensure that you don't call a direct RunOnServer node from the Client side of the character or playercontroller etc.
      So in short:
      First you Call an event on for example your character that is a simple offline event, that event then calls the Character's Server version of that event. Now that we're on the server, that server version event can simply call a server event existing on whatever actor without having OwnerShip of it since the Server owns everything.
      What you are doing is having the local client call server events on actors it doesnt own. That indeed fails.
      So go from local, to server, to server on actor.

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

    fünction xD