I have a blank level i’m using as a placeholder menu level. In it i have a button event in the level blueprint to call ServerTravel(TestMap?Listen) from my custom GameMode TestGameMode_Menu in c++. The new level (TestMap) uses another GameMode called TestGameMode (when i switch levels in the editor the world setting gamemode are showing the correct ones) in which I have a begin play event that prints to the screen “new level loaded” in the level blueprint.
Everything works fine when I PIE, but when I click launch and run the game everything works for the blank level but when the new level loads the level blueprint isn’t calling the begin play event.
I also have debug to screen calls in the PostLogin and BeginPlay functions in the TestGameMode which aren’t getting called and debug calls in the TestGameMode_Menu are getting called again, but get called correctly when I PIE but not when i play through launch.
Any help would be appreciated.