How to stop multiple ‘Blueprint Runtime Error: “Accessed None trying to read properly char ref.” errors? (Beginner!)

Hello there! I am having a very strange issue in my game after converting it to work with the paperZD plugin. I was changing each animation for the character on tick with lots of booleans although this was getting very messy and very complicated so, after a bit of research, I redid all the character movement and skills animations with the paperZD plugin and the animgraph.

(I followed this tutorial)

Although, now I’m having this error where after exiting playmode (which still works perfectly with the paperZD!) I get loads of popup errors reading '‘Blueprint Runtime Error: “Accessed None trying to read properly gnome ref.” (Gnome ref is my variable to reference the paperZD character blueprint in the animgraph as the game character is a gnome haha)

I’m not sure why this is happening and the creator of the tutorial tried their best to help (which was really sweet!) but calling ‘isValid’ on each transition doesn’t fix this issues either?

Here’s a video of my paperZD anim graph:

And these are the errors after opening the game for less than 2 seconds( :weary:?):

I’m so confused as to why this is happening so any ideas would be greatly appreciated! Thanks! :v: :heart:

Just click on the link at the right hand end of the error. It will take you to the offending node…

It takes me to this node? However I’m not sure what’s wrong with it, I think I followed the tutorial properly? (Thanks for the reply!)

Ok, everybody does it.

You’ve made a gnome ref, but it isn’t ‘pointing at’ and actual real gnome.

Is the gnome the player? Then you could use ‘get player character’.

The animation BP should look like the following.

On BP Initialization you get PAWN owner and cast to the character class (Gnome), Set a ref.

2 Likes

Yes, better. Wasn’t thinking :slight_smile:

Hey dude, thanks! Are those events custom? I can’t seem to find them in my ABP, although it’s paper ZD, will this make a difference? :heart:

I’m not sure why but today when I opened my project the errors were gone?? I’m so confused as to why, but pretty relieved seeing as I’m pretty sure I’d followed the tutorial correctly, thanks to everyone who helped! :heart: :v:

Sorry that this is a year later but I was having the same exact issue. How I fixed it was I changed the “Get Owning Actor-Target is Paper ZDAnim Instance” to “Get Player Character” for the “cast” during the “Event on Init”.

Not trying to necro but I hope this helps.

1 Like

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