acdamiani / schema

Visual intelligence for the Unity game engine

Home Page:https://schema-ai.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connections and some nodes are gone after update to commit 15b26ec4829f64418e47cd99410415604fe16ac7

ijisthee opened this issue · comments

Hi @acdamiani

I've updated Schema AI via import from git (before I downloaded it from Asset Store).

When I open my Graph, I get this error message / stack trace:

Broken text PPtr in file(Assets/Prefabs/Enemies/BaseAIGraph.asset). Local file identifier (86440366174919129) doesn't exist!
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Exception thrown while invoking [OnOpenAssetAttribute] method 'SchemaEditor.NodeEditor:Open (int,int)' : NullReferenceException: Object reference not set to an instance of an object
SchemaEditor.Internal.ComponentSystem.Components.ConditionalComponent.Create (SchemaEditor.Internal.ComponentSystem.CreateArgs args) (at ./Library/PackageCache/com.acdamiani.schema@15b26ec482/Editor/Canvas/Components/ConditionalComponent.cs:177)
SchemaEditor.Internal.ComponentCanvas.Create[T] (SchemaEditor.Internal.ComponentSystem.CreateArgs args) (at ./Library/PackageCache/com.acdamiani.schema@15b26ec482/Editor/Canvas/ComponentCanvas.cs:99)
SchemaEditor.NodeEditor.RebuildComponentTree () (at ./Library/PackageCache/com.acdamiani.schema@15b26ec482/Editor/Window/NodeEditorGUI.cs:390)
SchemaEditor.NodeEditor.Open (Schema.Graph graphObj) (at ./Library/PackageCache/com.acdamiani.schema@15b26ec482/Editor/Window/NodeEditor.cs:142)
SchemaEditor.NodeEditor.OpenGraph (Schema.Graph graphObj) (at ./Library/PackageCache/com.acdamiani.schema@15b26ec482/Editor/Window/NodeEditor.cs:133)
SchemaEditor.NodeEditor.Open (System.Int32 instanceID, System.Int32 line) (at ./Library/PackageCache/com.acdamiani.schema@15b26ec482/Editor/Window/NodeEditor.cs:278)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Blackboard entries are still there but conditionals and connections seem to be gone at least visually.

BaseAIGraph.asset.zip
AI.zip

I've added my Graph Asset and my custom Action and Conditional for you to reproduce it.

image

After going back to v 1.0.5 from Asset Store I still get the same error and I cannot create new connections. :-(

@acdamiani to avoid misunderstanding I did not update vom 1.0.5 to 4d65500 or 627c855 but only from 1.0.5 to 15b26ec

I'm having a theory. I've created a class inside of the Schema folder structure and used it in the Graph asset. To update from Asset Store Package to Git Package I've had to delete the Schema folder from Assets folder. Unity automatically places it inside the Root/Packages folder.

Then obviously I've lost my class and the Graph Asset could not be opened anymore.
My Class was a conditional and the error happened in

SchemaEditor.Internal.ComponentSystem.Components.ConditionalComponent.Create...

Since the class is gone and I cannot put it back to the Root/Packages/Schema folder since it's readonly I cannot get the Graph asset to work.

Maybe it is possible in the future to simply create a warning (missing GraphObject) or so.

Without that kind of warning the Graph asset is completely gone and a lot of work is lost eventually.

Yeah, it sounds like missing that custom class caused the error. I'll add a warning in the future so that a missed node/conditional class doesn't cause the whole tree to lock up.