[RESOLVED] PlatformNotSupportedException binding blackboard Properties in Awake

NodeCanvas Forums Support [RESOLVED] PlatformNotSupportedException binding blackboard Properties in Awake

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14428
    stogs
    Participant

     

    [RESOLVED] I found the problem to be that in Project Settings / Player / Configuration that the API Compatibility level for .net was 2.0. Settings it to .NET 4.x resolved the issue.

    Hello

    We just started using NodeCanvas for our AI in our project did our first standalone mac build this afternoon. We hit this exception when an AI controller prefab with a NodeCanvas behaviour tree on it was instantiated into the world. This works fine in PlayMode in the editor on mac.

    I don’t know why this is happening, I will try a standalone windows build this evening and see if this also occurs on windows. The blackboard has half a dozen entries which are bound to values on the AI controller monobehaviour.

    UPDATE: This same exception occurs on a windows build. So I am assuming its something I’ve done with binding blackboard variables and instantiating the prefab? Tested with a instance already in the scene, this also generates this exception.

    Any help with understanding why this is happening would be much appreciated.

    regards

     

    PlatformNotSupportedException: Operation is not supported on this platform.

    at (wrapper managed-to-native) System.MonoCustomAttrs.GetCustomAttributesInternal(System.Reflection.ICustomAttributeProvider,System.Type,bool)

    at System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) [0x00013] in <c6bd535f6ab848b4a13f34d01b756eef>:0

    at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) [0x00037] in <c6bd535f6ab848b4a13f34d01b756eef>:0

    at System.RuntimeType.GetCustomAttributes (System.Boolean inherit) [0x00000] in <c6bd535f6ab848b4a13f34d01b756eef>:0

    at ParadoxNotion.ReflectionTools.RTGetAttribute[T] (System.Type type, System.Boolean inherited) [0x00016] in /Users/x/Dev/wb/project/Assets/ParadoxNotion/CanvasCore/Common/Runtime/ReflectionTools.cs:729

    at ParadoxNotion.ReflectionTools.TryResolveDeserializeFromAttribute (System.String typeName) [0x00011] in /Users/x/Dev/wb/project/Assets/ParadoxNotion/CanvasCore/Common/Runtime/ReflectionTools.cs:157

    at ParadoxNotion.ReflectionTools.GetType (System.String typeFullName, System.Boolean fallbackNoNamespace, System.Type fallbackAssignable) [0x0008a] in /Users/x/Dev/wb/project/Assets/ParadoxNotion/CanvasCore/Common/Runtime/ReflectionTools.cs:58

    at NodeCanvas.Framework.Variable`1[T].InitializePropertyBinding (UnityEngine.GameObject go, System.Boolean callSetter) [0x0006d] in /Users/x/Dev/wb/project/Assets/ParadoxNotion/CanvasCore/Framework/Runtime/Variables/Variable.cs:232

    at NodeCanvas.Framework.Internal.BlackboardSource.InitializePropertiesBinding (UnityEngine.GameObject targetGO, System.Boolean callSetter) [0x0001e] in /Users/x/Dev/wb/project/Assets/ParadoxNotion/CanvasCore/Framework/Runtime/Variables/Internal/BlackboardSource.cs:59

    at NodeCanvas.Framework.Blackboard.Awake () [0x00001] in /Users/x/Dev/wb/project/Assets/ParadoxNotion/CanvasCore/Framework/Runtime/Variables/Blackboard.cs:59

    #14433
    Gavalakis
    Keymaster

    Hello,

    Thank you very much for the update on the cause of error. Even though I do indeed recomend .Net 4.x, I will have to take a look at this so that Net 2 is also supported.

    Thanks again 🙂

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

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