I’m following along with the UE4 Multiplayer tutorials and I have come across an issue where the SaveGameToSlot function is not actually resulting in a save file being created (or even the SaveGames folder for that matter). I have no clue what I am doing wrong.
When I set a breakpoint on the function it does actually stop and seems to execute (no error) but then doesn’t create the file. Here is the hookups:
So it turns out that I was just stupid an didn’t check my work. In the picture I have a string node hooked up to the “save game to slot” “slot name” input. That string node has a NAME but not a default value. So while on the surface it looked fine. After some digging I found out that I had just forgotten to set the default value of my “Player Settings Save” node. Oh well, live and learn I guess.
As an alternate answer: It depends whether the game is being launched from the editor (PIE) or the staged build. I was checking the project folder instead of the staged build folder, after launching a staged build.
Save game location for PIE: C:\Unreal\Project name\Saved\SaveGames
Save game location for staged build: C:\Unreal\Project name\Saved\StagedBuilds\WindowsNoEditor\Project name\Saved\SaveGames