FSM 'Any' State Condition Problem

NodeCanvas Forums Support FSM 'Any' State Condition Problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10144

    Hi, I’ve attached an example of what my problem is, I might just not understand what is happening.

    I’ve added an FSM and dropped three nodes, 2 action state nodes and one ‘Any’ state node. I then set the on action state as my starting state and connect the other action state and ‘Any’ state together. On the ‘Any’ -> State connection I add a Check Button Input condition that will be true when the mouse button 0 is pressed.

    It should print out ‘Click’ when I press the mouse button when running this FSM but nothing is happening, what am I doing wrong?

    PS. some or other internal manager of NodeCanvas is making _MonoManager instances in the scene and not cleaning it up, it did not do this in the previous version.

    #10147
    Gavalakis
    Keymaster

    Hey,

    If an FSM has reached a Finished state that has no outgoing transition, the FSM will Fisnish as a whole too.
    So what happens here is that the state with the Log “Start” is instantely finished and because there are no outgoing transitions the FSM finish too.

    If you do not want further transitions to that state you can add the “Utilities/Run Forever” action on it, so that it is never finished.

    This behaviour is something that has changed more than one time, since some people prefer the FSM to finish is such a way, while others not to and keep the FSM running regardless 🙂
    If you’d like to remove this kind of behaviour completely you can do so by removing lines #51-#54 in FSM.cs

    Regarding the _MonoManager, I’m hunting down the case that this happens. It will be great if you have some insight as to when 🙂
    By the way you can delete the _MonoManager in the hierarchy when out of play mode when this does happen.

    Cheers!

    Join us on Discord: https://discord.gg/97q2Rjh

    #10146

    Thanks, that Action helped me get my state machines up and running again. 🙂

    I’ll also try and find when the _MonoManager is created and not destroyed and will post here if I find anything.

    #10145
    Gavalakis
    Keymaster

    Great
    Thanks 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

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