NodeCanvas Forums › Support › Something strange happened
Tagged: bug
Please give me some help, thank you
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
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.
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.
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.
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
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!