Lost configuration on node

NodeCanvas Forums Support Lost configuration on node

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #15515
    Sanity
    Participant

    My team and I are running into  a bug where our node parameter getting set to null  at (what seems like) random moments.  In my experience when the reference is lost all nodes of this type have this value set to null, but my team was reporting instances where only one subtree lost it’s references too.

    I am having very hard time pinning down the cause so I will try to give all relevant context
    • The tree is NOT scene bound, and it references only assets (prefabs)
    • The configuration I am losing is a custom node (source code below)
    • These nodes are in subtrees
    • This is not an issue of source control, I pulled down the same branch on two computers, one had null for references while the other had correct values.  On the machine with null references, I deleted the branch and then re-pulled, it started working again.

    Here is the code for my custom node, it’s the creepPrefab field that keeps getting lost, the creepSpawner field gets set dynamically from blackboard.

    I know this is not a lot to go off of, I just have hard time pinning it down myself.  Has anyone experienced something like this themselves?

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

    Hello there,
    Thank you for the info. Can you please also let me know what NodeCanvas as well as Unity versions are you using so that I can make some tests and try to reproduce here on the exact same versions?

    Thank you.

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

    #15528
    Sanity
    Participant

    Sweet, thanks.

    Unity Version:  2020.2.3f1

    Node canvas version: 3.1.8

    #15535
    Gavalakis
    Keymaster

    Hello again.
    Unfortunately I wasn’t really able to reproduce this in my end yet 🙁
    Just to confirm, are you using Unity Asset Database v1, or the new v2?
    Do you only have this problem with this specific custom node and prefab reference, or are there more similar happenings elsewhere as well?

    Please let me know.
    Thank you!

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

    #15547
    Sanity
    Participant

    Hi,

    We are using asset database v2.

    On the bright side, the issue has disappeared. Since we upgraded to unity Version 2020.3.1f.

    Still don’t have the cause or fix but I am not running into it anymore.  Fixed itself…

    #15550
    Gavalakis
    Keymaster

    Hello again and thanks for the follow up.
    Please let me know if this issue reappears for you at all.
    Thank you.

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

    #15762
    Sanity
    Participant

    Hello,  sad to report that the issue reappeared :/

    What we are running into is behaving exactly like what this guy described.  #15073

    Our fix right is the same too, just move some nodes around, save, reset on git.  Frankly annoying, but not a big deal, and I was not too worried about it until this popped up in a built game,  twice so far.

    Sorry I don’t have reproduction.  I just spent 20 minutes changing around things and switching branches, can’t get it to happen.

    Using Unity: 2021.3.12.f1 and NodeCanvas v3.18

    Any recommendations for this?

     

     

    #15769
    Sanity
    Participant

    Hello, want to bump this as it’s causing me grief from my team.

    Also realized that the link in my previous post is broken.  Sorry.  Here is the URL:

    https://nodecanvas.paradoxnotion.com/forums/topic/blackboard-onafterdeserialize-import-order/

    In that post you suggested code change to work around this issue.  Is that still a good idea? We have moved ahead in version since then.

    P.S. linking to other threads seems to be a broken feature of this forum. Even a simple link with URL does not seem to work… For me at least. Might be my side.

    #15780
    Gavalakis
    Keymaster

    Hello again and sorry for the late reply.

    Did this happen at all while using the previous version of Unity that you were using before?
    I would advise to please give the solution posted on that other thread a try. It is a very safe change, however and as always, I would advise making a backup before that change to be 100% on the safe side.

    Let me know. Thank you!

    ( PS: I will take a look at the forum linking problem )

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

    #15790
    Sanity
    Participant

    Ok, I’ve applied the changes, will let you know if I see the issue again.

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