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

🐛 ensure blackboard is always available #262

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

bitbrain
Copy link
Owner

@bitbrain bitbrain commented Dec 4, 2023

There are cases where the BeehaveTree may be used already but the tree may not be initialised yet. This pull request ensures that a blackboard will always be available at all times. So errors like these should not happen any longer:

line 178: Godot Runtime Error !
	'at: BeehaveTree.tick (res://addons/beehave/nodes/beehave_tree.gd:178)'
Error: 'Invalid call. Nonexistent function 'set_value' in base 'Nil'.'

Also added a test to verify that.

@bitbrain bitbrain merged commit d607a20 into godot-4.x Dec 4, 2023
@bitbrain bitbrain deleted the make-blackboard-resilient branch December 4, 2023 06:02
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.

1 participant