Target connection not appearing?

Hello, I am trying to follow this document on how to create a save/load game system (https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/Blueprints/index.html). But I cannot figure out what I am doing wrong as my variables do not show the target connector for my strings and integers like the doc says.
I’m trying to connect the ‘Save Game Instance’ to my ‘Save Slot Name’ and ‘User Index’.

http://puu.sh/cTGuO/6f10fc40c4.png

Drag the exit connection of get SaveGameInstance node to an empty spot. Search for set variablename. then you should get a setter with 2 entry connections. one is your savegameinstance and one is the variable you want do set.

That’s what I’ve been trying to do, but it doesn’t even appear in the search. Even when I turn off Context Sensitive.

Context sensitive must be turned ON to do that.

However the following is what you did?

So what you have is a Blueprint that has SaveGame as Parent ( MySave Game in the Picture).
In that Blueprint you created a Variable String Playername. Click save and compiel button.
In wherever you want to Use the Savegame you created a Variable of the type MySaveGame which you created earlier. As in the picture you create a savegame object, select the class you created. Cast that one to Your Class again and save it to your variable.

That should work.

I do not follow what you’re trying to say. I created a brand new scene using the third person template. I tried to recreate it again, but am still stuck at showing the targets on my Set and Get Variables…

http://puu.sh/cTNYj/c34719abeb.png

When I drag from SaveGameInstance

http://puu.sh/cTN7R/191cbf1f1c.png

Ok, i don’t know where exactly you are trying to create all of this, so let’s start from scratch.

You need to create MyTestSavegameBP from the SaveGame Class.

http://puu.sh/cTKZW/018545152f.png

http://puu.sh/cTL1r/a9259f43c9.jpg

Inside this BP you create these 3 Variable, PlayerName, SaveSlotName and UserIndex. Then you compile your SaveGameBP and close it.

http://puu.sh/cTL5B/81d93ef0f9.png

Now let’s take an example. Let’s say you want to save something from inside your CharacterBP. So open your CharacterBP, rightclick in an empty Spot in the event Graph, type “Create Save Game Object” choose it. Select the SaveGameBP Class for “Save Game Class”.

http://puu.sh/cTL7g/7f5c43562e.jpg

Now take “Return Value” into an empty spot and type “Cast”. Choose Cast to MyTestSavegane.

http://puu.sh/cTL9p/04af369cd2.png

Now you need the Save Game Instance Variable. Create it inside your CharacterBP. For the type, search for the YourSaveGame and select the object class.

http://puu.sh/cTLbx/ae9db8b108.png

Now save the return value from the cast node to it.

http://puu.sh/cTLvO/ce8868a48c.png

Then grab the variable again and use “get”. Drag the pin into an empty space and type “PlayerName”. Now you should find it.

http://puu.sh/cTLxl/e199ea9e07.png

http://puu.sh/cTLz3/9d08fb4cb6.png

I think you tried doing all of this inside your SaveGameBP. But you need to do it in the BP where you want to save something. You would need to create more variabels inside your SaveGameBP. For example “Health” or “Position” as float or Vector3. After you created your SaveGame like i showed you now, you would set the Health or Position the same way you did it with the playername. Then you just plugin the SaveGameInstance into the “Save Game to Slot” node and everything of that SaveGameBP will be saved. Other way round, Loading a Slot need the result to be casted to the right SaveGameClass and after that, you can get the Variables from it again and use the saved values.

Oh, I got it. Yes, I did do it inside my SaveGameBP.
It’s working now, thank you so much!

Next step: drag savegame to the graph and create a getter. In my picture the blue node. then drag the blue node like in the picture and create your setter.

The Answer by eXi is right too and much more detailed.