puksometron
Member
Hello,
I am using the Deathmatch AI Kit with the team behaviour tree. I have setup the enemy layers and added the team grouping, but when I start the match, the bots get stuck and their behaviour trees never get past the Reset task. There are also errors being logged in the console, namely this one:
I have manually added the Team Manager script to another GameObject. Also, I am using the PUN add-on, so these bots are being spawned over the network using the NetworkObjectPool class. I am testing using offline mode. There seems to be little documentation or tutorials on the team mode, so any assistance would be appreciated. Thank you.
I am using the Deathmatch AI Kit with the team behaviour tree. I have setup the enemy layers and added the team grouping, but when I start the match, the bots get stuck and their behaviour trees never get past the Reset task. There are also errors being logged in the console, namely this one:
Code:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <695d1cc93cca45069c528c15c9fdd749>:0)
Opsive.DeathmatchAIKit.TeamManager.CancelBackupRequestInternal (UnityEngine.GameObject player) (at Assets/Plugins/Opsive/DeathmatchAIKit/Scripts/Game/TeamManager.cs:341)
Opsive.DeathmatchAIKit.TeamManager.CancelBackupRequest (UnityEngine.GameObject player) (at Assets/Plugins/Opsive/DeathmatchAIKit/Scripts/Game/TeamManager.cs:326)
Opsive.DeathmatchAIKit.AI.Actions.Reset.OnUpdate () (at Assets/Plugins/Opsive/DeathmatchAIKit/Scripts/AI/Actions/Utility/Reset.cs:94)
BehaviorDesigner.Runtime.BehaviorManager.RunTask (BehaviorDesigner.Runtime.BehaviorManager+BehaviorTree behaviorTree, System.Int32 taskIndex, System.Int32 stackIndex, BehaviorDesigner.Runtime.Tasks.TaskStatus previousStatus) (at <58623c9461324266a5b7839460bb9d26>:0)
BehaviorDesigner.Runtime.BehaviorManager.Tick (BehaviorDesigner.Runtime.BehaviorManager+BehaviorTree behaviorTree) (at <58623c9461324266a5b7839460bb9d26>:0)
BehaviorDesigner.Runtime.BehaviorManager.Tick () (at <58623c9461324266a5b7839460bb9d26>:0)
BehaviorDesigner.Runtime.BehaviorManager.Update () (at <58623c9461324266a5b7839460bb9d26>:0)
I have manually added the Team Manager script to another GameObject. Also, I am using the PUN add-on, so these bots are being spawned over the network using the NetworkObjectPool class. I am testing using offline mode. There seems to be little documentation or tutorials on the team mode, so any assistance would be appreciated. Thank you.