# 'save game to slot' not working, return bool returning false = save failed?

**URL:** <https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969>\
**Category:** Editor Scripting\
**Tags:** savegame, save-file, unreal-engine, Blueprint, question, slot-name\
**Created:** [November 29, 2019, 6:39pm UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969 "2019-11-29T18:39:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [November 29, 2019, 6:39pm UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/1 "2019-11-29T18:39:39Z")

</div>

Hey all,

I have been working on a game for a few years now, and ever since I updated to 4.23, the previously made and fully working save system is now failing.

At the start of the game I check if there’s a pre-existing save file, and if not, I create a save, and then save it to a slot. For some reason, the ‘save game to slot’ section no longer works, and the return bool to check if it worked returns false.

 ![293241-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/5/d05eefe08932939f651cc1d9364ed7e4c1349639.png)

It is worth noting that this only works on deployed mobile devices. Testing it in engine results in the save system working as intended, making it really hard to debug.

Regardless, I tried and couldn’t fix it. I changed the save name in case there was a corrupted save file on my device, nothing. I deployed and installed it through google play and directly installed through USB and neither worked. I tested on multiple android devices and got nothing. From ‘create save game object’ I casted to my save just in case, didn’t work. I tested a windows build and that didn’t work either. I tried looking up this issue on both the forums and answerhub, and the unreal documentation and couldn’t find anything that fixed this issue.

I am at my wits end here. Anyone able to help?

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [November 29, 2019, 10:11pm UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/2 "2019-11-29T22:11:53Z")

</div>

after doing some more testing, I learned that the windows test build in fact has the save system working. So the problem is only on mobile

---

<div class="post-metadata">

**Author:** ![Debaucher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/debaucher/32/482342_2.png) [@Debaucher](https://forums.unrealengine.com/u/Debaucher)\
**Post date:** [November 30, 2019, 2:03am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/3 "2019-11-30T02:03:31Z")

</div>

If I can recall properly, your save game slot needs to be the same name as the save game object. If you need multiple saves, use the slot integer.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [November 30, 2019, 3:02am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/4 "2019-11-30T03:02:27Z")

</div>

I will test it, but I did a test android build on a new project and saved the blueprint ‘testsave’ to the name ‘testsaveslot’ and it worked fine

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [November 30, 2019, 3:26am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/5 "2019-11-30T03:26:26Z")

</div>

I just did a test with the slot names being identical to the actual bp save object asset name and it still did not work!

---

<div class="post-metadata">

**Author:** ![Debaucher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/debaucher/32/482342_2.png) [@Debaucher](https://forums.unrealengine.com/u/Debaucher)\
**Post date:** [November 30, 2019, 6:34am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/6 "2019-11-30T06:34:42Z")

</div>

What version of ue4 are you using?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [November 30, 2019, 6:38am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/7 "2019-11-30T06:38:16Z")

</div>

I’m using the most recent version, 4.23

---

<div class="post-metadata">

**Author:** ![Debaucher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/debaucher/32/482342_2.png) [@Debaucher](https://forums.unrealengine.com/u/Debaucher)\
**Post date:** [November 30, 2019, 6:40am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/8 "2019-11-30T06:40:37Z")

</div>

Honestly, I’ve had so many mobile issues since attempting creating games on 4.23. I still use 4.22.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [November 30, 2019, 6:43am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/9 "2019-11-30T06:43:32Z")

</div>

Well I can’t back version now so… I guess I wait and hope 4.24 fixes it

---

<div class="post-metadata">

**Author:** ![Debaucher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/debaucher/32/482342_2.png) [@Debaucher](https://forums.unrealengine.com/u/Debaucher)\
**Post date:** [November 30, 2019, 10:18am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/10 "2019-11-30T10:18:02Z")

</div>

Remove the save to slot when you load the game. When you cast to the save game object to load it, get the variable current level and set it to a locally set variable for reference.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [November 30, 2019, 5:20pm UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/11 "2019-11-30T17:20:10Z")

</div>

Well I’m going to have to save eventually, you pick up loot in the first level so saving will be required before I load the next level. Let me try doing the first save at the end of the level instead of the start and see if that fixes it.

---

<div class="post-metadata">

**Author:** ![Debaucher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/debaucher/32/482342_2.png) [@Debaucher](https://forums.unrealengine.com/u/Debaucher)\
**Post date:** [November 30, 2019, 7:09pm UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/12 "2019-11-30T19:09:45Z")

</div>

Okay, take a look at the way I load/save a game. The first custom event I create is Load Game. I use this to determine if we have a saved game and if not we create a default save game with default variables and once again, load the save game and set the variable locally on my Game Instance (Struct named Statistics that I created separately). My save game is called SG\_Statistics and you will notice that I utilize that name as the slot name.

 ![293284-savegamehelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/7/23703ea7f8130edae2f2daa0af9c59d98c6675bd.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [November 30, 2019, 10:23pm UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/13 "2019-11-30T22:23:33Z")

</div>

I was able to push the save to slot to later in the first level and I still got the issue

I was also able to confirm that ‘create save’ is not the issue, it creates a valid save object. It is the ‘save game to slot’ node that is returning false.

---

<div class="post-metadata">

**Author:** ![Debaucher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/debaucher/32/482342_2.png) [@Debaucher](https://forums.unrealengine.com/u/Debaucher)\
**Post date:** [November 30, 2019, 10:47pm UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/14 "2019-11-30T22:47:02Z")

</div>

You changed the slot name to ArcusSaveState? Give me your updated BP.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [November 30, 2019, 11:33pm UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/15 "2019-11-30T23:33:34Z")

</div>

![293303-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/d/c9d666a860360ebe6f4f42a430c99e29848691c2.png)

Here is where the save fails, now moved later on in the first level instead of on begin play. I have isolated the issue to this node. The branch will always return false

---

<div class="post-metadata">

**Author:** ![Debaucher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/debaucher/32/482342_2.png) [@Debaucher](https://forums.unrealengine.com/u/Debaucher)\
**Post date:** [November 30, 2019, 11:56pm UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/16 "2019-11-30T23:56:02Z")

</div>

I’m not near ue4 at the moment but if you could upload your project and PM me the link I will help resolve this issue and determine if it’s a bug or not.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [December 1, 2019, 12:53am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/17 "2019-12-01T00:53:34Z")

</div>

Ok. Is a pretty big project, fair warning

---

<div class="post-metadata">

**Author:** ![Debaucher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/debaucher/32/482342_2.png) [@Debaucher](https://forums.unrealengine.com/u/Debaucher)\
**Post date:** [December 1, 2019, 1:40am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/18 "2019-12-01T01:40:43Z")

</div>

How many gbs?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [December 1, 2019, 3:47am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/19 "2019-12-01T03:47:15Z")

</div>

sent you a dm!

---

<div class="post-metadata">

**Author:** ![Debaucher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/debaucher/32/482342_2.png) [@Debaucher](https://forums.unrealengine.com/u/Debaucher)\
**Post date:** [December 1, 2019, 4:52am UTC](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969/20 "2019-12-01T04:52:23Z")

</div>

I’m near my desktop now, check your dms

[Next page](https://forums.unrealengine.com/t/save-game-to-slot-not-working-return-bool-returning-false-save-failed/458969.md?page=2)
