# List all save slots

**URL:** <https://forums.unrealengine.com/t/list-all-save-slots/306163>\
**Category:** Editor Scripting\
**Tags:** savegame, slot, unreal-engine, Blueprint, question\
**Created:** [February 6, 2015, 10:49am UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163 "2015-02-06T10:49:47Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e2191170](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e2191170](https://forums.unrealengine.com/u/anonymous_user_e2191170)\
**Post date:** [February 6, 2015, 10:49am UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/1 "2015-02-06T10:49:47Z")

</div>

I’m looking for a way to allow the player to have multiple save slots, and load whichever one they choose. I see that I can save a game to a slot with a specific name, and check if there is a slot with a specific name, but I’m not seeing how to get all of the save slots. Does something like this already exist, or am I looking at adding C++ code to inspect the directory?

---

<div class="post-metadata">

**Author:** ![ScottSpadea](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scottspadea/32/1194682_2.png) [@ScottSpadea](https://forums.unrealengine.com/u/ScottSpadea)\
**Post date:** [February 6, 2015, 8:33pm UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/2 "2015-02-06T20:33:46Z")

</div>

you could name all of your save files the same way, like “save01”, “save02”… “save10” then have a for loop that searches through all of those using a DoesSaveGameExist node.

that would give you a list of available save files, but you would have to load each file to get any meta data out of it, like player name, progress tokens, play time, death count, character stats, etc… and that might be slow to populate that list, because each save file could have thousands of extra pieces of data that have nothing to do with the info needed to render the menu cards. to speed things up, you might need to make a smaller “meta save file” that holds just the menu data for the regular save files.

so if you save to slot 5, it will write to Save05 and Meta05. then when you go to the load game screen, it loops through each MetaXX file, using DoesSaveGameExist, and if it does, LoadGameFromSlot, then copy that data to a structure that you use to hold the menu data, then it moves on to the next Meta file until it reaches the max for that page (lets say 10). the only time you need to load any of the SaveXX files, is when the player chooses a file from the menu.

if you want to search a directory in c++, these might help:  
objectLibrary, FAssetRegistry, FAssetDataGatherer

---

<div class="post-metadata">

**Author:** ![Deamonpog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deamonpog](https://forums.unrealengine.com/u/Deamonpog)\
**Post date:** [August 1, 2017, 10:52am UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/3 "2017-08-01T10:52:57Z")

</div>

Adding to what ScottSpadea said,  
A better way would be to create a single Meta file, which has an array of information which contain following info at each element:

- Save Game Slot Name (string)
- User Index (Integer)
- Date Created (Date and Time)
- Player Name (string)

So you just need to load this single meta file and iterate over the array with a for-each-element loop to create Load Game List of Saved Games Slots.

This will be flexible and no need of C++.

---

<div class="post-metadata">

**Author:** ![JohnADaniels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/johnadaniels/32/1080686_2.png) [@JohnADaniels](https://forums.unrealengine.com/u/JohnADaniels)\
**Post date:** [August 24, 2018, 5:11am UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/4 "2018-08-24T05:11:46Z")

</div>

Looks like you guys know a lot about saving. Hopefully you help with a question. Saving spawned hierarchical instanced meshes to a save file. The save files can be 200 or 300 megs. I looked in the save files and for the 50,000 instanced meshes it is saving the long name for each one, like the following:

\Gamedirectory\Name of the files\name of the Blue Print\ Name of the Instanced

Its actually longer than that but it seems like a waste considering they are all the exact same name.

Maybe saving this wrong, There is a loop in the blueprint that copies the index, transform and item of the instanced meshes to a game save file.

Do you know if this is normal?

Thank you,  
John

---

<div class="post-metadata">

**Author:** ![Bater](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bater](https://forums.unrealengine.com/u/Bater)\
**Post date:** [November 22, 2018, 4:28am UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/5 "2018-11-22T04:28:22Z")

</div>

@Deamonpog, this would be nice if you have a small and a non-variable length slot like a max of 10 saves but if the save slots are variable in number then you are risking a filled memory buffer issue

---

<div class="post-metadata">

**Author:** ![disseminate](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/disseminate/32/987805_2.png) [@disseminate](https://forums.unrealengine.com/u/disseminate)\
**Post date:** [September 15, 2019, 3:57am UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/6 "2019-09-15T03:57:25Z")

</div>

What does this have to do with the OP question?

---

<div class="post-metadata">

**Author:** ![MrFooble](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrFooble](https://forums.unrealengine.com/u/MrFooble)\
**Post date:** [June 30, 2020, 4:08pm UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/7 "2020-06-30T16:08:20Z")

</div>

This seems like a very elegant solution, I would be much more inclined to use this method than to have “predictable” slot names.

---

<div class="post-metadata">

**Author:** ![HAF-Blade](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/haf-blade/32/88718_2.png) [@HAF-Blade](https://forums.unrealengine.com/u/HAF-Blade)\
**Post date:** [July 10, 2020, 8:27am UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/8 "2020-07-10T08:27:22Z")

</div>

I would do a different approach.  
Create some own save game class in which you save all save game slot names.  
Save this under a special slot name for example “slot names” and load only this when you load up your save game list.

After the player has select the slot and wants to play, you load the correct selected slot.

---

<div class="post-metadata">

**Author:** ![Leie\_Sistal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leie\_Sistal](https://forums.unrealengine.com/u/Leie_Sistal)\
**Post date:** [May 8, 2021, 1:09pm UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/9 "2021-05-08T13:09:32Z")

</div>

I think this can solve your issue in bp  
Those nodes are in a build-in plugin called Blueprint File Utilities

 ![338304-image-2021-05-08-150843.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/8/57882240117d241303032952b6977a9b37550937.png)

---

<div class="post-metadata">

**Author:** ![thedo\_digb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thedo\_digb](https://forums.unrealengine.com/u/thedo_digb)\
**Post date:** [September 29, 2023, 12:13pm UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/10 "2023-09-29T12:13:49Z")

</div>

This seems to be the best way to do it.

---

<div class="post-metadata">

**Author:** ![JesseHumphry](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jessehumphry/32/1215657_2.png) [@JesseHumphry](https://forums.unrealengine.com/u/JesseHumphry)\
**Post date:** [March 26, 2024, 10:54am UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/11 "2024-03-26T10:54:04Z")

</div>

This should be marked as the solution; it’s also really easy to convert to C++

```auto
const FString& SaveDir = UKismetSystemLibrary::GetProjectSavedDirectory() / "SaveGames";
	TArray<FString> FoundFiles;
	const FString& ext = ".sav";

	IFileManager::Get().FindFiles(FoundFiles, *SaveDir, *ext);

	TArray<FString> FileNames;
	if (FoundFiles.Num() > 0)
	{
		for (const FString& F : FoundFiles)
		{
			// Removes the file extension
			FileNames.AddUnique(F.LeftChop(4));
		}
	}

	if (FileNames.Num() > 0)
	{
		for (const FString& F : FileNames)
		{
			// Do what you want now with the slot name
		}
	}

```

---

<div class="post-metadata">

**Author:** ![FortniteGoggi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FortniteGoggi](https://forums.unrealengine.com/u/FortniteGoggi)\
**Post date:** [July 7, 2025, 6:58pm UTC](https://forums.unrealengine.com/t/list-all-save-slots/306163/12 "2025-07-07T18:58:16Z")

</div>

In case it helps someone else, you nowadays need to enable the plugin “Blueprint File Utils” to have the find files node shown in the excellent answer above!
