[Bug] FSM doesn't start on when start node is linked only from "ANY STATE" note

Forums 💬 NodeCanvas ⚙️ Support [Bug] FSM doesn't start on when start node is linked only from "ANY STATE" note

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16422
    fmechkak
    Participant

      Bug depends on a specific configuration:

      – start node of the FSM is linked only from the “ANY STATE”

      – start node has no outgoing transitions (not even disabled ones, see workaround below)

      Repro:

      – create a FSM satisfying the conditions above

      – start the scene

      Expected:

      – the FSM is started and playing

      Observed:

      – the FSM is stopped

      – manually starting the FSM via the “Play” button has no effect

      – no error message in console

      Bug has been confirmed with your team via Discord, it’s apparently an unintended side effect of the FSM stopping itself when no more valid transitions are possible.

       

      WORKAROUND:

      – add an outgoing transition from the start state to a new state, and disable it.

      See screenshots.

      #16423
      Gavalakis
      Keymaster

        Hello there,

        Just to clarify, please note that the normal behavior is that the FSM will STOP if the FSM ends up on a Finished State without any outgoing Transitions AND there are also no other “Running” nodes like an AnyState or a ConcurrentState.

        With that said you’ve come across quite an edge case here in regards to order of execution. I’ve just fixed this for the next version. To fix this on your end meanwhile, please open up FSM.cs and change the contents of methods OnGraphUpdate to be like this:

        Please let me know if that works for you.
        Thank you.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.