Sequence Decorator: Blackboard Invalid

Good day
I am pretty sure I did everything according to the video, but when I add the Blackboard Decorator to the Patrol node in the Behavior Tree, it just says Blackboard: Invalid. Because of this issue, I am unable to set the boolean value for chasing, it does not give me any variables to choose from at all.

In the Output Log I get: “LogBehaviorTree: Warning: Can’t initialize BTDecorator_Blackboard_4 due to missing blackboard data.” I have tried deleting the Blackboard and creating a new one, but that did not help either. Not sure if you are suppose to be able to set the Blackboard key on the Decorator, but the Blackboard key says None and there is nothing to choose from.

Edit: I also just noticed that I cannot even change between Behavior Tree and Blackboard using the two buttons at the top:

Just to make sure, can you create a new blackboard and behaviour tree to see if the issue still occurs? You don’t have to delete the old ones just yet.

Strange, I originally did delete the blackboard and tried creating it again, but that did not work. I now did as you suggested and deleted both the blackboard and the behavior tree, but also the tasks. After recreating them all it seems to have solved the issue. Although, when I clicked on the Patrol sequence to set to select the new boolean variable from the blackboard it was not available, only the SelfActor was available. I then checked the Blackboard key and instead of none when I had the Blackboard: Invalid error, it now had SelfActor selected. I noticed that i could change it to Chasing, the boolean variable that I created in the blackboard. After selecting Chasing in the Blackboard Key, the variable became available under the Keys section of the Patrol Sequence. I will now continue with the course and see if everything is working as it should. Hopefully everything is sorted now.

@Tuomo_T, thanks for the help.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms