Comments (6)
i found the bug here. in limiter we should return the b3.RUNNING instead of b3.SUCCESS or b3.FAILURE
cause the b3.SUCCESS or b3.FAILURE would exit the running state and reset the time in open when we tick again
from behavior3js.
yep i found that return b3.RUNNING in limiter still not work well. the only way to fix it is to check whether the key i is set or not. and set it in the first time we enter the open callback
from behavior3js.
@linhaiwei123 would you be able to submit a PR with the failing test or a simple way to reproduce the bug?
from behavior3js.
open: function(tick) {
tick.blackboard.set('i', 0, tick.tree.id, this.id);
},
The Decorator of Limiter will reset "i" to zero when child status == b3.SUCCESS || status == b3.FAILURE。 +1 ,reset 0, +1 ,reset 0……
from behavior3js.
@wqhk would you be able to submit a PR with a failing test?
from behavior3js.
@danielepolencic I submit a PR. Learn BT this week, maybe misunderstand the usage of Limiter =。=
from behavior3js.
Related Issues (20)
- deploy to npm HOT 6
- Question: Selector node HOT 3
- How can I load JSON from the Editor into my game?
- how to compose 2 trees HOT 1
- bower.json not well formed HOT 1
- Wishlist for behavior3 HOT 2
- Add bower install to README.md HOT 1
- Modernize the codebase HOT 3
- npm package points to old version of the lib HOT 1
- MemSequence bug? HOT 2
- about Tick._openNodes HOT 2
- Zoom reverse in the editor HOT 1
- parallel support? HOT 2
- behavior3.com domain expired HOT 1
- wiki page is blank HOT 1
- add custom node
- Is it still maintained? HOT 1
- Build tasks combines classes in wrong order, breaking inheritance HOT 1
- Build tasks combines classes in wrong order, breaking inheritanc HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from behavior3js.