You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Graph Viewer (GOAP) shows invalid branches when multiple conditions are used on actions.
If an action has multiple conditions ( Condition A and Condition B) and previously executed actions in the chain will make one condition true (A) and make the other condition false (B) the branch will show in the graph, even though the branch is invalid and would never execute.
Steps to Reproduce
Steps to reproduce the behavior:
Create an action (Action 0) with two conditions A & B.
Create 5 additional actions:
Action 1) Makes condition A true and has an .Effect that makes condition B false.
Action 2) Makes condition B true and has an .Effect that makes condition A false,
Action 3) Makes condition A & B true.
Action 4) Makes condition A true and has a condition C requirement
Action 5) Makes condition B true and has a .Effect that make condition C true
Make Action 0 a requirement for a goal.
Create an agent and a capability to allow for the actions to be assigned to the agent.
Observe the agent's graph in the Graph Viewer. Notice the construction of invalid branches.
Expected behavior
Invalid branches would not appear in the Graph Viewer and would not be available to resolver.
Screenshots
Unity Version
2022.3.16f1
Unity.Collections Version
Please mention the Unity.Collections version you are using.
Package Version
GOAP version 3.0.24
Additional context
Refer to Discord conversation for images and conversation refresher.
The text was updated successfully, but these errors were encountered:
Describe the bug
The Graph Viewer (GOAP) shows invalid branches when multiple conditions are used on actions.
If an action has multiple conditions ( Condition A and Condition B) and previously executed actions in the chain will make one condition true (A) and make the other condition false (B) the branch will show in the graph, even though the branch is invalid and would never execute.
Steps to Reproduce
Steps to reproduce the behavior:
Expected behavior
Invalid branches would not appear in the Graph Viewer and would not be available to resolver.
Screenshots


Unity Version
2022.3.16f1
Unity.Collections Version
Please mention the Unity.Collections version you are using.
Package Version
GOAP version 3.0.24
Additional context
Refer to Discord conversation for images and conversation refresher.
The text was updated successfully, but these errors were encountered: