Sign in to follow this  
Guest Patrick_Waugh

Load on aircraft selection vs. panel up in-game.

Recommended Posts

Hey,I have an annoying problem that I wish to solve.Basically, when you load the aircraft from the selection screen, the panel gets loaded, and right away annoying warning horns are sounding.What I want is to not have them sound until you are in the cockpit.I thought (if I remember correctly) Arne suggested (in FS9) that I put key stuff in the gauge callback inside this:if ( pgauge != NULL ){ // Gauge is loaded}but this is not doing it for FSX. As soon as you select the aircraft, you have to listen to the horns until the panel completely loads and you can either mute it, pull the breaker, or shut down the power to the bus by flipping off the battery.It is one of the last annoying bugs I want to fix before release.Any ideas?Patrick

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Set a sound control flag to FALSE.Count off a couple of instances of PANEL_SERVICE_PRE_DRAW before allowing the flag to become TRUE. You can check, but I don't think one instance will be enough.Similarly, you could wait until is_panel_window_visible_ident(0) returns TRUE a couple of times.Doug

Share this post


Link to post
Share on other sites

Hey Doug,Well... is_panel_window_visible_ident(0) actually just toggle the visibility (turning it off!), when I tried this code:if ( is_panel_window_visible_ident(0) == true ){ WakeTheDeadWithMostAnnoyingNoiseKnowToMan();}so, that's out.I then tried this: case PANEL_SERVICE_PRE_DRAW: if ( flagReady != 0) { flagReady--; bSoundToggle = false; } break;and this doesn't work either. As soon as I select the aircraft in free flight, the warning horns begin to sound. (The flag begins life true, and when true silences ALL sound).Was worth a shot though.Patrick

Share this post


Link to post
Share on other sites

Well, since I wasn't able to make anything work within FS to handle this, I solved it another way.Basically, I moved the actual CB's to the main panel, with extern references to them on the overhead. Then, this made it possible to save a flight with the overhead (where the horns are located) hidden and set visible=0 in the panel.cfg so that no horns would sound until you make the panel visible to turn on the BAT.I'm excited today, because after I solve one last problem in the attitude indicator it goes live!Patrick

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this