Reply To: Parallel node does not work correctly on first run

NodeCanvas Forums Support Parallel node does not work correctly on first run Reply To: Parallel node does not work correctly on first run

#17549
gotenxds
Participant

Gavalakis, I took me a few hours but I was able to create a minimal graph that does reproduce this issue using only native nodecanvas components,
here is a gif of the issue and an explanation on how to reproduce it.

So, this is a bit complicated and I did not dive into the graph code so I have no idea why this is happening but,
To reproduce this you need
1. A parallel root
2. A selector leading to a DYNAMIC conditional node that is set to return failure on first run, I’l call this condition A
3. A sequencer that leads from the parallel root and is waiting until a different condition, We will call this one condition B

To reproduce this, it is very important that the conditional node (A) will first return failure on the first time.
Then, switch it’s condition (A) so it returns true.
Now that the A node is engaged (In this case I just wait for ever) switch condition B to be true too.
This will cause a graph reset (only on the first time!)

Unity_X7QBQA5DUi

Attachments:
  1. image_2024-02-27_050133360.png

  2. Unity_X7QBQA5DUi.gif