![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | tom47 |
Hi guys!
I recently re-organized my project’s file, and when I try to launch my test scene, it shows me the following error message:
“error(1950,1): The class “Player” couldn’t be fully loaded (script error or cyclic dependency)”
I don’t really get what does it mean as I didn’t modify this script (can it be due to the new position of the scene in the project?)
It prevents me from keep working on my project so if any of you know more details or how to resolve this error message that’ll be a great help!
Thanks and stay safe
When you changed the structure of your project and its files, how did you move around the files? Did you do it inside the editor, or with a file browser?
Ertain | 2020-05-19 08:11
Hello Ertain, thanks for your reply!
I did it outside the editor… guess it might have been a mistake because I had to fix many dependencies.
I think that I found the root of the problem which is an ;
error(27,1): The identifier “Inventory” isn’t a valid type (not a script or class), or couldn’t be found on base “self”.
Would you know something about that error?
tom47 | 2020-05-19 08:41
You may have found a solution that works for you, but I had this issue this morning and the issue was that I use a function of a static function inside the class by referencing the class inside the same class.
eg:
class_name myMathClass
static func sum(a,b):
return a + b
static func multiplySumByTwo(a,b):
return myMathClass.sum(a,b)
instead of
static func multiplySumByTwo(a,b):
return sum(a,b)
since they were already in the same class
So the issue was in the same class, and it was just a silly mistake
LordCSD | 2022-04-20 18:15
just had the same issue, except the error was only in the script editor, when starting the game it works as intended. the solution of Marlin1846 solved the issue tho
zen3001 | 2022-07-08 17:49