Accessed None?

Hi, I’m getting a strange error whenever I play my map. It doesn’t seem to interfere with the gameplay, but I get loads of these errors after I exit gameplay mode.

I only started receiving these recently, so maybe it’s something I’ve done. What does this mean?

Thank you!

Hi Daphnis26,

It looks like there is a problem in the construction script of your character, Have you looked in there to see what may be going on? Does this occur in all projects or is it limited to a specific project? Thank you!

Hi ,

Thanks for the reply. My construction script is empty, I haven’t done anything there. The event graph is growing quite complex however.

Actually I first started getting these errors on a node I had created. So I removed that node and it cited another. I removed that and so on until it finally just cited the contruction script, which is obviously invincible. I don’t know how to troubleshoot any further.

I’m pretty confused by it. It only started happening in this project recently.

Just to test and see if it is solely the asset in question, can you create a blank player character blueprint and make the editor reference that as the player character, then see if you get the same errors? If not we can at least pinpoint that nothing else is causing the problem and we can find out what is causing this asset to misbehave.

Ok I tried that and did not receive any errors.

I found the problem!

It had to do with a line trace and a branch relying on an AND node. I thought I was being clever. Just out of curiosity, do you know why this caused an issue?

Thank you!!

The Problem:

Fixed:

I am glad to see that you fixed the problem and I can see what happened for sure! Your initial setup checks for the return value and the physical surface simultaneously, which, when not hitting, will continue to return null values (the errors you were seeing), by separating it, you are effectively stating that you want it to check and see if it hit. If a hit occurred, THEN check for the surface type. While it has more steps, this is a much cleaner process than before. I will mark your answer as accepted for tracking purposes, let us know if you have more issues related to this!

Great thank you that makes sense!