Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Spoiler Deploy Sound

Featured Replies

wrong.all i can say is that it works for me.Also the soundfiles: wav's, dsd-xml.gau and sound,ini must be in the same folder;for convenience you can put spoilersound,xml there too.So create under panel a new folder say sound and put them there, nowhere else.Then your panel.cfg must be changed to:gauge119=sounddsd_xml_sound3!dsd_xml_sound3, 2,2,5,5,.your arcraftpanelsoundspoilersound.inigauge120=sound!spoilersound, 0,0,back to the drawing boardthen try: on finals, spoilers armed and land.......

Edited by phjvh

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Replies 53
  • Views 7.8k
  • Created
  • Last Reply

Top Posters In This Topic

Your code is still wrong. All you are doing is testing whether your control variables are both true. Think of if{} as if so.vololiberistaDo this:-

(A:sim on ground,bool) 1 == (A:Spoilers handle position,percent) 40 > andif{ 1 (>L:spoiler,number) 1 }els{ 0 (>L:spoiler,number) }

3VlzBGn.jpg?1

Super VC10 into LOWI with PF3 at a cinema near you

https://www.youtube.com/watch?v=298UDyNmgUA

 

  • Author

ok, under my aircraft folder I have a folder called panels where I keep all my panels for my planes thereAircraftPanelsPanel.737-200I creaed a folder called sound under the Panel.737-200 so now it itsAircraftPanelsPanel.737-200Soundunder sound I placed:dsd_xml_sound3.gauspoilersound.inispoilersound.xmlspoilersound.ini reads like this[Config]MaxSounds=11ErrorFlag=0LvarStop=SoundStop[sounds]Sound00=./Sound/Spoiler/rp732_speed_brake_deploy.wav[LVars]Lvar00=spoilersoundspoilersound.xml read like this at the moment(A:sim on ground,bool) 1 == (A:Spoilers handle position,percent) 40 > andif{ 1 (>L:spoiler,number) 1 }els{ 0 (>L:spoiler,number) }my last entires in my panel config main part read like thisgauge119=dsd_xml_sound3!dsd_xml_sound3, 2,2,5,5,.AircraftPanelsPanel.737-200soundspoilersound.inigauge120=sound!spoilersound, 0,0,in the fs9 root sound folder, another folder in it called "Spoiler" with the wav file "rp732_speed_brake_deploy.wav" in itstil no sound of rp732_speed_brake_deploy.wav when spoilers autodeploy when landing

Asus Tuf Gaming Plus B550 - Ryzen 7 5800X3D - Asus GeForce 4080 RTX OC Edition - 64GB DDR4 (3600Mhz) - EVGA 850W Power Supply - 2X 1 TB NVME PCIE gen 4 - Windows 11 (25H2)

xml is wrongtry:

(A:sim on ground,bool) (A:Spoilers handle position,percent) 40 > andif{(L:spoiler,number) 0 ==if{ 1 (>L:spoiler,number) 1 (>L:spoiler sound,number) } }els{ 0 (>L:spoiler,number) }

look at the wiper sound below for panel and panel.cfg, also by me.Also you need some code to disarm and retract the speedbrakes....(e-mail)

Edited by phjvh

Jan

 

 

 

"Beatus ille qui procul negotiis..."

