August 12, 201015 yr Hi guys, I have been working on a project improving the panel of one of my planes, I learned a bit about XML and few other things, the tools I've been using are nothing fancy, just Photo paint Pro, Photoshop and notepad. I also created an XML gauge for an animated 2D yoke that is working fine, but I want to know how to create a gauge to hear a sound everytime I extend or retract the Flaps, my idea is to record my own voice for the flaps callouts. Can anyone help me to achieve this??? I really appreciate any help.Tony
August 13, 201015 yr Read, Read then re-read the readme.. It's a great addon but must be adhered to explicitly.. If you get a problem it is on your end,, really..Have fun, RomanPS Thought this was here @ AVSIM maybe it got lost in the hack, who knows.. FS RTWR SHRS F-111 JoinFS Little Navmap
August 13, 201015 yr Author Thank you guys, I have been reading the Readme file, it gets more confusing the more I read lol... soon I'll post a picture of the panel I have been working on for the last 2 months.
August 13, 201015 yr I am working on some thing simliar to this for the HS748 by Rick Piper. My code works via a joystick button press though, so when I am at flaps up speed, I press a button on my joystick which then plays a sound and moves the flaps up.If I can be of any help let me know :(
August 14, 201015 yr Author I am working on some thing simliar to this for the HS748 by Rick Piper. My code works via a joystick button press though, so when I am at flaps up speed, I press a button on my joystick which then plays a sound and moves the flaps up.If I can be of any help let me know :(Yes, something like that is what Im trying to achieve, my code should be very simple, I just want to play a sound every time I hit F7 to extend a flap, and those sounds must be played in order because we are talking about playing flaps callouts, and then during flaps retraction every time I hit F6, as simple as that, but I still don't know how to start writing the code
August 14, 201015 yr Yes, something like that is what Im trying to achieve, my code should be very simple, I just want to play a sound every time I hit F7 to extend a flap, and those sounds must be played in order because we are talking about playing flaps callouts, and then during flaps retraction every time I hit F6, as simple as that, but I still don't know how to start writing the code One way to do it with a gauge is to monitor the flap's position.If you compare the flap's previous position to it's current you can tell if it is going up or down.It's direction and current position then tell to which position it is going so you can select the appropriate sound to play.To prevent the sound being played many times you can use a variable. Set it when the sound is played, reset it when the flap is out of the region that activates the sound.See the attached file.the left column is the flap's position, the next column the sounds played when the flap goes down and the next column for when the flap goes up.the crosses in the right column is where the inhibit flag is reset.I don't think that you can monitor keypresses with xml gauges but you probably can with a C gauge.
August 14, 201015 yr I think Ed/Ted Cook has had success using keyboard input to .xml gaugesI found this snip in my archives and a note to myself to find "Strobe Switch" in the Avsim forum for his actual usage. Unfortunately I didn't save a link to the thread. <Keys><On Key="Keyboard Key">(>K:Variable Event) </On></Keys> I haven't tried it, so don't know if it works.Along with the snip was a partial list of key numbers compiled by Rob Barendregt and this note: A list of all Windows key codes can be found in Peter Dowson's FSUIPC zipped package in the FSUIPC for Advanced Users.doc, available from http://www.schiratti.com/dowson.html ...Don
August 16, 201015 yr I am using an on event INCREASE_DECISION_HEIGHT. I already have a flight yoke button assigned to Increase Decision Height (Concorde) for the FS2crew 767 add on, so for me the simplist thing to do was use the same button. Via the code I can set the flaps position using (>K:FLAPS_UP) (>K:FLAPS_1) etc. etc.For the code you could use something like this. //Flaps 15 takeoff<Keys><On Event="INCREASE_DECISION_HEIGHT">(L:Takeoff,bool) if{ (L:TOFlaps,bool) 0 == (A:Radio Height, Feet) 400 > && if{ 1 (>L:soundflap5,enum) (>K:FLAPS_1) 1 (>L:TOFlaps,bool) } els{ (L:Takeoff,bool) (L:TOFlaps,bool) 1 == && if{ 1 (>L:soundflapup,enum) (>K:FLAPS_UP) 0 (>L:TOFlaps,bool) 0 (>L:Takeoff,bool) } } }</Keys> I hope this helps :(
Create an account or sign in to comment