Hi, Why does it say can_process: Condition "!is_inside_tree" is true, Returning false. Right when i start my game?

4.4

When i press the error on the debugger it doesnt bring me to any line of code, So its not related to code i think, And it says the error when i just loaded that specific scene, So i checked the root node of that scene and changed process mode inherit to pausable, and it still says that error… help? I dont think it ruins anything i just dont like seeing errors

Maybe you are trying some operation on a node before it is in the tree. Did you do anything in particular to trigger this error? If you don’t see any side effects in game you may be able to ignore it.

1 Like

Hmm… i’ll check my scripts and see if there’s something that’s starting this

I think this is the cause

I dont know exactly what get_tree means but i think it means the tree of that scene? Im not sure, and when i load the scene that started the error, it gives no error, when i load this scene and press start, it gives an error, so this scene is the one causing the error not the other one i think, but i dont know how to fix it

Hi,

After you change to the loaded scene, you still have code executing in the button click afterwards, which would no longer be in the scene tree.

Comment out the lines of code after the change scene line and see if the error goes away.

Kindly

Ryn

1 Like

I made all the things under that line commented, and it still says that error, my level select loads levels faster than the main menu loading the level select, so something is definitely wrong

Have you tried, making the change call deferred to let the current frame finish.

get_tree().change_scene_to_file.call_deferred("res://yourscene.tscn")

Ryn

1 Like

Wow! Thanks Ryn! It doesnt say the error anymore!

1 Like

Glad to help.

Ryn

1 Like