Save System With 3 Slots

I made a save system that works fine but only with 1 slot, i want my game to have 3 slots how would i achieve this? My system is like this for now



and have 2 functions as save data and load data in my SaveGame blueprint. I followd this tutorial to make it so far https://www.youtube.com/watch?v=7gfA-QO5pA8. So when i want to save a variable i make another variable in the BP_SaveGame and set it as i want when saving and getting that variable and set it on my blueprint when loading it. The first idea that came to my mind is making every variable 3 times in SaveGame BP and call them as “variable1, variable2, variable3” and set them if i am in the “save slot1, save slot2, you get it” every time but it seems not good enough, i am pretty sure there will be an easier way to make it.

1 Like

Say you have 100s of actors, and you want to save their transforms.

You just use one save game, and have an array of transforms in it.

Is that what you mean? You can put as many variables in one save game as you want.

As far as I know, one of the few times when you’ll need multiple save games, is when you have more than one player using your game.

1 Like

yeah,like diablo 2,every charecter is a slot. :smiley:

Well i dont need multiple saves its a game design that i wanted to make, where you have multiple save slots and you can change between them in the main menu. I am trying things like these to test myself.

1 Like

Ok, gotcha

Well, you just have one main slot, and in there you keep the names of all the other save slots.

That’s the secret, basically :slight_smile:

1 Like

What about the other variables that i want to save? I dont want to override them again and again for each slot that player is playing. Do i duplicate the variables in the save game and number them like i said at the beginning of the thread?

1 Like

You have two save games.

One only contains this

Name of save slot ( for the main data )
Player name
Date used
Possibly a picture from the game

The other save game is you main save game, with all the variables in.

Now, when someone wants to load a game, you can tell from the player name which slot name the data is in.

Does it make sense? :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.