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

BlackboardSetAction does not work in Godot 4.2 #265

Open
SavoVuksan opened this issue Dec 5, 2023 · 3 comments
Open

BlackboardSetAction does not work in Godot 4.2 #265

SavoVuksan opened this issue Dec 5, 2023 · 3 comments
Labels
🐛 bug Something isn't working

Comments

@SavoVuksan
Copy link

SavoVuksan commented Dec 5, 2023

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 SavoVuksan added the 🐛 bug Something isn't working label Dec 5, 2023
@christopwner
Copy link

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

@SavoVuksan
Copy link
Author

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?

@LeoDog896
Copy link
Contributor

#208 These two describe the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants