Giter VIP home page Giter VIP logo

Comments (5)

Calamari avatar Calamari commented on August 18, 2024

Hi @gonnavis.

That is a good question, I'll take a look. Just from a first glance I can only say, it should be called…

from behaviortree.js.

Calamari avatar Calamari commented on August 18, 2024

I just ran your code, and that is the output I get:

node example.js 
*** 000 start
000 SUCCESS
*** 000 end
*** 111 start
111 RUNNING
-----------------------------
111 RUNNING
-----------------------------
111 RUNNING
-----------------------------
111 SUCCESS
*** 111 end
*** 222 start
222 RUNNING
-----------------------------
222 RUNNING
-----------------------------
222 RUNNING
-----------------------------
222 SUCCESS
*** 222 end
-----------------------------
*** 000 start
000 SUCCESS
*** 000 end
*** 111 start
111 SUCCESS
*** 111 end
*** 222 start
222 SUCCESS
*** 222 end
-----------------------------
*** 000 start
000 SUCCESS
*** 000 end
*** 111 start
111 SUCCESS
*** 111 end
*** 222 start
222 SUCCESS
*** 222 end
-----------------------------
*** 000 start
000 SUCCESS
*** 000 end
*** 111 start
111 SUCCESS
*** 111 end
*** 222 start
222 SUCCESS
*** 222 end
-----------------------------

So all looks good. Did you change anything?

from behaviortree.js.

gonnavis avatar gonnavis commented on August 18, 2024

I really get that result on example repo https://github.com/Calamari/BehaviorTree.js-Examples, after changed the codes of es6\example.js and run

cd es6
yarn
npx babel-node example.js

image
image


Will check again if this main repo the same result.

from behaviortree.js.

gonnavis avatar gonnavis commented on August 18, 2024

Found the problem, example repo using version 2.0.2 by default.
After upgrade to version 2.1.0, then works fine!

Don't know why "behaviortree": ">=2.0.2" in package.json didn't cause the latest version to be installed, but that's should be another issue.

from behaviortree.js.

Calamari avatar Calamari commented on August 18, 2024

Glad that you could resolve this.
If you like typescript, there is also a typescript version available (in branch aptly called typescript), that will be merged to master soon. (Which will probably released as v3, not sure yet.)

from behaviortree.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.