Game Development Community

TGB Audio Bug

by Afan Olovcic · in Torque Game Builder · 02/07/2011 (8:47 am) · 3 replies

Hi

When I Build my game with TGB 1.7.5 Pro without cs files or when you delete cs files from your project

alxPlay dont play sound with this error in consol log

Unable to locate audio profile 'music2'
Unable to locate audio profile 'spark3'
Unable to locate audio profile 'spark3'
Unable to locate audio profile 'spark2'

Game works fine except No sound at all

ConsoleFunction(alxPlay, S32, 2, 5, "( profile [or handle]...

AudioProfile *profile = dynamic_cast<AudioProfile*>( Sim::findObject( argv[1] ) );
if (profile == NULL)
{
Con::printf("Unable to locate audio profile '%s'", argv[1]);
return NULL_AUDIOHANDLE;
}
argv[1] - is ok has name of AudioProfile
but
Sim::findObject( argv[1] ) returns Null




#1
02/07/2011 (9:50 am)
So, you think it's not loading the precompiled scripts? Are your .dso files still present?

I was having a problem where only background images would show after I did a project build, but after I manually copied my sprites to the build location everything worked properly with only .dso files in place. However, I didn't have any audio in that project so I didn't run into your issue.
#2
02/07/2011 (10:31 am)
Yes they are.I try everything .To build without *.cs , and to build with *.cs.

When you build with cs files it works .But if you delete cs script after that it game will work but without sounds.
#3
02/07/2011 (9:21 pm)
That's weird.

I'm only working through the tutorials, so I'll try this out and see if I have the same problem tomorrow or Wednesday.