BP code error

Hi does anyone know why I am getting this error?

If you click here, were does it take you?

image

To where it says error

1 Like

Ok, and do you have a variable called ‘Checkpoint’ of type Transform in your save game?

( sorry if that’s a dumb question )

I’m following this tutorial and get the error roughly around 7:43, sorry I’m not very good at coding side of things!
I did everything in tutorial correctly but it is a UE4 tutorial so maybe I have to do something differently as I am using UE5?

Sorry, I don’t have time right now to look at that. But you could look in your save game, is the variable there?

1 Like

Did you compile your Save Game blueprint? If not, technically the variable doesn’t exist yet.

I have no errors now but cast to checkpoint_savegame isn’t working

1 Like

Should I have something in here?

You say this is working, how do you know that it actually gets loaded:

image

I have doubts, what do you get when you validate:

If this Nays, could tell what’s the value of that string:

image

Did you forget to put a name there?


It still does not answer the question why this wouldn’t compile to start with. Did you copy / paste some nodes? This is from the vid you linked:

Can you do that? Do you see that variable on your end?

1 Like

So when I do is valid it prints no when entering the checkpoint in the level, if I did it correctly?

image
and yes this comes up

when I do is valid it prints no

The save game is not even loaded then. The issues is elsewhere. Could you answer the question mentioned above:

image

1 Like

I wasn’t sure what you meant, forget to put a name where?

Your slot needs a name, right?


I have that yeah

Shouldn’t this be connected? If it’s not, the save game will never be created.

1 Like

Oh my goodness I didn’t even notice that!!
Tysm

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.