Open Level Gamemode Not Working in Package

Hello all,

I have a simple boolean that chooses whether to open a level with a game mode set to one gamemode (fp) or another (3p)

I am using these options in my open level nodes (for my training level):

?Game=/Game/Character/FPTrain.FPtrain_C
or
?Game=/Game/Character/3PTrain.3Ptrain_C

the two gamemodes have different default pawns (a fp pawn and a 3p pawn.)

it works perfectly in the editor every time. but when i package it for windows64, the binary doesn’t change the gamemode or it’s pawn (it uses the level’s default.) it doesn’t matter whether i use ABSOLUTE or not in my open level node. i don’t remember this being a problem prior to 4.19

any thoughts?

thanks in advance,
-k

OK, after a month of research and trying different things, I’ve come across the answer if anyone else ever has this problem.

In my Project Settings / Packaging I was using the “List of maps to include in packaged build” and since all 4 of my gamemodes weren’t explicitly being called in one of my 5 maps, the gamemode wasn’t being included in the built package. Two solutions;

  1. Don’t specify any maps in the Project Settings “List of maps to include in packaged build” - you will get a larger package because any demo maps or unused maps will be included but the gamemodes will all be there, OR

  2. Make blank maps for each gamemode and include them in your “List of maps to include in packaged build”

Hope this help someone in the future, because it really hung me up for a month on this.

Thanks,
-Khaz

OK, after a month of research and trying different things, I’ve come across the answer if anyone else ever has this problem.

In my Project Settings / Packaging I was using the “List of maps to include in packaged build” and since all 4 of my gamemodes weren’t explicitly being called in one of my 5 maps, the gamemode wasn’t being included in the built package. Two solutions;

  1. Don’t specify any maps in the Project Settings “List of maps to include in packaged build” - you will get a larger package because any demo maps or unused maps will be included but the gamemodes will all be there, OR

  2. Make blank maps for each gamemode and include them in your “List of maps to include in packaged build”

Hope this help someone in the future, because it really hung me up for a month on this.

Thanks,
-Khaz

Thanks dude. I ended up adding a game mode class variable to my game instance and cloning out a bunch of unconnected set variable nodes in there with a reference to each of my game modes.

Cheers.

Thanks dude. Very useful.