# Save Game - what User Index is for?

**URL:** <https://forums.unrealengine.com/t/save-game-what-user-index-is-for/319803>\
**Category:** Blueprint\
**Tags:** save-game, unreal-engine, Blueprint, question\
**Created:** [May 26, 2015, 3:30pm UTC](https://forums.unrealengine.com/t/save-game-what-user-index-is-for/319803 "2015-05-26T15:30:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nox\_A15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nox\_A15](https://forums.unrealengine.com/u/Nox_A15)\
**Post date:** [May 26, 2015, 3:30pm UTC](https://forums.unrealengine.com/t/save-game-what-user-index-is-for/319803/1 "2015-05-26T15:30:16Z")

</div>

Hello,

I’m working on a save game system based on BP and one thing makes me wonder - is User Index in “Save Game to Slot” node an array index of some sort? I mean, is it possible to store data of different levels/players in one file, but using different User Index values? I was searching for more info on the matter, but I can’t find any specifics - what User Index is really for?

---

<div class="post-metadata">

**Author:** ![idbrii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@idbrii](https://forums.unrealengine.com/u/idbrii)\
**Post date:** [September 25, 2015, 1:13am UTC](https://forums.unrealengine.com/t/save-game-what-user-index-is-for/319803/2 "2015-09-25T01:13:58Z")

</div>

[This documentation page](https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Kismet/UGameplayStatics/SaveGameToSlot/index.html) says:

> UserIndex For some platforms, master user index to identify the user doing the saving.

So it’s probably like how on Xbox 360 each user has a separate account and separate save files. Sometimes only the “primary” user could save (and all actions in the game applied to them).

I have no idea how you’d determine which user index to use (it seems you require a KeyEvent, but neither InputAction events nor raw input events provide them). Maybe you need to get it from an UI-specific system that I haven’t learned about yet.

> I mean, is it possible to store data of different levels/players in one file, but using different User Index values?

I’m not certain, but I’d assume each user index saves to a different location on disk. (Imagine one user saved to a memory card and another to the cloud.)

---

<div class="post-metadata">

**Author:** ![Erasio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erasio](https://forums.unrealengine.com/u/Erasio)\
**Post date:** [September 25, 2015, 2:39am UTC](https://forums.unrealengine.com/t/save-game-what-user-index-is-for/319803/3 "2015-09-25T02:39:26Z")

</div>

So far I’ve used it as easy way to create save games.

In my prototype I check via an “Does savegame exist” for each index how many exist and display some basic data which I also keep in the savegame object. For example username, time played or whatever.

When a user picks one file I use that index from then on to load all content from different savegame objects which always have the same name but a different user index.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [February 7, 2024, 7:15am UTC](https://forums.unrealengine.com/t/save-game-what-user-index-is-for/319803/4 "2024-02-07T07:15:21Z")

</div>

just for info since i was looking for this.  
the docs says that the user index is ignored on certain platform. so it’s best to use a different saveslot name for each savegame you want. i appended a postfix and works like a charm.
