UE4 Animation Replication Tutorial | Multiplayer - Client-Server | Blueprints | UE4.26.1

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

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

  • @Kekdot
    @Kekdot  ปีที่แล้ว

    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/

  • @bilbolaggin1980
    @bilbolaggin1980 3 ปีที่แล้ว +6

    Awesome tutorial ! Thank you!

    • @Kekdot
      @Kekdot  3 ปีที่แล้ว +3

      Great to hear! More multiplayer tutorials coming very soon!

    • @bilbolaggin1980
      @bilbolaggin1980 3 ปีที่แล้ว +5

      @@Kekdot Wow! I can't wait for it :) ! Your tutorials are so easy to understand... keep up the great work guys!

  • @whatzthat7744
    @whatzthat7744 2 ปีที่แล้ว +4

    Awesome!! Could you do a tutorial on how to play different animations based on the perspective.... 1st person arms and 3rd person full body.
    Like the player itself sees only the arms but when other players look at you they see the full body?

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

    not working for me, For me the thinking animation is happening on both the character

  • @XxKherxX
    @XxKherxX ปีที่แล้ว

    Amazing! Thank you!

  • @philharland9591
    @philharland9591 ปีที่แล้ว

    Thanks, very useful!

  • @ReenoMoon
    @ReenoMoon 3 ปีที่แล้ว +3

    Its awesome, but for some reason only the server can be seen making animations. on client they can only see their own and servers animations. server cant see client anim either. any tips on what i might need to check?

    • @arankasih1162
      @arankasih1162 2 ปีที่แล้ว +1

      same here, any fix?

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

      Hi Have you found a solution?

  • @rifthaven
    @rifthaven ปีที่แล้ว

    I use your top down click to move multiplayer template, the 3rd one, and I am unsure which BP I need to be using to do this replication stuff.. is it Server_AI_Character? or something completely different?

    • @Kekdot
      @Kekdot  ปีที่แล้ว

      Yeah server ai character

    • @rifthaven
      @rifthaven ปีที่แล้ว

      @@Kekdot Thanks, but for some reason things I put inside the Server_Ai_Character just seem to not do anything? Is there a reason for this? I followed this video up to the string texts of Is Thinking and Stop Thinking and it doesn't do this, I have also tried to setup other Input events on this event graph and nothing happens :(

    • @Kekdot
      @Kekdot  ปีที่แล้ว +1

      So as the player you do not own that character and thus you cant directly execute code on it.
      You can instal logic on it however, which you indeed need to do. But then you need to communicate from your player controller to the character to execute logic on it as the AI player controller is the one owning the character.@@rifthaven

    • @rifthaven
      @rifthaven ปีที่แล้ว

      Thank you so much I'm going to go do this!
      @@Kekdot

  • @erniemey5432
    @erniemey5432 3 ปีที่แล้ว

    Thanks , this was a great help.

  • @jakedubs
    @jakedubs 2 ปีที่แล้ว

    Hey Kekdot, I am curious. Is there a way to do this with messages via an interface instead of casting in the Anim Blueprint?

    • @MarviciMedia
      @MarviciMedia ปีที่แล้ว +1

      Set up a Blueprint Interface and give it a function. I usually call this PlayerCharRef. Give the function an Output and select your character blueprint. I call this output PlayerCharRef as well. Save it. From there attach the interface to the same character BP you selected in the interface. Open the interface in your character blueprint and then drag out the output pin and type in self. Save it. Now you have a reference to call to your character without casting

    • @MarviciMedia
      @MarviciMedia ปีที่แล้ว

      To add, no matter what I’m doing for a project, I always set up a BPI_PlayerCharacter interface to reference my character to avoid casting for simple references and will do the same thing for most of my parent actors if I need to do simple referencing so I can avoid casting and hard references to maintain performance.

    • @Kekdot
      @Kekdot  ปีที่แล้ว +1

      Keep in mind that interfaces are less performant than direct casts. (Optimization wise casts are more performant).
      (Interfaces are more convenient to use however haha)

    • @MarviciMedia
      @MarviciMedia ปีที่แล้ว

      @@Kekdot I can’t say I know enough to agree or disagree 100% but there is many devs out there that say the opposite when it comes to larger scale games. Not saying casting is horrible by any means but I’ve heard more say that you shouldnt do casting with hard references and use interfaces instead. But again you could totally be right because your experience is far beyond mine! Lol

    • @Kekdot
      @Kekdot  ปีที่แล้ว +1

      ​@@MarviciMedia haha yeah, I don't know the exact details either unfortunatly.
      I stick by the docks where they explain the communication options in this order and when to use what. That's where I got my conclusion from (I might be wrong):
      1. Direct communication (Level blueprint)
      2. Casting
      3. Interaces
      4. Event Dispatchers
      See more here:
      docs.unrealengine.com/5.1/en-US/actor-communication-in-unreal-engine/
      They don't specify the performance only the order of adressing these (Maybe on their complexity level).
      I use that advice to determine which communication option is best per scenario.
      As an Indie dev I have never ran into performance issues. I always like reminding myself that Fortnite runs with 50.000 replicated actors at once and a massive amount of code and complexity compared to my projects : P.

  • @tagercraft99
    @tagercraft99 ปีที่แล้ว

    I replaced the code I had with yours and my animation still works but it doesn't play on the client, it's server execute animation and the client is just a camera around, it should be able to just watch the animation play, any idea what I might be missing out?

  • @mennasamy1103
    @mennasamy1103 3 ปีที่แล้ว +1

    Dedicated or listen?

    • @Kekdot
      @Kekdot  3 ปีที่แล้ว

      Works on both

  • @JOKR31033
    @JOKR31033 ปีที่แล้ว

    nederlands?

  • @crystalsix9014
    @crystalsix9014 ปีที่แล้ว

    thanks a lot! +1sub

  • @Michel2003g
    @Michel2003g 3 ปีที่แล้ว +2

    you're dutch arent you?, your english accent makes me think that

    • @Kekdot
      @Kekdot  3 ปีที่แล้ว

      True! We’re Dutch

  • @igorcosta6097
    @igorcosta6097 2 ปีที่แล้ว

    Muito Bom!