I can't understand what's the problem here. Why Godot is giving me errors?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Montasir Raihan

Hello everyone. Yeah, my problem is whenever I run a scene, the engine is giving me an error.

 Parent node is busy setting up children, add_node() failed. Consider using call_deferred("add_child", child) instead.

I know what this means, but what I don’t get is, I’m not adding anything using “add_node()” or “add_child()” to my scene. My _ready() function is completely empty. So why is it still showing errors. Seriously like, where is the problem?

Does the root node have any children that have complicated configurations or scripts?

Ertain | 2022-05-12 06:10

Sry for the late reply.

“Does the root node have any children that have complicated configurations or scripts?”

Umm not exactly. Just a colorRect, control and some buttons inside the control. And the functions only work when I press a button. So no complicated stuff. Hope this helps.

Montasir Raihan | 2022-05-12 18:54

Do the ColorRect, buttons, and other controls implement the _ready() function? Do the buttons do something when they’re clicked, i.e. are functions connected with the buttons?

Ertain | 2022-05-12 19:46

Currently there are 3 buttons, play, options and quit. So when I press the play button it will start the game, when I hit options it shows me the settings, and pressing quit will quit the game. So yeah functions connected with the buttons with the help of signals.

Montasir Raihan | 2022-05-12 19:55

I’m starting to run out of options.

Is there a script autoloaded?

Ertain | 2022-05-13 02:24

To find the culprit, you could try to comment out blocks of code until the problem disappears. Otherwise, I’m happy to take a look if the project is available for inspection…

jgodfrey | 2022-05-13 23:24