Multiple issues with NodeCanvas

NodeCanvas Forums Support Multiple issues with NodeCanvas

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11224
    adsilcott
    Participant

    I bought nodeCanvas a few days ago. I like it but I’ve had many problems with it.

    The first issue I had was the Time class didn’t show up in the menu. I saw it in the custom variable list, but it’s not in any of the menus, which was making time-based conditions impossible. There also seems to be no way to access Input axes. My custom interfaces also weren’t showing up in the menu, even after adding them as a custom variable. Non-interface custom classes showed up fine.

    A strange behavior started, after dragging out a connector to make a new node, it would get stuck drawing a selection box, even though the mouse wasn’t down. This was an annoyance, but not a deal breaker.

    The first major problem was the contents of subtrees started disappearing. A behavior would suddenly be gone, and while investigating it I would open the subtree in question and all the nodes would be gone. Even hitting f to focus, nothing. This happened four times, losing lots of work each time.

    Three times when switching away from the nodeCanvaas window Unity crashed suddenly.

    I was having so many problems that I decided to remove nodeCanvas and re-import it. After removing it I saw that it didn’t remove completely, it still had a menu in the menu bar. After re-importing it I tried to start the project and Unity would crash instantly. The one time I got it to stay open for a few seconds I got this error:

    StackOverflowException: The requested operation caused a stack overflow.
    NodeCanvas.Framework.GraphOwner.DoGizmos (NodeCanvas.Framework.Graph targetGraph) (at Assets/ParadoxNotion/NodeCanvas/Framework/Runtime/Graphs/GraphOwner.cs:239)

    I’ve had to remove nodeCanvas from my project in order to open it again. I’ve not had these kinds of problems with any other assets.

    #11225
    adsilcott
    Participant

    I started a new project, installed nodeCanvas, then dropped my assets into it, and got the same error and crash. I need to know how to stop this crash.

    #11226
    adsilcott
    Participant

    So I removed nodeCanvas, removed all noveCanvas components from all my gameobjects, then re-imported nodeCanvas and added back all of the components, and set up all of the variables again, and now it’s working. That was a lot of work. I got the stack overflow error again while I was setting it up, but no crash. I also got this error once or twice:

    I’m hoping that the strange behaviors and crashing stop after this and the the sub trees stop disappearing. I’d still like to know how to get the Time and custom interface types to show up, and how to access Input Axis values.

    #11227
    Gavalakis
    Keymaster

    Hello,

    First of all thanks for getting NodeCanvas.
    These are a lot of really strange issues you are facing indeed.

    The first thing I would like to ask, would be what version of Unity you are using, as well as what operating system are you on?

    The most major issue here and probably the cause of most of them seems to be the crashes.
    The crashes along with the stack overflow, makes me think that you are using cross-referenced SubTrees within other SubTrees. Do you happen for example to have a SubTree hierarchy similar to this bellow? :

    SubTree A
    –SubTree B
    —-SubTree A

    If not, can you please share a bit more information on your Behaviour Trees setup?

    SubTree contents disappearing can also be very relevant to these crashes, since if Unity crashes, it does not save asset file changes.
    Do SubTree contents disappear after a crash when you re-open Unity? If not, and the contents disappear while working in Unity, is there any error logged in the console at all?

    Regarding showing Time and Input, are you referring showing them up in the “Script Control/Check Property” condition menu, or some other menu?

    Regarding your custom Interface, does it have any member(property/method) at all? Types will only show to be added as a Variable only if they have at least one public member within. Does your interface has one?

    Please let me know, especially regarding the possibility of using cross-referenced SubTrees, since resolving the crashes is the most major problem you are facing and the cause of others as well. Once this is resolved, we can continue resolving your other questions/requests.

    Thanks in advance.

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

    #11231
    adsilcott
    Participant

    Thank you for the reply. I’m using Unity 5.3.5f1 on Windows 10.

    Yes, I was using crossed referenced subtrees. I wasn’t aware that was a problem, although honestly I was surprised when it worked. I removed it and it seems to be back to normal.

    The disappearing subtrees however, I remember that starting before unity crashed the first time and I thought before I added the cross referenced subtree. It seemed to happen after I renamed some of the subtrees, or rather added a name to the node that points to the subtree. But I’ll see if it happens again after removing the cross reference, maybe my memory is wrong.

    The interface I tried has three methods, no properties. Interface members are public by default:

    They way I was trying to use it: On an execute method action, I have a gameobject that has a “public class Door : MonoBehaviour, IInteractables” component. In code I access the methods through the IInteractables interface. In this case I added “Door” as a custom variable and that shows up on the list. Which works, but it seems like the interface should work too.

    Yes that’s one of the places I was looking for Time. I just thought it was odd that there seems to be no way to get to the time class, but I’m just going to write custom conditions for the time based conditions I need. I also figured out the input issue.

    That just leaves the selection box issue, which is just a minor annoyance.

    So hopefully things are mostly resolved. Thanks again.

    #11241
    Gavalakis
    Keymaster

    Hello again,

    Thanks for letting me know. Thankfully it was indeed cross-referenced subtrees and not something else.
    I don’t think you will get any more disappearing SubTrees. It has to be due to the crashes, but if not and this happens again outside of a crash, please let me know.

    Regarding using interfaces in the Script Control (Execute Function, Get Property etc) tasks, it is currently not possible for some minor reasons, which I will take a look and see to make it possible in a future update.

    I will also take a look at adding a Check Static Property/Function condition task. It seems that I somewhat missed that, so thanks for the pointer 🙂

    Finally for the selection box issue you are facing, is there any specific steps to reproduce this, considering that it is still happening to you?

    Let me know.
    Thanks again!

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

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