Opening level from menu works in editor but not in packaged game

hello all… having some frustrating times today… :frowning:
game works fine in editor but not once packaged.

my menu has

  • Single Player Game
  • Host a Game
  • Join a Game

Single player brings you to a character select screen, and then you click on the map you want…char and map selection are stored in variables on custom gameinstanceBP…then hit start game (also from game instance). The map is loaded with the character.

Same happens on host game.

In editor or standalone this works perfect. When I package the game though, single player start game button does nothing when clicked… In host game, it brings me to a blank pop up with an OK button.

Is there a way to debug a packaged developer game? The issue is obviously happening at the open level (sp) and the open level after the create session…i think in mp

Any ideas?

First two pics are of the menu button that starts the game… first single player, second multiplayer host
The next is of the game instance where the map is opened.
The last is of the packaged result when host game tries to start.

I found logs for the game… I highlighted what I think the issue is… but I still dont know how to resolve… or why it would only in the packaged version occur.

Keep in mind the main menu works fine. It goes to the MPMenu and the SoloGameMenu as per normal.

the back to main menu button works fine and the quit button works.

It’s the start game button on the MP or SP game menu buttons that fail. That is where the open level comes into focus. I think it maybe cant find the level called Map01 ? but it does in the editor… so I wouldn’t know how to change it so it can in the packaged version.

[2015.05.25-02.06.26:718][360]LogScript:Warning: CreateSession - Invalid or uninitialized OnlineSubsystem
[2015.05.25-02.06.26:718][360]LogScript:Warning: CreateSession - Cannot map local player to unique net ID
[2015.05.25-02.06.26:718][360]LogScript:Warning: DestroySession - Invalid or uninitialized OnlineSubsystem
[2015.05.25-02.06.26:718][360]LogScript:Warning: DestroySession - Cannot map local player to unique net ID

I solved this.

The first issue was that the build wasnt complete. I had to rebuild the project from visual studio, the build inside ue4 editor was missing stuff… that explains why it couldnt find the map.

the second issue was more complicated.

I had the

[OnlineSubsystem]
DefaultPlatformService=Null

in the DefaultEnginie.ini file.

I had to go to the *.build.cs file in: ~Documents\Unreal Projects\ProjectName\Source\ProjectName

and added this, then buit the project again

//added by me
  	        PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubsystem"});
	        PrivateDependencyModuleNames.AddRange(new string[] { "OnlineSubsystem", "OnlineSubsystemNull" });
	        DynamicallyLoadedModuleNames.Add("OnlineSubsystemNull");
//added by me

Most of the stuff is working now

I get an error with that:
Info ERROR: Module rules for ‘RTS’ should not be dependent on modules which are also dynamically loaded: OnlineSubsystemNull

Any advise?