Announcement

Collapse
No announcement yet.

BP UMG Menu System 4.7 /w network

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

    BP UMG Menu System 4.7 /w network

    I, like many others, have been fiddling in Blueprints trying to get a main menu system, with in game menu, and network host/join all set up. I have seen loads of examples, and I have watched that twitch feed where they show an example they did (which they have not released the BPs for). So I set about to take what I learned, as a UE4 noob, and try to put something together.

    I have the network host/join stuff there, though I can not see the difference between having LAN on or off, same results.

    I also am having a strange issue, when the game starts a single click on a main menu button is fine, takes you where you should go, but once you got to a different screen then back to the main menu, it takes two clicks on a button for it to work, like the first click is just setting focus. Any ideas?

    I also set a check in the playercontroller for the ESC key being pressed to bring up the in game menu. Works... the first time you bring it up, but if you hit 'resume' so the menu closes, esc never brings it up again. Again, any ideas?

    Anyway, screenshots:

    Main Menu:


    Join Server when searching for servers:


    Join Server when no servers found:


    Join Server when servers found:


    Host Game menu:


    The options and settings menus are just empty with a return to main menu button for now.... Used a wallpaper and font I found on line to try to 'spice it up' a bit just to get people seeing everything does not have to look plain.

    I could not find what the minimum stuff needed to pack up to pack up a project to share is, so I did my best but the .7z is still like 700+ megs. But I based it on the fps template that comes with the editor, and it additionally has the TPS body and animations in there and set up so you see arms, but other players see the full body.

    Tried to put it on my dropbox, but that is running painfully slow, uploading somewhere else and will edit with a link when it's done.
    Attached Files
    Acclivity Game Studios. Making a BP FPS, Tutorial Series on Blog : On Unreal Wiki : Twitch

    #2
    Here is the file...

    BP_MPMEN_FPS

    forget that one, too big, got rid of loads of stuff, down to 11 megs:

    https://www.dropbox.com/s/aq2jk40maj...%204.7.7z?dl=0
    Last edited by arbopa; 03-02-2015, 10:52 AM.
    Acclivity Game Studios. Making a BP FPS, Tutorial Series on Blog : On Unreal Wiki : Twitch

    Comment


      #3
      nice work will test it out later

      Comment


        #4
        Hey cool ... thanks for this ... about to start this for my project ... heheheheeheheh ... much appreciated. 8-}
        Quinton Delpeche
        Founder - Gobbo Games | Designer - The Colony 2174 (Board Game) | Developer - Riders of Asgard

        Comment


          #5
          If anyone can figure out the double click button issue... or knows how to better capture the esc key when in game to bring up a menu and have it actually work, let me know.
          Acclivity Game Studios. Making a BP FPS, Tutorial Series on Blog : On Unreal Wiki : Twitch

          Comment


            #6
            I'll have to download it and give it a look over some free time. Thanks for sharing !
            Youtube
            Machine Learning C++ Plugin
            Lindenmayer System C++ Plugin

            Comment


              #7
              This looks pretty cool. Not going to be downloading yet at 600mb though. :P

              As for the double button click that's caused when you have multiple buttons/widgets stacked on top of each other. Double check how its getting added to the viewport and make sure multiple aren't getting added.
              Looking for blueprint tutorials? Then visit my blog... voxagon

              Comment


                #8
                Thanks for sharing, as for reducing the size of the download, you can leave out the Saved and Intermediate folders. Also you could leave out Content\MandT, this reduces size considerably but the example level will be plain and boring.

                Comment


                  #9
                  There are 3 nodes about focusing on blueprints, I've encountered this problem before and almost gone crazy about it You can search for set input mode (Game only) (UIOnly) (Game and UI). Btw thanks for the project man. This is great contribution to community.

                  Comment


                    #10
                    Thommie, yeah, I thought about the material and textures folder, thought I cleared the others.

                    theknoppix, yeah, I messed with those. It seemed if I had a 'path' the blueprints executed where you hit UIOnly twice, it caused the double click thing. Oddly, when I compile down the ShooterGame to an exe I get the same behavior.

                    Ah, and it's down to 11 megs...

                    https://www.dropbox.com/s/aq2jk40maj...%204.7.7z?dl=0

                    When I get a chance I will be making some changes, I think I solved a few problems in a test version, just need to copy some of the changes over.
                    Last edited by arbopa; 03-02-2015, 10:53 AM.
                    Acclivity Game Studios. Making a BP FPS, Tutorial Series on Blog : On Unreal Wiki : Twitch

                    Comment


                      #11
                      I understand after checking your project. Tried couple of things but it didn't work for me too. It's really weird that, on start it focuses on your main menu properly, adding other widgets to viewport doesn't require any focusing action but starting the game from beginning (by making your main menu visible again) breaks everything nonsensically. And it only happens on return to main menu :/ Still trying to figuring out.

                      I'm trying to debugging focus lost with On Focus Lost on umg classes. When i click to settings button for example, it loses focus from main menu. But without clicking any blank space on settings menu, returning back to main menu doesn't lose focus on settings. But before returning, clicking to any blank space on settings menu focuses settings. I hope i didn't tell it so complicated because of my english. Even though it doesn't focus on settings, everything works properly on there. Maybe focus lost debugging helps you a little bit to solve this problem because i really wonder the solution.
                      Last edited by theknoppix; 03-02-2015, 11:57 AM.

                      Comment


                        #12
                        Awesome contribution to a very useful feature for games that need multiplayer support! Keep up the learning!
                        Andrew Hurley
                        Engine Support Technician

                        Wiki Tutorials Page

                        Comment


                          #13
                          @Theknoppix ... I had fiddled with it a bit, and made some changes related to UI vs game control. And ended up setting it so it reloads the 'main menu' map, which seems to get it all working right.

                          Also have the ESC for the in game menu working properly.

                          Need to go back and add in error messages where appropriate, and perhaps rather than 'main menu' in the in game menu, change it to 'leave game' and provide a 'are you sure' answer, as going back to main ends the session...

                          Is updated on dropbox... https://www.dropbox.com/s/aq2jk40maj...%204.7.7z?dl=0

                          @Andrew, thanks.
                          Acclivity Game Studios. Making a BP FPS, Tutorial Series on Blog : On Unreal Wiki : Twitch

                          Comment


                            #14
                            @arbopa I'm glad you solved the problem even though it's a little bit hacky. I'll try to make same fix for mine because i don't want to download again. Thanks again.

                            Comment


                              #15
                              Yeah, even though it's a level with nothing in it, you can see the delay when you hit the button. I will have to dig deeper for sure to get it figured out. Thanks for your input.
                              Acclivity Game Studios. Making a BP FPS, Tutorial Series on Blog : On Unreal Wiki : Twitch

                              Comment

                              Working...
                              X