I thought that this would be something pretty basic, but is instead turning out to be something that just doesn’t work for me for some reason. What makes it worse is that I cannot find any information anywhere about how to do this. Surely I can’t be the only person that wants to reload from a save game???
I’ve set up my save actor, and I have a button on my UI that saves the game when I click it. It basically just grabs the name of the map, a few other variable values and then saves to a slot. Nothing special. I then have a “load” button that loads that same save slot. From there, I want it to reload the map (either the same map or a different one depending on what was saved to the MapName variable in the save slot). This is where I’m now stuck.
I am trying to use server travel (with seamless travel) to get it to reload the map, but it doesn’t work. By doesn’t work, I mean it goes to a black screen and then just sits there. I’m assuming this black screen is my transition map (which is just an empty map), which is fine. But why does it get stuck there? I have seamless travel ticked in my game mode and I’ve set the transition map in the project settings. I’m also running the game standalone (i.e. not in PIE) since server travel doesn’t work in PIE.
The reason I’m using server travel is because the game can be both single player or multiplayer. When the host reloads the game, I want to make sure it reloads for both the host player and any client players (in a multiplayer game).