fian46 / addons-btree

Visual Behavior Tree
MIT License
115 stars 19 forks source link

Blackboard? #14

Open shayneoneill opened 4 years ago

shayneoneill commented 4 years ago

First off, congrats on a great library. The one in the assetlib leaves a little to be desired (Its got hardcoded paths to the authors D: drive, doh) but this works just great. The question I have is twofold, does this support a blackboard, or some sort of backing store for state. The secondly, is it possible to instantiate a behavior tree such that its not part of the scene graph?

fian46 commented 4 years ago

First your script is the blackboard be creative with parameters and you have one. I leaves blackboard implementations to the user. The second i bet you can use runtime.gd and call create_runtime with target and dictionary tree from tree editor.

shayneoneill commented 4 years ago

I did implement a blackboard by editing the library to let you add a link to a "Blackboard" object and then specify in parameters. I'll upload it at some point later when I've cleaned it up and PR back. I get what you mean, but the blackboard concept is fairly intrinsic to the power of behavior trees as a data-driven pardgim, as it allows reuse and separation of data and implementation

fian46 commented 4 years ago

That is cool if you can make a PR. 😄