Tutorial broken after Unity upgrade 5.6->2017



  • Hi,
    The tutorial defined in U3D 5.6 cannot be loaded anymore after upgrading the project to 2017.3.1p4.
    The TDesigner version was the previous one.
    I tried to update to the last version of TDesigner inside the 2017 project without success..

    When I click on the TutorialSystem gameobject, I have this error in the U3D console :
    NullReferenceException: Object reference not set to an instance of an object
    TutorialDesigner.TDEditor.LoadLanguageDatabase () (at Assets/TutorialDesigner/Editor/TDEditor.cs:182)
    TutorialDesigner.TDEditor.Awake () (at Assets/TutorialDesigner/Editor/TDEditor.cs:19)

    When I try to load the TD editor, I got this error :
    TutorialDesigner.TutorialEditor.OnGUI () (at Assets/TutorialDesigner/Scripts/TutorialEditor.cs:308)
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
    System.Reflection.MethodBase.Inv

    Followed by :

    NullReferenceException: Object reference not set to an instance of an object
    TutorialDesigner.TutorialEditor.DrawCurves () (at Assets/TutorialDesigner/Scripts/TutorialEditor.cs:556)
    TutorialDesigner.TutorialEditor.OnGUI () (at Assets/TutorialDesigner/Scripts/TutorialEditor.cs:293)
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
    UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:295)
    UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:288)
    UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:255)

    Very frustating to face this issue, because we have to build a new version to our customer urgently..
    Thanks,



  • Hi,

    can you restore the old version or is it gone? Which is the "previous" one? Because the current version can save the Tutorial as AssetDatabase and older versions as JSON. We've changed this to get rid of JSON Serialization and use native Unity Assets instead.

    Best would be to restore the old version and save the Tutorial from there, so you could later Load it into your scene. Because a major Unity Update like this could cause a lot of different issues and should never be doneĀ  without a backup.

    Best Michael



  • Thanks for your response, we already know the change in JSon format.
    We tried to restore our backup, but for an unknown raison, we had a compilation issue. And each backup restore takes at least 1h30..
    So we decided to recreate from scratch the Tutorial, it was faster.


Log in to reply