Mistreevous Versions Save

A tool to build and execute behaviour trees in JavaScript and TypeScript

v4.1.0

2 months ago
  • Added Race and All node types
  • Added onNodeStateChange callback to behaviour tree options
  • Added getTreeNodeDetails method to BehaviourTree

v4.0.0

3 months ago
  • Added support for JSON tree defintions
  • Added validateDefintion function to use in validating JSON/MDSL definitons
  • Added convertMDSLToJSON function to convert existing MDSL definitions to JSON
  • Tidied up error handling for agent and registered function invocation
  • Action functions can now explictly return a value of State.RUNNING instead of having to return undefined
  • Fixed issue where rejected action function promises were not handled correctly
  • Fixed issue where registered functions were called with incorrect arguments
  • Fixed some typings
  • Added a BUNCH of tests

v3.1.0

1 year ago
  • Added the 'random' function option which, if defined, is used to source a pseudo-random number to use in operations such as the selection of active children for any lotto nodes and the selection of durations for wait nodes when minimum and maximum durations are defined.
  • Wait nodes will remain in the running state indefinitely until they are aborted if no explicit or minimum and maximum durations are defined.
  • Added more unit tests.

v3.0.0

1 year ago
  • Converted the project to Typescript.
  • wait nodes can now use a delta time function in order to calculate elapsed durations.
  • Added more unit tests.

v.2.3.0

1 year ago

Added the ability to register global subtrees and functions to be referenced by any behaviour tree instances

v2.2.0

2 years ago

Added Succeed, Fail and Retry decorators

v1.0.0

4 years ago
  • Blackboard functions are now called with the blackboard defined as 'this'.