Announcement

Collapse
No announcement yet.

References for hosting/joining/lobbying in blueprint?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    References for hosting/joining/lobbying in blueprint?

    The blueprint networking tutorials from Epic on YouTube are great for "how do I network my actual gameplay."
    However, the surrounding bits aren't shown there. If I have a menu with "join" and "host" menu items, what nodes do I use to kick the current game instance into "listen server" or "join as client" mode?
    How do I get notified of events (players joining, me as a client being joined, lost connection, etc ?)

    Also, what is the "right" place to put data that I want to persist between traveling through different maps/levels?

    #2
    BTW: the documentation for this area lives here:https://docs.unrealengine.com/latest...des/index.html

    I wonder if there are some additional references anywhere?

    Comment


      #3
      The Event OnPostLogin node returns the Player Controller of a player that has just connected.

      As for a player losing connection, that would have to be determined from the Player list or something, there is no node for it from my understanding.

      The GameInstance class blueprint will allow you to hold data that will survive level transitions. When you create your own GameInstance Blueprint you need to set it to be used by the Engine in the Project Settings/Maps & Modes/Game Instance
      Im an Moderator on UnrealSlackers Discord! Which is a Community driven group of likeminded people here to discuss UE4! Join UnrealSlackers on Discord!

      Comment


        #4
        Originally posted by DevilsD View Post
        The Event OnPostLogin node returns the Player Controller of a player that has just connected.

        As for a player losing connection, that would have to be determined from the Player list or something, there is no node for it from my understanding.

        The GameInstance class blueprint will allow you to hold data that will survive level transitions. When you create your own GameInstance Blueprint you need to set it to be used by the Engine in the Project Settings/Maps & Modes/Game Instance
        How are you supposed to use this event ?? The node has no execution pin attached To it??

        Comment


          #5
          Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	134.6 KB
ID:	1086858

          It is part of the GameMode Blueprint Class.
          Im an Moderator on UnrealSlackers Discord! Which is a Community driven group of likeminded people here to discuss UE4! Join UnrealSlackers on Discord!

          Comment


            #6
            Just know that the game mode is not accessible by client players, you will just receive errors if you try to access from client. Also, EniGmaa, I've seen moderators complain about signatures much shorter in height than yours, you should probably size it down.
            Marketplace Assets

            Advanced Mobile Input: Marketplace Page | Support Thread ――― Easy Input Remapping: Marketplace Page | Support Thread
            Multiplayer Blueprint Chat System: Marketplace Page | Support Thread ――― Closing Credits System: Marketplace Page | Support Thread
            Minesweeper Template: Marketplace Page | Support Thread ――― Maze Creator: Marketplace Page | Support Thread

            Comment


              #7
              Originally posted by Jamendxman3 View Post
              Just know that the game mode is not accessible by client players, you will just receive errors if you try to access from client. Also, EniGmaa, I've seen moderators complain about signatures much shorter in height than yours, you should probably size it down.
              Yeah I didn't realise it had come out so big an why the rules we're I got in trouble but it's sorted now lol

              Comment


                #8
                Hey there,

                i could give you a lot of information, but right now i have no real time for that.
                If you want more Blueprint Multiplayer Examples, check out my Free Multiplayer
                Project that i released yesterday (the download link can be found in the Forum thread
                beneath the video).



                https://forums.unrealengine.com/show...sources-by-eXi
                Open for contracted work | C++/BP (incl. Multiplayer) | Tutoring | VR

                My UE4 Blog/Page with Tutorials and more: Hit me for ALL the things!
                (Including 100+ Pages Multiplayer Network Compendium to get you started.)

                Comment

                Working...
                X