godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.89k stars 21.04k forks source link

Moving A Script That Extends Resources Lead To Missing Dependecy #93145

Open lazyvainglory opened 3 months ago

lazyvainglory commented 3 months ago

Tested versions

Reproducible in 4.2.2

System information

Windows 11, Godot v4.2.2 Forward Renderer

Issue description

When moving a folder or a script that extends Resources, it could result in missing dependencies.

Steps to reproduce

I was able to reproduced this issue using my dialogue system, which relies on resources. Based on the reproduction project, follow these steps:

  1. Open the project.
  2. Move the dialogue_res_scripts folder to a different location (e.g., dialogue_resources folder).
  3. Reload the project.

Video Guide

https://github.com/godotengine/godot/assets/45304248/91c54af3-6a5a-4d39-91d7-ad1f88aaf180

Minimal reproduction project (MRP)

ResMissingDependecy.zip

Jordyfel commented 3 months ago

A fix for global class data corruption from moving gdscript files was merged at some point. Please try again on the latest beta

lazyvainglory commented 3 months ago

A fix for global class data corruption from moving gdscript files was merged at some point. Please try again on the latest beta

As of Godot v4.3 beta2, it's still broken. I think this issue might actually be related to https://github.com/godotengine/godot-proposals/issues/7363 I'm just not hundred 100% sure.