xml is wrongtry:(A:sim on ground,bool) (A:Spoilers handle position,percent) 40 > andif{(L:spoiler,number) 0 ==if{ 1 (>L:spoiler,number) 1 (>L:spoiler sound,number) } }els{ 0 (>L:spoiler,number) }look at the wiper sound below for panel and panel.cfg, also by me
In this code you have suggested the a/c can be both on the ground or in the air. As (A:sim on ground,bool) can be either 1 or 0. If this is intended then (A:sim on ground,bool) isn't necessary!
(A:sim on ground,bool) 1 == (A:Spoilers handle position,percent) 40 > andif{ 1 (>L:spoiler,number) 1 (>spoiler sound,number) }els{ 0 (>L:spoiler,number) 0 (>spoiler sound,number }

This works correctly. If the spoiler sound is to be played both in the air and on the ground then do away with (A:sim on ground,bool) altogether. Don't forget to turn the sound off.vololiberista

Edited by vololiberista

3VlzBGn.jpg?1

Super VC10 into LOWI with PF3 at a cinema near you

https://www.youtube.com/watch?v=298UDyNmgUA

 

well, the code is ment for in the air, on finals, spoilers armed.at touchdown, (A:sim on ground,bool) and spoilers armed the speedbrakes deploy.Then, when (A:Spoilers handle position,percent) 40 > (L:spoiler,number) becomes 1 and the sound, 1 (L:spoiler sound,number), must be heared once; (only coming from spoiler=0, otherwise a lot off clicking....,it doesn't click anymore when (L:spoiler,number) == 1.when airborne again or after retraction of the speedbrakes L:spoiler is set to 0 again automatically so the cycle can start over again.I use groundspeed to retract the speedbrakes automatically and autobrakes to arm the spoilers.Also i use in the click areas the spoilersound click and also you hear airturbulence when speedbrakes are deployed.The most important reason to not have them in the clickareas and hear them automatically is the use of my throttles, flaps and speedbrakes (saitek)I have no single problem with my code and afaik 0 (>L:spoiler sound,number) is not especially necessary.

Edited by phjvh

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Author
xml is wrongtry:
(A:sim on ground,bool) (A:Spoilers handle position,percent) 40 > andif{(L:spoiler,number) 0 ==if{ 1 (>L:spoiler,number) 1 (>L:spoiler sound,number) } }els{ 0 (>L:spoiler,number) }

look at the wiper sound below for panel and panel.cfg, also by me.Also you need some code to disarm and retract the speedbrakes....(e-mail)

I tried it, no sound when they autodeploy, could it be something else other than the xml file?

Asus Tuf Gaming Plus B550 - Ryzen 7 5800X3D - Asus GeForce 4080 RTX OC Edition - 64GB DDR4 (3600Mhz) - EVGA 850W Power Supply - 2X 1 TB NVME PCIE gen 4 - Windows 11 (25H2)

  • Moderator
In this code you have suggested the a/c can be both on the ground or in the air. As (A:sim on ground,bool) can be either 1 or 0. If this is intended then (A:sim on ground,bool) isn't necessary!
Sorry, but that's incorrect!(A:sim on ground,bool) is precisely the same as(A:sim on ground,bool) 1 ==Just as(A:sim on ground,bool) !is precisely the same as(A:sim on ground,bool) 0 ==Note carefully that this is only true when the units are "boolean."Please don't confuse things with incorrect information... :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Moderator
I tried it, no sound when they autodeploy, could it be something else other than the xml file?
The problem with this last attempt is that the stuff in red is blocking the script from executing. Also, shouldn't the value to send to the sound be a 2 so it will loop?(A:sim on ground,bool) (A:Spoilers handle position,percent) 40 > and if{ (L:spoiler,number) 0 == if{ 1 (>L:spoiler,number) 1 (>L:spoiler sound,number) } } els{ 0 (>L:spoiler,number) }

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
Sorry, but that's incorrect!(A:sim on ground,bool) is precisely the same as(A:sim on ground,bool) 1 ==Just as(A:sim on ground,bool) !is precisely the same as(A:sim on ground,bool) 0 ==Note carefully that this is only true when the units are "boolean."Please don't confuse things with incorrect information... Talk%20to%20the%20Hand.gif
I stand corrected Bill! :( Though I like to put a value as it's clearer (to me at least) especially during this cold spell (avg temp -14c) I'm on single brain cell operations!!!As regards the 2 for looping I believe the poster is intending a sound to simulate the lever movement which I would imagine would be 1.vololiberista

Edited by vololiberista

3VlzBGn.jpg?1

Super VC10 into LOWI with PF3 at a cinema near you

https://www.youtube.com/watch?v=298UDyNmgUA

 

The spoiler lever sound should not loop. I would also add (P:ACTIVE VIEW MODE,enum) 1 == so it is only heard in the cockpit view.Nothing worse than hearing cockpit noises when watching one's landing in tower view.IMO

  • Author

Ok did some changes and missed on the post for moving the wav file also in the same folder.....still not working here.Now I have all my files underAircraftPanelsPanel.737-200Sounddsd_xml_sound3.gaurp732_speed_brake_deploy.wavspoilersound.inispoilersound.xmlI changed my sound ini to read this beacuse of its new location[Config]MaxSounds=11ErrorFlag=0LvarStop=SoundStop[sounds]Sound00=.AircraftPanelsPanel.737-200Soundrp732_speed_brake_deploy.wav[LVars]Lvar00=spoilersoundthis is what my spoilersound.xlm reads<Gauge Name="spoilersound" Version="1.0"><Update>(A:SPOILERS LEFT POSITION,percent) 40 > (A:Spoilers handle position,percent) 40 > and(A:SPOILERS LEFT POSITION,percent) 90 > |if{ 2 (>L:spoiler sound,number) } els{ 0 (>L:spoiler sound,number) }</Update></Gauge>and my last 2 entires on my panel configgauge119=dsd_xml_sound3!dsd_xml_sound3, 2,2,5,5,.AircraftPanelsPanel.737-200Soundspoilersound.inigauge120=sound!spoilersound, 0,0,what does the "sound!" do on the last gauge120 entiry for sound!spoilersound, 0,0,? cause before it was without it like this:gauge120=spoilersound, 0,0,can anyone find an issue with this? Can you Ed?

Asus Tuf Gaming Plus B550 - Ryzen 7 5800X3D - Asus GeForce 4080 RTX OC Edition - 64GB DDR4 (3600Mhz) - EVGA 850W Power Supply - 2X 1 TB NVME PCIE gen 4 - Windows 11 (25H2)

1.gauge120=sound!spoilersound, 0,0, means that the xml gauge "spoilersound" is in the sound folder under the panel.737-200 folder.all files must be there.2.gauge119=dsd_xml_sound3!dsd_xml_sound3, 2,2,5,5,.AircraftPanelsPanel.737-200Soundspoilersound.iniis there to, so it must be:gauge119=sounddsd_xml_sound3!dsd_xml_sound3, 2,2,5,5,.AircraftPanelsPanel.737-200Soundspoilersound.ini ; you forgot a 3.xml should be:

<Gauge Name="spoilersound" Version="1.0"><Update>(A:sim on ground,bool)  (A:Spoilers handle position,percent) 40 > andif{  (L:spoiler,number) 0 ==  if{  1 (>L:spoiler,number)  1 (>L:spoiler sound,number)  }  }els{  0 (>L:spoiler,number)  }  </Update></Gauge>

I presume that the Panel.737-200 folder contains the panel bitmaps and panel.cfg?Also, did you save as xml and not as text?

Edited by phjvh

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Author

Thats correct, my panel.737-200 folder has the bitmaps and the panel.cfg, I just went and created a sound folder in the panel.737-200 folder and placed the following files in itdsd_xml_sound3.gaurp732_speed_brake_deploy.wavspoilersound.inispoilersound.xmlThanks for pointing the missing "" added the "" and will try again

Edited by Bill A

Asus Tuf Gaming Plus B550 - Ryzen 7 5800X3D - Asus GeForce 4080 RTX OC Edition - 64GB DDR4 (3600Mhz) - EVGA 850W Power Supply - 2X 1 TB NVME PCIE gen 4 - Windows 11 (25H2)

  • Author

Thank all for all the help, Iearned alot and now its working fine...I had an issue with my ini file and now its working great.. Thanks a million

Asus Tuf Gaming Plus B550 - Ryzen 7 5800X3D - Asus GeForce 4080 RTX OC Edition - 64GB DDR4 (3600Mhz) - EVGA 850W Power Supply - 2X 1 TB NVME PCIE gen 4 - Windows 11 (25H2)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.