JordanSebastian
New member
Hey,
This is a weird one. It seems to be coming from Behavior tree's serializer. I keep getting the exception "ArgumentOutOfRange: Non-negative number required"
See:
I've tried recreating various nodes. At one point in time this went away if I removed a particular node, now this sticks around no matter what. Happens when the project is first loaded and on play in the editor. Any ideas how to fix this?
This is a weird one. It seems to be coming from Behavior tree's serializer. I keep getting the exception "ArgumentOutOfRange: Non-negative number required"
See:
Code:
ArgumentOutOfRangeException: Non-negative number required.
Parameter name: count
System.Text.UTF8Encoding.GetString (System.Byte[] bytes, System.Int32 index, System.Int32 count) (at <437ba245d8404784b9fbab9b439ac908>:0)
BinaryDeserialization.BytesToString (System.Byte[] bytes, System.Int32 dataPosition, System.Int32 dataSize) (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BinaryDeserialization.LoadField (BehaviorDesigner.Runtime.FieldSerializationData fieldSerializationData, System.Collections.Generic.Dictionary`2[TKey,TValue] fieldIndexMap, System.Type fieldType, System.String fieldName, System.Int32 hashPrefix, BehaviorDesigner.Runtime.IVariableSource variableSource, System.Object obj, System.Reflection.FieldInfo fieldInfo) (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BinaryDeserialization.LoadNodeData (BehaviorDesigner.Runtime.FieldSerializationData fieldSerializationData, System.Collections.Generic.Dictionary`2[TKey,TValue] fieldIndexMap, BehaviorDesigner.Runtime.Tasks.Task task) (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BinaryDeserialization.LoadTask (BehaviorDesigner.Runtime.TaskSerializationData taskSerializationData, BehaviorDesigner.Runtime.FieldSerializationData fieldSerializationData, System.Collections.Generic.List`1[BehaviorDesigner.Runtime.Tasks.Task]& taskList, BehaviorDesigner.Runtime.BehaviorSource& behaviorSource) (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BinaryDeserialization.Load (BehaviorDesigner.Runtime.TaskSerializationData taskData, BehaviorDesigner.Runtime.BehaviorSource behaviorSource) (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BehaviorDesigner.Runtime.BehaviorSource.CheckForSerialization (System.Boolean force, BehaviorDesigner.Runtime.BehaviorSource behaviorSource) (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BehaviorDesigner.Runtime.Behavior.CheckForSerialization () (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BehaviorDesigner.Runtime.BehaviorManager.LoadBehavior (BehaviorDesigner.Runtime.Behavior behavior, UnityEngine.GameObject behaviorGameObject, System.String gameObjectName, UnityEngine.Transform behaviorTransform) (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BehaviorDesigner.Runtime.BehaviorManager.EnableBehavior (BehaviorDesigner.Runtime.Behavior behavior) (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BehaviorDesigner.Runtime.Behavior.EnableBehavior () (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BehaviorDesigner.Runtime.Behavior.Start () (at <ddb5579d0d23478c9f73ec2f99600079>:0)
I've tried recreating various nodes. At one point in time this went away if I removed a particular node, now this sticks around no matter what. Happens when the project is first loaded and on play in the editor. Any ideas how to fix this?