[Bug] Input string was not in a correct format.


New member
I believe this is happening in version 1.5.11 (that's the latest version in the release notes pdf). Unity 2020.1.7f1

When I launch the behavior tree edit window, I get the following error:
FormatException: Input string was not in a correct format.
System.Version+VersionResult.SetFailure (System.Version+ParseFailureKind failure, System.String argument) (at <fb001e01371b4adca20013e0ac763896>:0)
System.Version.TryParseComponent (System.String component, System.String componentName, System.Version+VersionResult& result, System.Int32& parsedComponent) (at <fb001e01371b4adca20013e0ac763896>:0)
System.Version.TryParseVersion (System.String version, System.Version+VersionResult& result) (at <fb001e01371b4adca20013e0ac763896>:0)
System.Version.Parse (System.String input) (at <fb001e01371b4adca20013e0ac763896>:0)
System.Version..ctor (System.String version) (at <fb001e01371b4adca20013e0ac763896>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.DrawDebugToolbar () (at <e3a79e60720140409362e0f963215c15>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.Draw () (at <e3a79e60720140409362e0f963215c15>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.OnGUI () (at <e3a79e60720140409362e0f963215c15>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7dae22651edf474ead4ab15fa947a891>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7dae22651edf474ead4ab15fa947a891>:0)
UnityEditor.DockArea.OldOnGUI () (at <7dae22651edf474ead4ab15fa947a891>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <e11cddb636f444f68eec62123764f018>:0)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

The tree edit window is blank and I cannot edit the trees. When I play the game, the existing trees are running and the behaviors are working.

Things I've tried:
  1. Delete library files
  2. Upgrade behavior designer (I get a different error after upgrading)
Nothing has seemed to help yet. Let me know if you need anything else


Staff member
This is no longer an issue in the latest version of Behavior Designer. You are unable to directly upgrade from 1.5.11 to the latest version so that's likely the error you are getting. Send an email to support@opsive.com and I can send you a prior version which can load old trees.