Godot Version
4.4
`
Question
godot doenst recognize my node even tho its there
Notice it states relative to "/root/@CharacterBody3D@2"
, did you add your player.gd as a global script? That will create another player node at the root, without any children.
If you want to access the player from any other node maybe it would be better to assign it a group and use get_tree().get_first_node_in_group("MyPlayerGroup")
You might want to call print(get_path())
on one of the nodes it can’t find, and see what Godot thinks the path is.
im kinda new so uh- no it isnt a global script. its because i put two players together and it was funny- but i removed player 2. so no
but i was wrong. i removed the other one- so it got another name
how do i do that? (the node is Omniredhand)
you would put the code in your script, under func _ready()
would suffice. I’d recommend also running print_tree_pretty()
The easiest way would be use the scene panel to add a script to that node, and in the script put something like:
func _ready():
print("%s: %s" % [name, get_path()])
Then run it. It should print the path. Once you’ve got the info you can delete the script off the node again.
it worked but it says unsupported format file : gltf (scene node) when i loaded it @hexgrid
It’s only a quick debug aid, so as long as you have the info you need, you can get rid of it again.
but it said when i loaded the game : unsupported file type : gltf and the mesh has inverted sides for some reason @hexgrid
new topic time!
That is a totally different error, what do you think the print statement fixed? We were only trying to get more information about your problem, print
shouldn’t fix anything on it’s own.
ik. just an information. i created a new topic abt it