Packaged Game Doesn't Load Default Game Level on Start

When we package our game (Windows x64) with the Default Game level set in Editor (DefaultEngine.ini) the Map isn’t loaded on start up of the game executable.

I’ve attached the log, perhaps there is something you guys can find that we’ve missed, both the Packaging and the Games log.

Appreciate the help!

-Craig

Hi Rheq,

The Editor StartUp Map will load the map chosen into the level viewport when editing the project. In your case, the Map_MainMenu should be loaded when you open the project .exe after packaging. Is this not occurring? If not, what map is being loaded?

Yeah we are expecting the Main Menu map to be loaded on the .exe being opened, instead we are getting a black screen. Using ‘stat levels’ console command it gives us this:

93904-mapname.jpg

Anyone have a fix for this?

Have you changed the name of the map recently or made any updates? Try running fix up redirectors to see if it fixes the error.

I tried on a fresh map, same issues. Fixed up all the redirectors in the package and the problem persists.

  • Have you tried this in a clean, blank project with no additional content or is it limited to this project?

  • What device are you deploying to?

Yeah, it seems to be limited to just this project, we’ve built other projects before with no issues. We are building for Win64.

Can you send me the project? I’ll be happy to see if I can reproduce this error on my end.

Gutting the project to send over I was able to isolate the issue to our game instance. Here is the cut down project, it should fail to work built:

link text

Hey Rheq-

I’ve taken a quick look at the project and one thing that jumps out at me is that the packaged version interacts with Steam where playing in PIE doesn’t. I’m still looking over the project to find why the game instance is affecting the main menu, but you may want to look at your Steam code to see if there is a connection there.

Yeah - this is intentional because we use Steam for our multiplayer session creation, and as PIE doesn’t do session creation it was pointless to use the subsystem. The main menu map itself doesn’t utilize the Steam subsystem, only the points past that (host game, join game).

Standalone from the editor works on the main menu with both the Steam Subsystem or Null if you aren’t logged in to Steam. The packaged game won’t work with Steam or the fallback.

Hey Rheq-

After additional testing I found that a call to the parent of ULunarGameInstance::StartGameInstance() was missing. Adding a call to the parent class will fix the problem.

Cheers

Fantastic - that works a treat. Class needs a good tidy up too.

Cheers
Craig