[Solved] Crash when using Server Travel outside editor

So these are the steps I took to make it work:

  1. New C++ class, choose Game Mode Base as the parent class.

  2. Copy this in the .cpp, make sure that you get the name right at line 5. It should be the name of the newly created gamemode class with a A attached to it.

  1. And this in the .h file

  1. Finally, in the Gamemode blueprint where you want to call the function, reparent the Gamemode to your new C++ game mode class.

And then you’ll be able to call this function in your blueprints. The gamemode there is the gamemode you wish to open with the map.

That’s basically how I got it working. Since I my Gamemodes blueprints were based off Gamemode base and that I hadn’t changed that class (in C++) reparenting didn’t cause any issue. As for making it in a function library based class, I’m not too sure …

Hope that helps!