Something strange happened

NodeCanvas Forums Support Something strange happened

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #16027
    nantianliao
    Participant

    Please give me some help, thank you

    Attachments:
    You must be logged in to view attached files.
    #16040
    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.

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

    #16045
    nantianliao
    Participant

    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.

    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.

    #16046
    nantianliao
    Participant

    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.

    Attachments:
    You must be logged in to view attached files.
    #16048
    nantianliao
    Participant

    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.

    In addition, every time you stop playing the editor, you will be prompted with an error.

    Attachments:
    You must be logged in to view attached files.
    #16055
    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).

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

    #16059
    nantianliao
    Participant

    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).

    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.