# Can load/save save files from menu but not from playercontroller?

**URL:** <https://forums.unrealengine.com/t/can-load-save-save-files-from-menu-but-not-from-playercontroller/405627>\
**Category:** Blueprint\
**Tags:** load-game, save-game, unreal-engine, question, Blueprint\
**Created:** [September 28, 2017, 1:15am UTC](https://forums.unrealengine.com/t/can-load-save-save-files-from-menu-but-not-from-playercontroller/405627 "2017-09-28T01:15:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BringTheSmiles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BringTheSmiles](https://forums.unrealengine.com/u/BringTheSmiles)\
**Post date:** [September 28, 2017, 1:15am UTC](https://forums.unrealengine.com/t/can-load-save-save-files-from-menu-but-not-from-playercontroller/405627/1 "2017-09-28T01:15:06Z")

</div>

I just started learning about save game files and I’ve set up a simple save game class for storing the players name and the likes.

This is from the options menu widget blueprint and it works perfectly, and I have a load function that also works.

 ![214953-savesystem.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/c/e6c984440a6a29e2abcf9a167e9db7252164a8d7.png)

However, when I copy this exact script and put it in my playercontroller to load the player name when I get into the game, it doesn’t work. Saving gives a false return value and loading returns nothing.

What am I not understanding? Can I simply not load/save from PCs?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 28, 2017, 6:22am UTC](https://forums.unrealengine.com/t/can-load-save-save-files-from-menu-but-not-from-playercontroller/405627/2 "2017-09-28T06:22:00Z")

</div>

You should be able to, are you using your PC?

![214971-controllerassigned.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/6/436170aa66ac6e95ea49b6f6cadf7f96bd6c0aae.png)

Also, can you show this function execute in the PC?

---

<div class="post-metadata">

**Author:** ![BringTheSmiles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BringTheSmiles](https://forums.unrealengine.com/u/BringTheSmiles)\
**Post date:** [September 28, 2017, 2:05pm UTC](https://forums.unrealengine.com/t/can-load-save-save-files-from-menu-but-not-from-playercontroller/405627/3 "2017-09-28T14:05:48Z")

</div>

Hi! Yes, the PC is being used, as I’m able to run the other scripts in the PC. I’m sure the script runs as I can put a print node on the end and it fires.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 28, 2017, 2:21pm UTC](https://forums.unrealengine.com/t/can-load-save-save-files-from-menu-but-not-from-playercontroller/405627/4 "2017-09-28T14:21:54Z")

</div>

Hm, do you fire any of them in onBeginPlay by any chance?

---

<div class="post-metadata">

**Author:** ![BringTheSmiles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BringTheSmiles](https://forums.unrealengine.com/u/BringTheSmiles)\
**Post date:** [September 28, 2017, 2:47pm UTC](https://forums.unrealengine.com/t/can-load-save-save-files-from-menu-but-not-from-playercontroller/405627/5 "2017-09-28T14:47:20Z")

</div>

No, this comes after OnPostLogin from the game mode

When a new player connects to the lobby the GM runs the initial setup event on the individual PC, which contains just the load/save function before sending that info to the server

 ![215043-saveloadproblem.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/c/1cc63c64939b1d4edd53e91442f8a582cd91daae.jpeg)
