Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

What exactly does this error mean? I'm stumped!

So I'm getting this error

alt text

from this graph. I thought it was because the reference coming out of the cast node was null, but I debugged it and it isn't. the only other thing I find weird is that the 'X Pos Cover Volumes' are actually coming from an interface, yet here they look like standard custom events. I don't know why this is, yesterday when I set this up it was giving me nodes with the little interface symbol at the side, but now I can't access that. I haven't changed anything!

Also why am I only getting the error from the last one? I've tried storing the character as a variable straight after the cast. no luck. I am totally stumped.

alt text

Product Version: Not Selected
capture.png (5.1 kB)
capture.png (255.9 kB)
more ▼

asked Dec 08 '14 at 02:22 PM in Blueprint Scripting

avatar image

Asher S Einhorn
660 94 81 183

avatar image Asher S Einhorn Dec 08 '14 at 02:24 PM

bit more info, here's the interface implementation being called - alt text

capture.png (180.4 kB)
avatar image clt2488 May 06 '15 at 04:58 PM

(BTW, if you put the error message or some other specific details about your problem in your question's title, it makes it easier for people to search for.)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

"None" is equivalent of "Null" in C++, from the look of error "Get Player Character" node return None (which means "nothing") and because you trying to call something in that character from that return it hits a error because you trying to call function in nothingness.

"Get Player Character" return only Character object which is possesed by Player Controller of specific Player, if Player Controller possess no one that node will return None, considering you spawning Character you might forgot to make it Player Controller posses it.

Problem is i don't see "Get Player Character" on your screen, are you sure it's this is where it happens? If Spawn would return None (which it can if Spawn fails) execution would not reach X Neg Volumes as it would stop on cast.

more ▼

answered Dec 08 '14 at 02:40 PM

avatar image

37.8k 937 172 1123

avatar image Asher S Einhorn Dec 08 '14 at 04:23 PM

I'm not spawning a player controlled character, I'm spawning an AI with the spawn AI from class node. It does in fact spawn an work in the game, it's just I get this error.

avatar image Shadowriver Dec 08 '14 at 05:37 PM

When you spawn it?

avatar image Asher S Einhorn Dec 09 '14 at 04:47 PM

Just before. It's in the screenshot I added. see? there's a spawn ai node, and straight after a cast node.

avatar image Asher S Einhorn May 06 '15 at 03:34 PM

I'm still getting this error several versions later.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Your Bot_AA_Character is null in one of the scenarios that exists during the game lifetime, whether at startup, at the end of the game or another such case.

It is good practice to always perform "Is Valid" checks on objects that you are referencing, this will prevent any "Accessed None" errors you would otherwise encounter.

To stop this error from showing, simply add a node after your cast that checks if the Bot_AA_Character is valid.

Hope this helps :)

more ▼

answered May 06 '15 at 07:08 PM

avatar image

2.2k 104 75 164

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question