Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blackboard #50

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Blackboard #50

wants to merge 7 commits into from

Conversation

faximilie
Copy link

Add a blackboard which seems to be standard practice for tracking data in Behavior trees

@fian46
Copy link
Owner

fian46 commented Apr 18, 2021

I am not really sure how practical the blackboard is. How to use it in behavior tree. How to really debug your stored data inside another dictionary in another node. In the current implementation, your script is your blackboard and you must define it clearly as global variable in your script, you can't just put any random variable that hard to debug. When bug come around you can see the content of your bugged variable in the godot debugger easily. Observing content of a dictionary in another node in godot is so much harder.

@demihumandev
Copy link

demihumandev commented Jun 7, 2021

Add a blackboard which seems to be standard practice for tracking data in Behavior trees

why would you implement a blackboaard when you can just...

#entity script
var myblackboard := {}

func sometask(task):
    var myVar = myBlackboard[task.get_param(0)])
    #do stuff with var
    task.succeed()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants