Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi, MSFS 2020 - I have the wav file for the spoiler deployment when the 737 touches down and the spoiler moves from its Armed position to full up.

Within project magenta, I can trigger this sound by the change in value of an offset.  The problem is that there is no offset I can find for speedbrake deploy.

I have a sioc script from Opencockpits that controls the movement of the speedbrake, for example it states that "If speedbrake is armed, aircraft is on the ground and speed is greater than 65 knots then move the speedbrake motor" .  I was thinking I could add in here to send a value to, for example, a user-definable offset or something similar, but I couldn't find sucha  thing

Or maybe you could point me in a better direction?

Thanks!

Charles

Posted
Just now, chasbruce said:

maybe a stupid question, but will that offset be altered if I am flying a non-PMDG aircraft, I am using Project Magenta?

Ah, sorry - then no, you cannot use that offset.

Try logging offset 0x0BD0 and see what that holds when the spoilers are deployed:

Quote
0x0BD0 4 SPOILERS HANDLE POSITION Responded Responded
Spoilers control, 0 off, 4800 arm, then 5620 (7%) to 16383 (100% fully deployed).The 4800 value is set by arming. Values from 0 to somewhere close to, but below, 4800 do nothing. The percentage extension is the proportion of the distance in the range 4800 to 16383, even though values 4800 to 5619 cannot be used—7% seems to be the minimum.

 

 

John

 

Posted

Thx, that would be perfect if I could specify the trigger of the sound when this offset has a value of 16383, but the PM Sound config just has the following and PLayType is just 0, 1, 2 or CYC, there doesn't seem to be somewhere where I can put in 16383:

Quote

Also accepts:
          //    Offset=<hex offset>
          //    Bytes=<number of bytes>
          //    Example, play nchime when Landing Light state changes:
          //       file=nchime.wav
          //       Type=main
          //       Disabled=Off
          //       Volume=90
          //        Offset=D0C
          //        Bytes=.2
          //        (bytes can be any of 1, 2, 4 and use . for bits e.g. .4 is bit 4
          //        PlayType=0    // 0 = play on change of value, 1 when it switches on, 2 when it switches off, CYC = cyclic
 

 

Posted
1 hour ago, chasbruce said:

Thx, that would be perfect if I could specify the trigger of the sound when this offset has a value of 16383

Did you check that was the case? i.e. does that offset hold the correct value?
If so, you could have a lua script (auto-ran) that monitors that offset (using event.offset) and when the value hits 16383 (or maybe below this) you could write a value of 1 to a different/spare FSUIPC offset and use that in the PM sound config. Of course, you would also need to reset that offset when the value in 0x0BD0 goes back below 16383 (or the value that you use).

Posted

I think I have found a way, but if it doesn't work I'll try your LUA route

I just discovered that sioc has a sound module, so rather than use project magenta, I'll rund the sound from there as there is already a variable there for the action of the speedbrake

Huge thanks in the meantime, I'll revert if these 2 options don't work

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.