BlackboardSetAction does not work in Godot 4.2
Beehave Version 2.79 Godot Version 4.2 [v4.2.stable.official [46dc27791]]
I tried using the BlackboardSetAction to set a value in the blackboard. It throws an error stating:
E 0:00:01:0489 blackboard_set.gd:18 @ tick(): Invalid named index 'player_sighted' for base type Object
<C++ Error> Condition "p_show_error" is true. Returning: Variant()
<C++ Source> core/math/expression.cpp:1507 @ execute()
<Stack Trace> blackboard_set.gd:18 @ tick()
beehave_tree.gd:188 @ tick()
beehave_tree.gd:172 @ _process_internally()
beehave_tree.gd:146 @ _physics_process()
Reproduce:
- Create Scene with Node3D
- Create BeehaveTree
- Create BlackboardSetAction
- Set key and value
- Start Scene
I think it would be nice to have some kind of documentation for the blackboard nodes.
hey @SavoVuksan you may need to wrap your key in qoutes. regression testing for 4.2 and seems to work for me still
Ok I tested it like you suggested and it works. Thanks ^^.
I still think it would be beneficial to have some documentation for those nodes maybe doc comments?
https://github.com/bitbrain/beehave/issues/208 These two describe the same issue.