Audio not working at all - 1.8.1 - "Preload failed"
by Nicolai Dutka · in Torque Game Engine Advanced · 05/26/2009 (4:41 pm) · 12 replies
Every single one of my audio files are giving me "preload failed" errors. Even default button sounds, foot steps, gun shots, etc, all stuff that came with my 'game example' that I've been working out of.
I've tried 3d, 2d, stereo, mono, looping, not looping, preload, not preload, etc, etc, etc...
I have a TON of errors in my console log... Every single audio file I have...
And yes, I have an audioProfiles.cs and confirmed it is being executed...
Here's a sample of some of my errors:
I've tried 3d, 2d, stereo, mono, looping, not looping, preload, not preload, etc, etc, etc...
I have a TON of errors in my console log... Every single audio file I have...
And yes, I have an audioProfiles.cs and confirmed it is being executed...
Here's a sample of some of my errors:
SFXProfile(DeathCrySound)::onAdd: The preload failed! SFXProfile(PainCrySound)::onAdd: The preload failed! SFXProfile(FootLightSoftSound)::onAdd: The preload failed! SFXProfile(FootLightHardSound)::onAdd: The preload failed! SFXProfile(FootLightMetalSound)::onAdd: The preload failed! SFXProfile(FootLightSnowSound)::onAdd: The preload failed! SFXProfile(FootLightShallowSplashSound)::onAdd: The preload failed! SFXProfile(FootLightWadingSound)::onAdd: The preload failed! SFXProfile(FootLightUnderwaterSound)::onAdd: The preload failed!
#2
So just make sure to either delete your prefs between computers so it detects the audio device properly again.
05/26/2009 (7:02 pm)
I've had this too. I'm pretty sure it's because it autodetects your audio device and stores it in prefs... so when you run those prefs on the other computer, it tries to connect to the audio device of your other computer, which obviously doesn't exist anymore.So just make sure to either delete your prefs between computers so it detects the audio device properly again.
#3
05/26/2009 (7:45 pm)
You should really set .prefs/.log/config.cs etc. files to be non-versioned, if you're using SVN. Anything that Torque generates specifically for one computer to use (ie. config files and prefs) shouldn't be used on another, else you will run into many other similar problems like this. Your repo should only be concerned with source, scripts, and data, and not system specific audio/video/server/game/network/control/etc preferences.
#4
I've spoken with the team about it several times and I just can't seem to get everyone on the same page here... The most annoying one being those stupid 'Thumbs.db' files from Windows XP users looking at our image files...
05/26/2009 (7:52 pm)
We tried setting those file types to be non-versioned, but it seems that if I set it up on mine, but someone else does not and then they commit, it ignores my attempt to non-version the file...I've spoken with the team about it several times and I just can't seem to get everyone on the same page here... The most annoying one being those stupid 'Thumbs.db' files from Windows XP users looking at our image files...
#5
But at least you know how to solve the immediate problem if it crops up again.
05/26/2009 (8:15 pm)
Yikes! I so hated those thumbs.db files.But at least you know how to solve the immediate problem if it crops up again.
#6
you should start a new thread on the projectile problem with a video,that describes the visual problem.
Projectile problems are seen more often than not when using a separate control object resources,like the advanced camera.
05/27/2009 (5:16 am)
Nicolai,you should start a new thread on the projectile problem with a video,that describes the visual problem.
Projectile problems are seen more often than not when using a separate control object resources,like the advanced camera.
#7
The only thing strange that I've noticed, is that the errors are only occuring on OGG files, and not WAV files.
10/26/2009 (1:13 am)
I just installed TGEA 182, and I'm still getting these errors.The only thing strange that I've noticed, is that the errors are only occuring on OGG files, and not WAV files.
#8
have a look at this : www.garagegames.com/community/forums/viewthread/104105/1#comment-688845.
That should help you.
Nicolas Buquet
www.buquet-net.com/cv/
10/26/2009 (5:10 am)
Hi Carl,have a look at this : www.garagegames.com/community/forums/viewthread/104105/1#comment-688845.
That should help you.
Nicolas Buquet
www.buquet-net.com/cv/
#9
10/26/2009 (11:22 am)
hmmmmm. That was related to a Mac fix though. I'm on a Windows box. I'll try it anyway and see what happens.
#10
Cleaned the solution and the build, for all three (debug, release, optimized).
Recompiled, but didn't fix it. :(
It was worth a shot though. :)
The only thing that seems to get rid of the error, is converting the files to WAV.
10/27/2009 (12:49 am)
I added the code to the project.confCleaned the solution and the build, for all three (debug, release, optimized).
Recompiled, but didn't fix it. :(
It was worth a shot though. :)
The only thing that seems to get rid of the error, is converting the files to WAV.
#11
Then, you recompile.
Hope this will solve your problem.
Nicolas Buquet
www.buquet-net.com/cv/
10/27/2009 (4:45 am)
After adding the code to project.conf, you add to re-generate your project, to add the ogg part to your solution.Then, you recompile.
Hope this will solve your problem.
Nicolas Buquet
www.buquet-net.com/cv/
#12
Thanks.
10/27/2009 (11:19 am)
Good point. It took me a while to remember how to regenerate, but I'm absent like that sometimes. :)Thanks.
Torque 3D Owner Nicolai Dutka
I opened:
~/data/client/prefs.cs
And changed:
$pref::SFX::autoDetect = 0;
To:
$pref::SFX::autoDetect = 1;
Now my sounds work!
Now the confusing part.....
I am working out of an SVN and when I ran an update, my prefs.cs got reverted back:
$pref::SFX::autoDetect = 0;
However, I can STILL hear the sounds!!
Can someone PLEASE, for sanity's sake, explain this to me??
I am having a similar issue with a projectile. I used a resource to create energy projectiles. I am using a red image to create the projectile, yet the projectile constant comes in white. Today, I saw it was red!!! WOOT!! Then I did an SVN update and it's back to white.... BOOO!! WTF?? I feel like I have no control anymore... I'm losin it here peoples! :P