Invalid bus index "-1" error when converting 4.2 project to 4.3

Godot Version

Godot 4.3
Building for Web

Question

I’m currently trying to update my Godot 4.2.2 project to 4.3 for some of its introduced features and just a general want, but now when attempting to test in browser (as this is primarily a browser game) I get the error invalid bus index "-1" , This error only occurs when testing on web.

image

My only hunch is that it has something to do with my audio setup due to it mentioning a bus index but I currently see no problems? Luckily for the troubleshooting process the game is entirely open source on github with its 4.2.2 build.

Here’s a link:

Any code that messes with audio buses (that I can remember being present) is located at Data/Elements/Menus/Options

Any leads or ideas on the issue here? I can’t find anything in the project that would lead to this error when updating engine versions.

Author forgot to include file default_bus_layout.tres, you can in any project
create 2 additional buses, you need bus with name SFX and with name Music and put generated file default_bus_layout.tres into root folder of this project

Or add it in this project if it opened

Sorry, I’m not quite sure what you are trying to convey with this reply. Can you restate?

image

At now I think you only have Master bus

That is not true, I have my bus layout set up like this:

Hmm. Can suggest to recreate it. Honestly I download git repo and open it in 4.3, except thousands of errors about assets no error about bus

If you’re getting asset errors make sure you follow the install instructions on the Github page, all visual assets are in a submodule.

Strange! Remaking the bus worked!
The difference between the two files is weird tho, despite being the same the last line of the .tres is different

original ends with
bus/2/send = &"SFX"

and an exact remake ends with
bus/2/send = &"Master"

No idea what to make of this but the problem seems solved!

Gratz.

git clone https://github.com/emilyzip/NewgroundsBugCollab.git --recursive
cd NewgroundsBugCollab
del /s /q *.tmp

there are many error about tileset
image

and some links to folder PrivateData that not included

I dont need it, but keep in mind, for someone who can try to use it

ed. I finally see it, in readme, must download font, understand

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.