tatoforever
New member
I get this error when using the Circle task from the Formation pack:
Our BTs are external, they are used in a pool system and we populate the leader variables through code before calling EnableBehavior() on every BT instance. The variables seems to be well populated cause I can select the BT attached to my AI at runtime and see the variables references/values in the Variable list.
NullReferenceException: Object reference not set to an instance of an object
BehaviorDesigner.Runtime.Formations.Tasks.FormationGroup.StartListeningForOrders (BehaviorDesigner.Runtime.Behavior agent) (at Assets/Behavior Designer Formations/Scripts/Tasks/FormationGroup.cs:157)
BehaviorDesigner.Runtime.Behavior.SendEvent[T] (System.String name, T arg1) (at <8273d6b105784beab3b1f76a8d030c0c>:0)
BehaviorDesigner.Runtime.Formations.Tasks.FormationGroup.OnUpdate () (at Assets/Behavior Designer Formations/Scripts/Tasks/FormationGroup.cs:375)
BehaviorDesigner.Runtime.BehaviorManager.RunTask (BehaviorDesigner.Runtime.BehaviorManager+BehaviorTree behaviorTree, System.Int32 taskIndex, System.Int32 stackIndex, BehaviorDesigner.Runtime.Tasks.TaskStatus previousStatus) (at <8273d6b105784beab3b1f76a8d030c0c>:0)
BehaviorDesigner.Runtime.BehaviorManager.Tick (BehaviorDesigner.Runtime.BehaviorManager+BehaviorTree behaviorTree) (at <8273d6b105784beab3b1f76a8d030c0c>:0)
BehaviorDesigner.Runtime.BehaviorManager.Tick () (at <8273d6b105784beab3b1f76a8d030c0c>:0)
BehaviorDesigner.Runtime.BehaviorManager.Update () (at <8273d6b105784beab3b1f76a8d030c0c>:0)
Our BTs are external, they are used in a pool system and we populate the leader variables through code before calling EnableBehavior() on every BT instance. The variables seems to be well populated cause I can select the BT attached to my AI at runtime and see the variables references/values in the Variable list.
Last edited: