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.
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:
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.
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.