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 Execution Problem

I am currently learning the AI system and Behavior Tree/Blackboards. Having difficulty with working out some things, especially condition checks etc but I had a question about the image below. For some reason (not mentioned in documentation that I can find anywhere) in the setup below, the branch that has the Service is never ran but the wait will keep cycling. If I remove the top most Selector node (has same results with a sequence as well) then the Service branch will run. Seems strange to me that it won't execute along the chain with another composite node above a service. Is this a bug or is this expected/desired behavior?

alt text

Product Version: UE 4.8
behaviortree.png (186.4 kB)
more ▼

asked Aug 12 '15 at 10:50 PM in Blueprint Scripting

avatar image

1.4k 70 29 92

avatar image jtsmith Aug 13 '15 at 07:51 AM

Sorry but I have to bump. Question got pushed way down because of the spam earlier. Anyone have any thoughts on this matter? Thanks

avatar image jtsmith Aug 17 '15 at 06:41 PM

Any thoughts or ideas to this problem? Thanks

avatar image kamrann Aug 19 '15 at 08:16 AM

It should run, but it's possible it's exiting immediately. Can't say since you didn't include the whole branch in the image!

avatar image Ghar Aug 19 '15 at 08:53 PM

Do you have any task in the branch that has the service? Image only shows the Wait task. If there are not tasks then there is nothing to execute at all.

Could you show the rest of the tree?

avatar image jtsmith Aug 19 '15 at 10:30 PM

@Ghar Yes there are tasks below the service. As I mentioned, if I remove the top most selector (or sequence) and hook the root straight to the service node, everything runs; it's only when I have a selector or sequence above the service (between root and service) that it fails to run the branch.

@kamrann I have tested that with another wait, it's simply not executing.

Here is another clearer image with all the nodes. It's slightly different than the original image but concept is the same as is the problem. Ultimately I need to fully redo my entire behavior tree as I'm not getting the results I need so I need to take a step back and conceptualize a better method. However, with what I'm experiencing, it will create a problem regardless as I will need my BT to perform more than 1 branch and/or service. Realistically I need to have several BT's for the different behaviors I need of my AI but can't find any good tutorials or basic information on running and switching between different BT's.

alt text

behaviortree.png (284.8 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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