x

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"

Behavior Tree quick start problem

Hi!

I was reading Behavior Tree quick start... When I finished it, I tested it, but found, that CloseEnough Method don't work: I got an error: Error Accessed None 'CallFunc_GetBlackboardValueAsActor_ReturnValue' from node Print String in graph 'PerformConditionCheck' in blueprint CloseEnough

I tried to check it using Print Screen, but still, I didn't found the error...

What could be the problem? I made everything (or most everything) just like it was written in the Quick Start

with best regards,

RealCoder

Product Version: UE 4.8
Tags:
more ▼

asked Jun 14 '15 at 07:17 PM in Blueprint Scripting

avatar image

RealCoder
33 2 3 9

avatar image RatatatRandy Jul 08 '15 at 07:34 PM

I know it isn't exactly the answer you're looking for, but would it help to use the behavior tree and blackboard from the shooter demo to break it down?

(comments are locked)
10|2000 characters needed characters left

4 answers: sort voted first

I haven't seen the quick start Guide so I don't know the setup, however it seems that your blackboard entry for the actor is empty. There should be a blueprint service running somewhere in the tree, one should have a function to update the blackboard value - sounds like this isn't happening for some reason.

An example: You have a service running, let's call it CheckAgroRadius, to run a ray trace for enemies within a certain radius. If the trace returns a hit, take the actor it hit and connect it to the target "set blackboard value as actor" with your appropriate key set.

If you have something like this, make sure that

  • the variable for your key inside your service is flagged as global

  • you've assigned the key from your service to the appropriate key in your blackboard (done in the settings for your service in behavior tree view)

Apologies for the lack of screen shots as I'm currently on mobile.

more ▼

answered Jun 15 '15 at 07:34 PM

avatar image

boyty01
113 6 5 11

avatar image RealCoder Jun 15 '15 at 08:14 PM

Thanks for response!

Yes, I have such service, which was fully copied from the quick start: alt text

I think, that the problem is that at the end of the event graph, if the branch go to False, we set nothing in "Set Blackboard value as object". If it is so, then how to fix it?

avatar image boyty01 Jun 17 '15 at 07:43 PM

Sorry for the slow response. I just had a quick whizz over the guide and there's a service called agrocheck running at the top of the tree that should set the follow target should it have one. Also, the branch that your getting the error from has a decorator condition that should only execute this branch if the follow target is actually set. If your setup is right you should never be able to receive this error assuming the blackboard key is empty since this branch shouldn't execute. Can you post a screen shot of your behavior tree?

(comments are locked)
10|2000 characters needed characters left

Just ran into this as well, and the problem was that the decorators were in the wrong order. Make sure you add the blackboard decorator first, followed by the CloseEnough decorator. As boyty01 mentioned, the blackboard decorator should stop the CloseEnough from running at all if TargetToFollow is not defined.

more ▼

answered Jul 08 '15 at 07:16 PM

avatar image

Kaiser23
1

avatar image RealCoder Jul 09 '15 at 01:28 PM

My BTalt text

444.jpg (122.6 kB)
(comments are locked)
10|2000 characters needed characters left

Im getting the exact error and My CloseEnough behavior decorator says UnknownDecorator. I have checked and rechecked the graph and found one problem that I can not figure out.alt text

more ▼

answered Jul 23 '15 at 10:59 PM

avatar image

Demitron79
6 1 3

(comments are locked)
10|2000 characters needed characters left

I am getting the error despite having the decorators in the right order: alt text

followerbt.png (63.4 kB)
more ▼

answered Aug 04 '15 at 05:47 PM

avatar image

JimG
1

avatar image RealCoder Aug 04 '15 at 07:57 PM

Perhaps, we can ask Epic about this...

avatar image graysan Dec 21 '15 at 04:55 AM

Getting the exact same problem.

(comments are locked)
10|2000 characters needed characters left
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