Reporting and Handling BT_UNEXPECTED_ERROR

June 22nd 2012

PermaLink Friday 22:19 pm, by Sam Devlin, 232 words, VIEWED 2066 TIMES   English (EU)
Categories: GSoC 2012

This post title is "Reporting and Handling BT_UNEXPECTED_ERROR"

Hello CrystalSpace,
As intended this week I have focussed on making more use of the behaviour tree(BT) specific return status BT_UNEXPECTED_ERROR. In particular, revisions 4908 and 4910 add the reporting of nodes not having the relevant children, rewards, triggers or parameters specified first with severity notify at the node itself and then again with severity error if the unexpected error is not handled but propagated back to the root of the tree.

Revision 4908 also added the method void SetName (csString nodeName) so that BT nodes cane be given a name, which is then reported if an unexpected error occurs. This should simplify debugging large trees.

Finally, in revision 4909, I added the method void MakeLoopInfinite () to the loop decorator allowing the node to be set to run forever whilst the child returns BT_SUCCESS. If the child fails, then so does the loop. This will be useful as a root node for many behaviour trees as often non-player characters will be expected to continuously repeat some set of behaviours.

I have begun now to think about the dedicated BT propclass and loading from XML. I hope to make significant progress next week towards at least one of these desirable deliverables before beginning to work on the recast and detour side of this project which is scheduled to begin after next week (for the original timeline please see this post.)

Kind regards,

Permalink BEFORESend feedbackAFTER • Trackback (0)

Trackback address for this post:

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

Comments, Trackbacks, Pingbacks:

No Comments/Trackbacks/Pingbacks for this post yet...

This post has 17 feedbacks awaiting moderation...

Comments are not allowed from anonymous visitors.


October 2015
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  



XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 195

powered by