beehave icon indicating copy to clipboard operation
beehave copied to clipboard

BlackboardSetAction does not work in Godot 4.2

Open SavoVuksan opened this issue 2 years ago • 3 comments

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

image image

I think it would be nice to have some kind of documentation for the blackboard nodes.

SavoVuksan avatar Dec 05 '23 19:12 SavoVuksan

hey @SavoVuksan you may need to wrap your key in qoutes. regression testing for 4.2 and seems to work for me still
Screenshot_20231205_152801

christopwner avatar Dec 05 '23 21:12 christopwner

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?

SavoVuksan avatar Dec 07 '23 05:12 SavoVuksan

https://github.com/bitbrain/beehave/issues/208 These two describe the same issue.

tristan-f-r avatar Jan 29 '24 14:01 tristan-f-r