The bus size doesn't match the one I have on screen

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

Good evening,

while I was messing around with my data I unknowingly deleted an important file called “default_bus_layout.tres”. This was an important file because it structured the layout of my buses:
-(0)Master bus
-(1)MusicVolume bus
-(2)EffectsVolume bus

I realized of its important when running my code.
The music and the sound effect were there, but the index of my Music and Effects buses weren’t. I thought that maybe the index was changed, but by printing the number of available buses with “AudioServer.get_bus_count()” the output was 1.
I tried re-doing the buses hierarchy from scratch and saving the file, but nothing, the number of available buses is still 1.

What’s happening?

P.s.
On my “Audio” section of the Godot IDE the three buses ARE there, and I can still attach audio stream players to both “Music Volume bus” and “Effects Volume bus”.

:bust_in_silhouette: Reply From: HolyCross

Solved it, when I deleted the file my Project>Project Settings>Application>Audio>Default Bus Layout was initialized to nothing (or the standard which includes the master bus), I just had to create a new layout, save it on the path of my choosing, and then load it in the Project>Project Settings>Application>Audio>Default Bus Layout for it to be the standard!