So i was working on a Node inherited class trying to change it to fit a new requirement
I ended up not changing anything inside the class and coming up with a better solution
but immediately after doing so other scenes that used the class started throwing errors reading
_parse_ext_resource: <scene.tscn:line of ExtResouce() call> - Parse Error: [ext_resource] referenced non-existent resource at: <script.gd for the class in question>
<C++ Source> scene/resources/resource_format_text.cpp:163 @ _parse_ext_resource()
the thing is. the reference for the ext resource of the script is identical to the one in the scene i added the class into just at that time
and that scene works flawlessly
after trying to understand what was happening i tried to just simply copy the script in the file system and change its name by adding one character. then removing the class_name assignment on the old script and moving it to the new one whilst also modifying the reference inside the .tscn files to the new system path. again by simply adding the character to the resource path
and viola it worked. but i don't want to have to change the script name in the file system and change references
especially if this is going to randomly happen again
just to clarify i didn't move any files across the file system
the path in the working scene was identical to the path in the broken scenes
the class script had not been modified and did not have any errors
can someone please explain what is happening or find a way to fix godot's file path reference for those scenes
thanks in advance
- godot 4.2.2 -