I pretty much replicated the MultiplayerShootout example of the UE4 engine in my project an got everything to work except the “leave game” mechanism, where the session is destroyed and the main menu level is opened again, which is not working in my project as well as in the MultiplayerShootout example itself. The problem seems to be the OpenLevel function. When i try to reload the MP_Level1, it works, but when i try to open the MainMenu level, running it in the Editor, it says:
Warning TravelFailure: InvalidURL, Reason for Failure: ‘Invalid URL: /Game/MyGame/Maps/MP_MainMenu’. Shutting down PIE.
in the log, which seems to be a known issue. But even when i package the game it is not workin and displaying the failure type of the event TravelError it says “ClientTravelFailure”, “InvalidURL”. I searched for some information about it here and on other boards but found no working solution.
Well what you need to do to leave game while youre in a Session,
On Click (Leave Game) - Save Game To Slot- Get Player Controller - Cast to GamePlayPlayerController - Get a Reference to GameInfo - Destroy Session Caller - Remove All Widgets - Open Level (MainMenu) Screenshot - 01b9af92a760e4b04d13158a3c91ba66 - Gyazo