You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
When an autoload has a field element that is explicitly referred to within the autoload script, for example an autoload named global with a field test, and inside the script, it references itself like global.test (probably requires a design-time evaluation), this can eventually cause problems for other scripts which reference the value. Scripts which reference this autoload by name in any way will all show the same error, an error similar to "Couldn't fully load the script (Possible cyclic reference?)". Despite this, the game I observed this problem in could still run without issues.
This issue appeared when first opening my game in 3.2; the last version of Godot the project was opened in was 3.1.1 stable.
Steps to reproduce:
Unfortunately, I was unable to reproduce this after fixing the initial problem described above and removing the reference to global within my autoload. In order to clear the error message, I had to close and re-open the project. I imagine the issue occurs when first loading the project and may be more difficult to reproduce as a result.
It's unclear if this is a bug or a feature. It may still be considered undesired behavior if an autoload is supposed to understand explicit references to itself are to the singleton and not a cyclic reference. If 3.2 implemented better cyclic resource checking, this may be a side effect of it, but it may also be a problem in the order of loading resources for the purpose of building a "map" of values for autocomplete / validation.
The text was updated successfully, but these errors were encountered:
Godot version:
3.2 stable
OS/device including version:
Windows 10 x64
Issue description:
When an autoload has a field element that is explicitly referred to within the autoload script, for example an autoload named
global
with a fieldtest
, and inside the script, it references itself likeglobal.test
(probably requires a design-time evaluation), this can eventually cause problems for other scripts which reference the value. Scripts which reference this autoload by name in any way will all show the same error, an error similar to "Couldn't fully load the script (Possible cyclic reference?)". Despite this, the game I observed this problem in could still run without issues.This issue appeared when first opening my game in 3.2; the last version of Godot the project was opened in was 3.1.1 stable.
Steps to reproduce:
Unfortunately, I was unable to reproduce this after fixing the initial problem described above and removing the reference to
global
within my autoload. In order to clear the error message, I had to close and re-open the project. I imagine the issue occurs when first loading the project and may be more difficult to reproduce as a result.It's unclear if this is a bug or a feature. It may still be considered undesired behavior if an autoload is supposed to understand explicit references to itself are to the singleton and not a cyclic reference. If 3.2 implemented better cyclic resource checking, this may be a side effect of it, but it may also be a problem in the order of loading resources for the purpose of building a "map" of values for autocomplete / validation.
The text was updated successfully, but these errors were encountered: