Announcement

Collapse
No announcement yet.

Custom HUD and Pawn makes the game not initiate the engine when launching/building?

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

    Custom HUD and Pawn makes the game not initiate the engine when launching/building?

    Hey!

    I'm trying to launch/build my game, which runs great in-editor. But when I do, I get a black screen for a few miliseconds, after which i get the message "Launch complete!!".

    I think I managed to isolate the problem somewhat, because launching it with the default gamemode works fine. Running with my own HUD and Pawn class, does not. Even when there's not any code hooked up in them, it doesn't work (I can't run it with only one of them either, both seem to mess it up)

    The log when I launch with default things in my gamemode looks like this http://puu.sh/83BXY.png looks relatively fine to me.
    The log when I launch with my HUD and Pawn looks like this http://puu.sh/83CgE.png Notice how the "Game Engine Initialized" row isn't there. What the heck could cause that? I'm at a total loss

    Thanks for your help!

    #2
    Update!
    I tried running in Standalone. It's playable. The pawns code runs fine, but the Event Receive Draw HUD in the HUD class is never called upon (or any other event, like Event Tick for that matter). The HUD isn't drawn regardless of HUD class or Pawn class I use... super weird...

    Comment


      #3
      Are you loading the correct map when running standalone? You either need to specify the map on the command line, or set a default map in the Project Settings.
      Lead Programmer - UE4 Animation/Physics/Audio Team - Epic Games
      Twitter: @EpicJamesG

      Comment


        #4
        Yeah, the correct map is specified in the project settings

        Comment


          #5
          Okey, now I seem to be getting some other kind of errors... The log says Assertion Failed. I feel like I'm getting different errors all the time, and I'm getting very confused
          The log: http://puu.sh/84Cyk.log

          I should note that this does not appear to be a problem with my computer, because others on my team have the same problem.
          Last edited by MANdersson; 04-11-2014, 12:37 PM.

          Comment


            #6
            I'm afraid it's not easy to tell what the problem is from the log. It can't find a lot of slate resources, which makes me think some files or folders are missing. How are you creating this standalone build?
            Lead Programmer - UE4 Animation/Physics/Audio Team - Epic Games
            Twitter: @EpicJamesG

            Comment


              #7
              When I say standalone, I mean http://puu.sh/85TfF.jpg
              The logs are from playing using the Launch-button.
              Here's a spreadsheet to what happens with different Game Mode settings: Spreadsheet

              And here's my Pawn and HUD blueprints (exported): http://puu.sh/85Tri.rar

              It's so weird that I get different results from playing in standalone game...

              Thanks for trying to help me!

              Edit: Also, none of the files or folders mentioned are actually missing
              Last edited by MANdersson; 04-12-2014, 02:50 PM.

              Comment


                #8
                I'm having the same issue. Any resolution to this?

                Comment


                  #9
                  Hi ridley075,

                  Please make this a post on the answerhub at http://answers.unrealengine.com so it can be tracked. Thank you!
                  Adam Davis | Marketplace Support | Epic Games
                  How to report a bug? | Installation & Setup issues? | Answerhub Bug Reports | Twitter

                  Comment

                  Working...
                  X