NodeCanvas Forums › Support › Binary selector switchs location of “true” and “false” connections randomly
Hi, another bug that happens on random, from my understanding the value of a connection for the binary selector is dependent on the location of the node, that is, if it’s on the left it is true if it is on the right it is flase.
That is nice an all, but sometimes, randomly, it switches and I need to go in the canvas, fiddle around with the positioning until it gets back to the correct value.
attached is a picture and the serialized graph value of that canvas that maybe will help with debugging the issue…
_serializedGraph: ‘{“type”:”NodeCanvas.BehaviourTrees.BehaviourTree”,”nodes”:[{“dynamic”:true,”_position”:{“x”:1154.0,”y”:452.6667},”$type”:”NodeCanvas.BehaviourTrees.Selector”,”$id”:”0″},{“_condition”:{“valueA”:{“_name”:”isUsingTool”,”_targetVariableID”:”71c78471-695a-4950-ad99-3da17270c476″},”valueB”:{“_value”:true},”$type”:”NodeCanvas.Tasks.Conditions.CheckBoolean”},”_position”:{“x”:769.6667,”y”:600.6667},”$type”:”NodeCanvas.BehaviourTrees.ConditionalEvaluator”,”$id”:”1″},{“_position”:{“x”:808.6667,”y”:745.6667},”$type”:”NodeCanvas.BehaviourTrees.Sequencer”,”$id”:”2″},{“_action”:{“method”:{“_baseInfo”:”Animation.CharacterAnimationController|Play|System.Void”,”_paramsInfo”:”Data.CharacterCustomization.MBAnimationState”},”parameters”:[{“_type”:”Data.CharacterCustomization.MBAnimationState”,”_name”:”activeToolAnimation”,”_targetVariableID”:”3ba8419d-64db-4c29-bd2b-99fc90e4cac9″}],”returnValue”:{},”$type”:”NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform”},”_tag”:”idle”,”_position”:{“x”:621.6667,”y”:862.3334},”$type”:”NodeCanvas.BehaviourTrees.ActionNode”,”$id”:”3″},{“_condition”:{“valueA”:{“_name”:”isUsingTool”,”_targetVariableID”:”71c78471-695a-4950-ad99-3da17270c476″},”valueB”:{},”$type”:”NodeCanvas.Tasks.Conditions.CheckBoolean”},”_position”:{“x”:882.6666,”y”:858.6667},”$type”:”NodeCanvas.BehaviourTrees.WaitUntil”,”$id”:”4″},{“_action”:{“method”:{“_baseInfo”:”Animation.CharacterAnimationController|Play|System.Void”,”_paramsInfo”:”Data.CharacterCustomization.MBAnimationState”},”parameters”:[{“_type”:”Data.CharacterCustomization.MBAnimationState”,”_value”:{“$content”:0,”$type”:”Data.CharacterCustomization.MBAnimationState”}}],”returnValue”:{},”$type”:”NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform”},”_tag”:”idle”,”_position”:{“x”:914.0,”y”:951.6667},”$type”:”NodeCanvas.BehaviourTrees.ActionNode”,”$id”:”5″},{“isDynamic”:true,”_condition”:{“valueA”:{“_name”:”IsIdle”,”_targetVariableID”:”d1779afe-2622-48e1-8913-b3b15fc971eb”},”valueB”:{“_value”:true},”$type”:”NodeCanvas.Tasks.Conditions.CheckBoolean”},”_position”:{“x”:1135.116,”y”:595.1533},”$type”:”NodeCanvas.BehaviourTrees.ConditionalEvaluator”,”$id”:”6″},{“_position”:{“x”:1162.667,”y”:727.0},”$type”:”NodeCanvas.BehaviourTrees.Selector”,”$id”:”7″},{“isDynamic”:true,”_condition”:{“$type”:”AI.Conditions.IsSelectedItemHeldAboveHead”},”_position”:{“x”:1088.0,”y”:830.3332},”$type”:”NodeCanvas.BehaviourTrees.ConditionalEvaluator”,”$id”:”8″},{“_action”:{“method”:{“_baseInfo”:”Animation.CharacterAnimationController|Play|System.Void”,”_paramsInfo”:”Data.CharacterCustomization.MBAnimationState”},”parameters”:[{“_type”:”Data.CharacterCustomization.MBAnimationState”,”_value”:{“$content”:1,”$type”:”Data.CharacterCustomization.MBAnimationState”}}],”returnValue”:{},”$type”:”NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform”},”_tag”:”idle”,”_position”:{“x”:1149.333,”y”:955.0001},”$type”:”NodeCanvas.BehaviourTrees.ActionNode”,”$id”:”9″},{“_action”:{“method”:{“_baseInfo”:”Animation.CharacterAnimationController|Play|System.Void”,”_paramsInfo”:”Data.CharacterCustomization.MBAnimationState”},”parameters”:[{“_type”:”Data.CharacterCustomization.MBAnimationState”,”_value”:{“$content”:0,”$type”:”Data.CharacterCustomization.MBAnimationState”}}],”returnValue”:{},”$type”:”NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform”},”_tag”:”idle”,”_position”:{“x”:1361.333,”y”:841.0001},”$type”:”NodeCanvas.BehaviourTrees.ActionNode”,”$id”:”10″},{“_condition”:{“$type”:”AI.Conditions.IsSelectedItemHeldAboveHead”},”_position”:{“x”:1762.333,”y”:543.6667},”$type”:”NodeCanvas.BehaviourTrees.BinarySelector”,”$id”:”11″},{“_condition”:{“valueA”:{“_name”:”IsWalking”,”_targetVariableID”:”f0826ef2-1b8e-4ca0-958b-5450e3d64dbf”},”valueB”:{“_value”:true},”$type”:”NodeCanvas.Tasks.Conditions.CheckBoolean”},”_position”:{“x”:1977.001,”y”:681.6668},”$type”:”NodeCanvas.BehaviourTrees.BinarySelector”,”$id”:”12″},{“_action”:{“method”:{“_baseInfo”:”Animation.CharacterAnimationController|Play|System.Void”,”_paramsInfo”:”Data.CharacterCustomization.MBAnimationState”},”parameters”:[{“_type”:”Data.CharacterCustomization.MBAnimationState”,”_value”:{“$content”:2,”$type”:”Data.CharacterCustomization.MBAnimationState”}}],”returnValue”:{},”$type”:”NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform”},”_tag”:”Move”,”_position”:{“x”:2089.333,”y”:838.3333},”_comment”:”walk
item”,”$type”:”NodeCanvas.BehaviourTrees.ActionNode”,”$id”:”13″},{“_action”:{“method”:{“_baseInfo”:”Animation.CharacterAnimationController|Play|System.Void”,”_paramsInfo”:”Data.CharacterCustomization.MBAnimationState”},”parameters”:[{“_type”:”Data.CharacterCustomization.MBAnimationState”,”_value”:{“$content”:4,”$type”:”Data.CharacterCustomization.MBAnimationState”}}],”returnValue”:{},”$type”:”NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform”},”_tag”:”Move”,”_position”:{“x”:1899.333,”y”:839.0},”_comment”:”run
item”,”$type”:”NodeCanvas.BehaviourTrees.ActionNode”,”$id”:”14″},{“_condition”:{“valueA”:{“_name”:”IsWalking”,”_targetVariableID”:”f0826ef2-1b8e-4ca0-958b-5450e3d64dbf”},”valueB”:{“_value”:true},”$type”:”NodeCanvas.Tasks.Conditions.CheckBoolean”},”_position”:{“x”:1628.775,”y”:695.5807},”$type”:”NodeCanvas.BehaviourTrees.BinarySelector”,”$id”:”15″},{“_action”:{“method”:{“_baseInfo”:”Animation.CharacterAnimationController|Play|System.Void”,”_paramsInfo”:”Data.CharacterCustomization.MBAnimationState”},”parameters”:[{“_type”:”Data.CharacterCustomization.MBAnimationState”,”_value”:{“$content”:5,”$type”:”Data.CharacterCustomization.MBAnimationState”}}],”returnValue”:{},”$type”:”NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform”},”_tag”:”Move”,”_position”:{“x”:1552.442,”y”:843.5807},”_comment”:”run”,”$type”:”NodeCanvas.BehaviourTrees.ActionNode”,”$id”:”16″},{“_action”:{“method”:{“_baseInfo”:”Animation.CharacterAnimationController|Play|System.Void”,”_paramsInfo”:”Data.CharacterCustomization.MBAnimationState”},”parameters”:[{“_type”:”Data.CharacterCustomization.MBAnimationState”,”_value”:{“$content”:3,”$type”:”Data.CharacterCustomization.MBAnimationState”}}],”returnValue”:{},”$type”:”NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform”},”_tag”:”Move”,”_position”:{“x”:1731.775,”y”:838.2474},”_comment”:”walk”,”$type”:”NodeCanvas.BehaviourTrees.ActionNode”,”$id”:”17″}],”connections”:[{“_sourceNode”:{“$ref”:”0″},”_targetNode”:{“$ref”:”1″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”0″},”_targetNode”:{“$ref”:”6″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”0″},”_targetNode”:{“$ref”:”11″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”1″},”_targetNode”:{“$ref”:”2″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”2″},”_targetNode”:{“$ref”:”3″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”2″},”_targetNode”:{“$ref”:”4″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”4″},”_targetNode”:{“$ref”:”5″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”6″},”_targetNode”:{“$ref”:”7″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”7″},”_targetNode”:{“$ref”:”8″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”7″},”_targetNode”:{“$ref”:”10″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”8″},”_targetNode”:{“$ref”:”9″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”11″},”_targetNode”:{“$ref”:”12″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”11″},”_targetNode”:{“$ref”:”15″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”12″},”_targetNode”:{“$ref”:”13″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”12″},”_targetNode”:{“$ref”:”14″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”15″},”_targetNode”:{“$ref”:”16″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”},{“_sourceNode”:{“$ref”:”15″},”_targetNode”:{“$ref”:”17″},”$type”:”NodeCanvas.BehaviourTrees.BTConnection”}],”canvasGroups”:[],”localBlackboard”:{“_variables”:{“velocity”:{“_propertyPath”:”Player.CharacterMover.Velocity”,”_name”:”velocity”,”_id”:”44d0c251-f78d-4c54-94fc-566cea5c30f2″,”$type”:”NodeCanvas.Framework.Variable1[[UnityEngine.Vector2,
1[[System.Single,
UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]”},”vertical”:{“_propertyPath”:”Player.CharacterMover.VerticalSteering”,”_name”:”vertical”,”_id”:”37b638c0-a89f-4ca1-a595-be944da420a7″,”$type”:”NodeCanvas.Framework.Variable
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]”},”horizontal”:{“_propertyPath”:”Player.CharacterMover.HorizontalSteering”,”_name”:”horizontal”,”_id”:”74f83cd3-0f5a-4d44-8d29-8bf9ed5a43c5″,”$type”:”NodeCanvas.Framework.Variable1[[System.Single,
1[[Animation.CharacterAnimationController,
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]”},”characterAnimationController”:{“_name”:”characterAnimationController”,”_id”:”d3dc4d2b-b95d-4c66-ae4f-dfb3c9ff6334″,”$type”:”NodeCanvas.Framework.Variable
Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]”},”IsWalking”:{“_propertyPath”:”Player.CharacterMover.IsWalking”,”_name”:”IsWalking”,”_id”:”f0826ef2-1b8e-4ca0-958b-5450e3d64dbf”,”$type”:”NodeCanvas.Framework.Variable1[[System.Boolean,
1[[System.Boolean,
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]”},”IsIdle”:{“_propertyPath”:”Player.CharacterMover.IsIdle”,”_name”:”IsIdle”,”_id”:”d1779afe-2622-48e1-8913-b3b15fc971eb”,”$type”:”NodeCanvas.Framework.Variable
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]”}}},”derivedData”:{“repeat”:true,”$type”:”NodeCanvas.BehaviourTrees.BehaviourTree+DerivedSerializationData”}}’
Hello and sorry for the late reply.
Can you please send the serialized graph file to support_AT_paradoxnotion.com ?
Thank you.
Join us on Discord: https://discord.gg/97q2Rjh