[4.7] Why is my Blackboard key with Instance Synced enabled not working?

I’m trying out the new Instance Synced option for a blackboard key.
I have a party of four pawns using the same BehaviorTree/Blackboard. They are created using the SpawnAIFromClass node, where I set the same BT/BB for the four of them

In the blackboard I have an Enum key named PartyState (with InstanceSynced enabled) that I’m setting from a AIController like this:

31303-setpartystate.png

The controlled pawn of this AIController gets the new value, but the other three pawns are not getting it.

Maybe I didn’t understand what Instance Synced does, or I’m using it wrong.

Is your PartyState enum native or BP-created enum type?

–mieszko

it’s BP-created. (just realized that the input in the picture is called HeroState, it should be PartyState).

It seems there’s a bug that results in AI’s BlackboardComponent never getting registered for synced keys update. The relevant code just got stomped at some point :confused: I’ve just fixed in and I’ll push for the fix to be in 4.7.1

Cheers,

–mieszko

I just downloaded version 4.7.1 from the launcher and it doesn’t seem to be working still. Is the fix in this version?

The fix didn’t make it to 7.4.1, but will be in 7.4.2 that’s coming out shortly.