Skip to content

🐛 ensure blackboard is always available#262

Merged
bitbrain merged 1 commit into
godot-4.xfrom
make-blackboard-resilient
Dec 4, 2023
Merged

🐛 ensure blackboard is always available#262
bitbrain merged 1 commit into
godot-4.xfrom
make-blackboard-resilient

Conversation

@bitbrain

@bitbrain bitbrain commented Dec 4, 2023

Copy link
Copy Markdown
Owner

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