adbourdages

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: WP8 crashes and exceptions with NC2.3.7 #9517

    Hello,

    So I tested commenting GatherDeledate() at line 42. The exception are gone, but not everything is entirely kosher still. I’m getting this error on an ActionNode with a DebugLogText action on it (and the ‘Hello World’ was not sent to the console). Obvisouly, this doesn’t happen in the editor.

    There was also a couple of NullReferenceException trapped by Visual Studio in the debug log before it, but I don’t know if they are related since there always are some of those when running a project through VS.

    Cheers,
    Alain-Daniel

    in reply to: WP8 crashes and exceptions with NC2.3.7 #9519

    Hello again,

    I hate to be the bearer of bad news, but the fix didn’t work, but I also have more information for you. Let’s do things in order however.

    Issue #1: I’m on Unity 5.1.2f1. Looking at my Player Settings to spot something that may influence that behaviour, I find that the “Api Compatibility Level” is set to “.Net 2.0 Subset”. I don’t really see anything else. This is a brand new project created from scratch to test these issues, so I haven’t messed with any settings really.

    Ok, now Issue #2. I have made the change you suggested. However what you say was at line 95 (instance = Graph.Clone<Graph>(originalGraph)) for me is at line 108. I am wondering if I have the right version of NC now… but I installed from the Asset Store a couple of days ago.

    After the change, I still get an exception about “GetComponent” but from a different location:

    Sometime over the weekend, I had submitted a bug to Unity about this exact problem. Here is the answer they sent back:

    Thank you for reporting the issue.

    It appears that you are trying to call the method from the wrong thread. In order for the code to work you have to call it like this:

    private void Unity_Loaded()
    {

    UnityPlayer.UnityApp.BeginInvoke(() =>
    {
    //your code
    });

    }

    That makes some sense considering the exception call stack, but after a quick look, I can’t see where the original Invoke would be. Also, why does it even work in the editor/other_platforms it that is the case?

    Cheers,
    Alain-Daniel

    in reply to: WP8 crashes and exceptions with NC2.3.7 #9521

    Hi Gavalakis,

    For the 1st issue: I don’t know… could be different version of Unity?

    2nd issue: the code didn’t work out. Still exactly the same crash. Actually, I tested just running a ‘GetComponents<Component>()’ for fun and that crashes as well…

    Alain-Daniel

    in reply to: ValidateList() bug? #9632

    Hi,

    No, that didn’t happen. I just noticed the function and the Remove() caught my eye.

    Thanks for listening & fixing 🙂

    in reply to: How to save/load graph in game at run time. #8810

    Hello,

    I am looking for a bit of clarification on the Serialization/Deserialization of graphs here. What does Graph.Deserialize() do?
    – does it create a brand new graph from the connections/node in the JSON string?
    – or does it *update* the current graph from the JSON data (like current state, elapsed time on all the nodes)?

    Basically, I’m wondering how to save/restore the *state* of a *running* graph during play. For instance, let say the current node has a Wait on it with 0.2s left on a 1s timer (Wait time = 1s with 0.8s on the elapsed time). On restore, the graph needs to set the active node to the one with Wait action (if it is not the Start node) and set the elapsed time on it.

    Clearly, this is a simple example, more complex actions can have more advanced internal state.

    Cheers,
    Alain-Daniel

Viewing 5 posts - 1 through 5 (of 5 total)