Closed KawaiiBakemono closed 1 month ago
Okay oddly enough, all I did was poke around at the script where the function derives from in the error:
res://addons/dialogic/Editor/TimelineEditor/VisualEditor/timeline_editor_visual.gd
This is an extremely strange (and very temporary) fix, but:
Now timelines open.
However, the issue is only fixed until the project is closed and reopened, then the issue crops back up again. I can really only assume this is a quirk from me upgrading the plugin from 1.5.1 to 2.0?
Despite this, using this "workaround" isn't viable. The timeline still breaks every so often, which causes any changes I've made to it to be completely ignored.
Good news, I found the issue! The best part is it's not an issue with the plugin itself.
Somehow, some of the plugin's scripts had been duplicated in another folder, one of them specifically being the timeline_editor.gd
script (probably just an oopsie on my part). These were most likely being pre-loaded with the rest of the plugin, causing there to be conflicts.
After deleting these, the issue went away.
The Problem
Describe the bug
Cannot open any timelines in the visual editor, new or old. Throws error:
res://addons/dialogic/Editor/TimelineEditor/timeline_editor.gd:69 - Invalid type in function 'load_timeline' in base 'MarginContainer (timeline_editor_visual.gd)'. The Object-derived class of argument 1 (Resource (DialogicTimeline)) is not a subclass of the expected argument class.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The timeline should open in the visual editor like normal.
Screenshots
System:
Solutions
What you tried to get the feature working:
Any idea to fix the issue or a link to the line of code that might be the cause for this problem: