Root Cannot Find Children Even Though They Exist

Godot Version

4.2.2.stable

Question

Hi there, I’m new to Godot but not to programming so It’s been pretty smooth sailing working on my project. However, I am a little stumped with my current issue. I am getting the typical “Node not found” issues but they certainly do exist in the scene.

Here are the errors (Ignore the two others and the warnings, I can fix those.):

Here is my Scene:
image

Here is my Global.gd script attached to my Global node3D:

Here is a reference to almost everything:

The only thing not in the picture is the script for Pause Menu, which’s here, Code/UI/Scenes/Scripts/PauseMenu.gd

Not sure why I am encountering these issues, seems like all is in order, and I’ve done plenty of these references in my code. If I had to guess it’s going to be an issue with the “relative to /root/Global”.

Any words of wisdom?

Any reason they would be deleted or moved in their own _ready functions?

What’s the remote tree look like? (In your screen shot, press the “Remote” button that is left of “Local”)

Is it possible that you have 2 “Global” scripts? One maybe as an autoload, the other on the “Global” node in your main scene.

3 Likes

Thanks for the help, everyone!

indicainkwell was spot on, I had Global.gd as an autoload and on the Global node.

I removed the onready node references from Global.gd. I detached the Global.gd from the Global node, renamed it to Main, and added a new script called Main.gd that I was able to import the nodes into.

Works perfectly now!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.