038Games-EnergyTransition / Quester

C# quest creation plug-in for Godot
MIT License
1 stars 0 forks source link

Unable to cast object of type 'Godot.Resource' to type 'QuestEdge' #2

Closed svenar-nl closed 6 months ago

svenar-nl commented 6 months ago

https://github.com/038Games-EnergyTransition/Quester/blob/bc3ab252d9da6efb0fc896bd00dab7d79bb5fa07/addons/quester/scripts/QuestEditorGraph.cs#L150


/root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/ExceptionUtils.cs:112 - System.InvalidCastException: Unable to cast object of type 'Godot.Resource' to type 'QuestEdge'.
     at Godot.Collections.Array`1.get_Item(Int32 index) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs:line 1409
     at Godot.Collections.Array`1.GetEnumerator()+MoveNext() in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs:line 1825
     at QuestEditorGraph._deserializeResource(QuestResource resource) in /home/sven/Documents/Godot/Projects/v4/038GamesEnergy/038EnergyTransition/addons/quester/scripts/QuestEditorGraph.cs:line 150
     at QuestEditorGraph.LoadResource(QuestResource resource) in /home/sven/Documents/Godot/Projects/v4/038GamesEnergy/038EnergyTransition/addons/quester/scripts/QuestEditorGraph.cs:line 59
     at QuestEditorGraph.Load(String path) in /home/sven/Documents/Godot/Projects/v4/038GamesEnergy/038EnergyTransition/addons/quester/scripts/QuestEditorGraph.cs:line 53
     at QuestEditor.loadFile(String path) in /home/sven/Documents/Godot/Projects/v4/038GamesEnergy/038EnergyTransition/addons/quester/scripts/QuestEditor.cs:line 72
     at QuestEditor._onLoadFileDialogFileSelected(String path) in /home/sven/Documents/Godot/Projects/v4/038GamesEnergy/038EnergyTransition/addons/quester/scripts/QuestEditor.cs:line 150
     at Godot.FileDialog.FileSelectedTrampoline(Object delegateObj, NativeVariantPtrArgs args, godot_variant& ret) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Generated/GodotObjects/FileDialog.cs:line 461
     at Godot.DelegateUtils.InvokeWithVariantArgs(IntPtr delegateGCHandle, Void* trampoline, godot_variant** args, Int32 argc, godot_variant* outRet) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/DelegateUtils.cs:line 62```
svenar-nl commented 6 months ago

https://github.com/godotengine/godot/issues/81002

You can't load a non-Tool resource from the editor