Editor can't find audiostreamplayer not sure why

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

Hello, so for this game project I have imported a door code I learned from a tutorial. This code works perfectly fine in the other projects I have used it in but refuses to play the door opening sound in this project. All it will give me is this null instance message which makes no sense to me as the code and node layout is exactly the same.

If anyone could figure this out for me it would be really appreciated as it is for a project that is due soon.
here is a screenshot of the issue:
https://ibb.co/jwkDY6C

Thank you

:bust_in_silhouette: Reply From: jgodfrey

Based on your screen shot, the path in the get_node() call is wrong. That should be:

get_node("//root/World/AudioStreamPlayer")

That “Scenes” node you have in your path doesn’t exist.

This is bizarre because this fixed the issue but the engine wasn’t bothered by it in other projects. The scenes part is referencing the folder that the world scene is stored in. Maybe an older version of the engine needed to know what folder it was in. Thank you for helping me.

YuleCrow | 2023-03-13 01:38