ERROR: Cannot get class ''.
at: _instantiate_internal (core/object/class_db.cpp:546)
ERROR: Parameter "obj" is null.
at: ensure_resource_ref_override_for_outer_load (core/io/resource_loader.cpp:986)
SCRIPT ERROR: Parse Error: Could not preload resource file "uid://byfblct2kynug".
at: GDScript::reload (res://Player/scripts/Player.gd:9)
SCRIPT ERROR: Compile Error: Failed to compile depended scripts.
at: GDScript::reload (res://Player/resources/PlayerState.gd:0)
SCRIPT ERROR: Compile Error: Failed to compile depended scripts.
at: GDScript::reload (res://Player/resources/FreeFallState.gd:0)
ERROR: Failed to load script "res://Player/resources/FreeFallState.gd" with error "Compilation failed".
at: load (modules/gdscript/gdscript.cpp:3041)
ERROR: In Object of type 'Area2D': Attempt to connect nonexistent signal 'entered_shop' to callable 'Node(TrampolineCouple)::show_shop'.
I’m not sure what else to give for information about my project. I’ve re-organized and re-named a my entire project folder from within Godot twice. I’ve already tried to backup my project, delete the .godot folder and restart the project to “reset” the paths.
The only thing I can think to do is get rid of what I think the class that is creating the ERROR in lines 1 and 2, but I don’t know about the other SCRIPT ERRORS.
That’s where I would start. Copy the gdscript file and scene (if there is one) to a location outside your project. See if the problem goes away. If it does. Post the contents of the file here.
I am in the process of removing the class I think is the problem, however it’s a base class which is inherited by the majority of my game.
When I run the main scene everything is ok. When I run an individual scene I get an error in the editor saying “Parse Error” on base class. But there are no red highlights or yellow highlights in my script for the base class nor any inherited class.
The whole game is you bounce on a trampoline and get points for tricks and going high. But I decided that there should be other ways of going up, like a cannon. So I made multiple scenes consisting of a player and whatever to send the player up as children of a “manager” node, which inherits this base class that I think is causing the problem.
I keep swinging back and forth to just ditch this and start ground up or fix this issue. I really wanted to be able to share my silly little game.
I mean, they’re all problems. Anything that says Error needs to be dealt with or it can cause your final game to crash.
If you can’t solve the first one, solve the others. It is possible that one line is causing all those classes not to compile. I’d start with this one because you have a line number (the number 9):
res://Player/scripts/Player.gd:9
BTW, while we are on the subject of fixing problems, if you want your game to work on Windows, you need to change that to res://player/scripts/player.gd because uppercase names in filenames cause issues upon export on Windows (and sometimes Mac).