Something strange happened

Forums 💬 NodeCanvas ⚙️ Support Something strange happened

  • This topic has 0 replies, 2 voices, and was last updated 4 years ago by Gavalakis.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #15781
    nantianliao
    Participant

      Please give me some help, thank you

      #15787
      Gavalakis
      Keymaster

        Hello,

        Hello. Can you please describe the problem you are facing? If you refer to the UI connections, that can be fixed simply by moving the graph editor canvas to view the nodes. To do this easily, simply press the key “F” while the graph editor is open.

        Let me know if that works for you, or if you refer to something related to the FSM execution.

        Thank you.

        #15786
        nantianliao
        Participant

          [quote quote=16040]Hello, Hello. Can you please describe the problem you are facing? If you refer to the UI connections, that can be fixed simply by moving the graph editor canvas to view the nodes. To do this easily, simply press the key “F” while the graph editor is open. Let me know if that works for you, or if you refer to something related to the FSM execution. Thank you. [/quote]
          I created an fsmowner, but its actions could not be executed as expected. For example, I add a wait action to a state, but it won’t wait for a moment. I hope you can import the file provided by me and execute it so that you can understand the problems I encounter.

          #15785
          nantianliao
          Participant

            [quote quote=16040]Hello, Hello. Can you please describe the problem you are facing? If you refer to the UI connections, that can be fixed simply by moving the graph editor canvas to view the nodes. To do this easily, simply press the key “F” while the graph editor is open. Let me know if that works for you, or if you refer to something related to the FSM execution. Thank you. [/quote]

            #15784
            nantianliao
            Participant

              [quote quote=16040]Hello, Hello. Can you please describe the problem you are facing? If you refer to the UI connections, that can be fixed simply by moving the graph editor canvas to view the nodes. To do this easily, simply press the key “F” while the graph editor is open. Let me know if that works for you, or if you refer to something related to the FSM execution. Thank you. [/quote]
              In addition, every time you stop playing the editor, you will be prompted with an error.

              #15783
              Gavalakis
              Keymaster

                Hello there,

                Yes, I was able to import the fsm you attached. Please let me explain what is happening here.

                The central Action State (with the Wait action), does not execute the Wait action because as soon as the state starts executing, the transition condition on the right takes place immediately because its condition is true (the “tmpstr” is NOT null).

                Transition conditions are always evaluated per-frame even while the state is running and a transition will take place immediately even if that state is not yet finished. This allows the FSM to be more dynamic.

                With that said, if you want for a transition to be evaluated only AFTER a state has finished all its actions, then you can select the state (in this case the centra one with the Wait action), and in its inspector change the “Check Continously” setting to “Check After State Finished”. This will make the transition condition only be evaluated after the state has finished.

                Please let me know if this works for you.

                Thank you!

                (PS: I have fixed the error showing when you exit play mode and will be there in the next version).

                #15782
                nantianliao
                Participant

                  [quote quote=16055]Hello there, Yes, I was able to import the fsm you attached. Please let me explain what is happening here. The central Action State (with the Wait action), does not execute the Wait action because as soon as the state starts executing, the transition condition on the right takes place immediately because its condition is true (the “tmpstr” is NOT null). Transition conditions are always evaluated per-frame even while the state is running and a transition will take place immediately even if that state is not yet finished. This allows the FSM to be more dynamic. With that said, if you want for a transition to be evaluated only AFTER a state has finished all its actions, then you can select the state (in this case the centra one with the Wait action), and in its inspector change the “Check Continously” setting to “Check After State Finished”. This will make the transition condition only be evaluated after the state has finished. Please let me know if this works for you. Thank you! (PS: I have fixed the error showing when you exit play mode and will be there in the next version). [/quote]

                  Thank you very much for your help! It works for me!

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