Enter First Node is much more late than intended, after upgrading 3.2.5

NodeCanvas Forums Support Enter First Node is much more late than intended, after upgrading 3.2.5

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16274
    whitedoggy
    Participant

    Hi.

     

    Background.

    1. Upgrade 3.2.2 to 3.2.5

    2. GameObject with FsmOwner – First Activation: On Enable

    3. Send Graph Event to GameObject On StartĀ (late than first activation of fsmowner)

     

    Problem.

    On Previous Version

    – First State will be entererd before Sending Graph Event On Start. (Pic 1 activated first)

    – So It will create Event Router before Sending Graph Event (Pic 2 activated later)

     

    On Current Version (3.2.5)

    – First State will be entered much much more later than Sending Graph Event On Start, even the first activation is setted to ‘On Enable’

    (Pic 2 activated first, Pic 2 activated later)

     

    Pictures:

    123

    This picture is showing ‘CheckEvent’ task’s OnEnable event.

    SendEvent

    Cause:

    changed1

    This picture is showing changes of FSM.cs

    It looks like it is causing because EnterState Function is called at OnGraphUpdate, not OnGraphStart. So, even first activation property has set to ‘OnEnable’, actual activation of first node will be much late.

    If I rollback this script to previous one, It will work as intended.

    I think this can be cause confusion to people who use. I think maybe you might need to reconsider this code?

    Also, I hope you could tell me what should I do, should I rollback this code or need to do other thing? I need to solve this because lots of contents might need to re-created If I need to keep this code….

     

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #16284
    Gavalakis
    Keymaster

    Hello there,

    This code change took place so that other non-state nodes (like On FSMĀ  Enter) execute before any actual state nodes. I will reconsider this code change and look at other ways to do that. If you want to rollback this particular piece of code, then you will NOT need to change anything else at all.

    Thanks!

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

    #16292
    whitedoggy
    Participant

    Hi.
    Thanks for your feedback.
    Yes, then I will only that part of the codes.
    Cheers.

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