I’ve been working on making it so the user can specify the game mode in the server travel string. One of my game types (DM_GameMode) loses its blueprint defined Game State Blueprint when packaged somewhere between the creation of the game mode and its initialization (Logging/Using a Debugger found this). My other game mode doesn’t suffer from the same issue and loads the blueprint specified GameState with no issue.
I’ve verified that the GameStateClass is set for my game mode, tried re-parenting the game mode, and tested multiple build settings to no avail. Any advice is welcome.
Relevant DefaultGame.ini snippet:
[/Script/Engine.GameMode]
+GameModeClassAliases=(ShortName=“KOTH”,GameClassName=“/Game/Blueprints/GameModes/KotH_GameMode.KotH_GameMode_C”)
+GameModeClassAliases=(ShortName=“DM”,GameClassName=“/Game/Blueprints/GameModes/DM_GameMode.DM_GameMode_C”)
Additional information:
I have also defined the default BotPawn in my game mode with a blueprint and it is not missing when the execution reaches the Game Modes’s InitGame.