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 data not showing in AI Debug

I am debugging my AI right now and I recently found out about the AI Debug menu. However, for some reason my Behavior Tree data just won't show up. The AI Controller and Sensing component work fine. I have enabled BehaviorTree under Project Settings->GameplayDebug

alt text

Product Version: UE 4.17
Tags:
aidebug.jpg (65.6 kB)
more ▼

asked Mar 08 '18 at 12:41 PM in C++ Programming

avatar image

Floating Orb
36 6 6 9

avatar image Trey Z ♦♦ STAFF Mar 09 '18 at 07:39 PM

Hey,

Have you called the 'Run Behavior Tree' node and assigned a BTAsset on the AI Controller?

avatar image Floating Orb Mar 11 '18 at 09:06 AM

Hi Trey,

yes the AI is properly running the behavior tree and using the ai controller for the senses.

avatar image Trey Z ♦♦ STAFF Mar 12 '18 at 01:39 PM

Do you have anything in your project that might prevent it from showing? I was able to see the Behavior Tree debug in a clean 4.17 project.

alt text

debug.png (119.8 kB)
avatar image Floating Orb Mar 14 '18 at 12:58 PM

Not that I am aware of. What could prevent it from showing?

avatar image Trey Z ♦♦ STAFF Mar 14 '18 at 01:47 PM

If I were you I'd see if it appears in a clean 4.17 project when you enable AI Debugging. If it does, try tracking down the issue in your own project. Also in your own project does it not appear when debugging certain AI? Try making a new AI character with a Behavior Tree to see if it appears.

If none of that works attach a project where this is happening so I can take a look at it.

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

1 answer: sort voted first

I created a new pawn blueprint, ai controller blueprint and behavior tree and it showed the behavior tree data just fine. Is there some UPROPERTY that I am missing in c++ to display the behavior tree in debugging?

more ▼

answered Mar 17 '18 at 05:22 AM

avatar image

Floating Orb
36 6 6 9

avatar image Shura5 May 23 '18 at 07:37 PM

You need to initialize the variable BrainComponent from the AIController to your BT.

avatar image Floating Orb May 27 '18 at 01:41 AM

Thanks, that did it.

(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