Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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

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.

alt text

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?

Product Version: UE 4.17
savesystem.png (136.4 kB)
more ▼

asked Sep 28 '17 at 01:15 AM in Blueprint Scripting

avatar image

3 1 2 3

avatar image Everynone Sep 28 '17 at 06:22 AM

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

alt text

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

avatar image BringTheSmiles Sep 28 '17 at 02:05 PM

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.

avatar image Everynone Sep 28 '17 at 02:21 PM

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

avatar image BringTheSmiles Sep 28 '17 at 02:47 PM

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

alt text

saveloadproblem.jpg (185.2 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question