Can you include a file that replicates this behavior? I worked on adding these output messages when sounds and images failed to load and did not notice any behavior like this when the sound actually correctly loaded.
Ok attached a very simple baseplate place with a single looping sound in the workspace and a script to play it. I can hear the sound looping fine.
Console output:
11:29:31.868 - DataModel Loading http://www.roblox.com/Asset/?id=95206881
11:29:40.513 - Sound failed to load : Workspace.Sound
11:31:20.138 - Auto-Saving…
Model rotation fix version: 2.0 is up and running!
11:31:21.442 - Sound failed to load : CoreGui.RobloxGui.Sounds.VolumeChangeSound [/quote]
The line of output :
11:29:40.513 - Sound failed to load : Workspace.Sound
Is not being output for me.
CoreGui.RobloxGui.Sounds.VolumeChangeSound is failing to load for me but this is as the soundId is originally blank (I will probably change it so this doesn’t happen for blank soundIds.)
Any progress on this? It is driving me crazy, the sea of red text is making it hard to see the real errors. I’d be fine with just having the option to ignore this particular error.
Please provide an example place that exhibits this behavior. Include a link to the place or model so we can find it and attempt to reproduce the behavior here.
I’m also having this problem, and it’s completely preventing runtime-created sounds from playing in my game. I universally set the ID before parenting the audio, so I don’t know what I can do on my end. Needs fixed ASAP.
This behavior does not prevent any sounds for playing, it is simply an error message update. So far the only instances of this I have seen where the error message is outputted mistakenly are when the soundId is blank.
This behavior does not prevent any sounds for playing, it is simply an error message update. So far the only instances of this I have seen where the error message is outputted mistakenly are when the soundId is blank.
I haven’t messed with this code in a while, didn’t notice that before. I removed that repetition and the problem still persists. All I know is that all sounds I created through this function worked until this bug popped up, and now they don’t play at all and I get that error in the output.
@TheGamer101: Unfortunately there are way too many scripts which set the SoundId after they parent the sound to anything – including the CoreGui. Exmpty baseplate > play solo:
Install a couple plugins? A couple of them probably parent the sound before setting the SoundId. This new error shouldn’t occur when the SoundId is blank.
[quote] @TheGamer101: Unfortunately there are way too many scripts which set the SoundId after they parent the sound to anything – including the CoreGui. Exmpty baseplate > play solo:
Install a couple plugins? A couple of them probably parent the sound before setting the SoundId. This new error shouldn’t occur when the SoundId is blank. [/quote]
Yes, this is being changed so that the error won’t happen if SoundId is blank.