Accessed None trying to read property playerName error.

I’m getting the following error and I can’t figure out why.

I’m taking classes and am following this tutorial:

I can print out the AI’s player name on the screen with a PrintString BP, but when trying to set it to the text field on the widget, it gives me errors. The same thing with the score.

This is the Score Widget I have:

This is where it’s throwing the error:

And this is the set player name and score function in the ArenaPlayer_Widget:

How did you get those?

They are the text fields in the ArenaPlayers_Widget blue print.

I don’t know if it helps, but here are the details. The only thing in the tutorial he changed was the name and he checked the “Is Variable” checkbox.

And you did the same, right? You did not create those vars using:

image

Right, they are just there from the text object’s name.

1 Like

If you click this:

Where does it take you?

To the image I put in the original post:

If it helps, I linked directly to the part of the video where he sets this up:

Could we see the entire error message? Because it complains about those widget text fields in particular (which should not be happening), not the call you show above. I am assuming there’s more of those errors, right?

Meanwhile, save all & restart the editor, it might be drunk.

This is the entire error stack.

I have this on bitbucket because it’s required for the class, would you like to use that so you can see it live?

In case someone stumbles into this. One is for creating user widgets, and the other for native widgets. Should have spotted it earlier, my bad.

The site told me I reached my maximum replies yesterday for my first day, so didn’t get to thank you, so thank you (late) for the help!

1 Like