Welcome to Cockpitbuilders.com. Please login or sign up.

May 09, 2024, 07:30:19 PM

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
573 Guests, 0 Users
Members
Stats
  • Total Posts: 59,641
  • Total Topics: 7,853
  • Online today: 588
  • Online ever: 831
  • (May 03, 2024, 12:39:25 PM)
Users Online
Users: 0
Guests: 573
Total: 573

COUNTDOWN TO WF2022


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

Welcome

Project Magenta sounds and PM Systems

Started by jr2mey, July 28, 2017, 08:04:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jr2mey

Hello all,

Seeing how powerfull PMSystems is, I am wondering if it can trigger an user defined sound event within PMSounds with logics writen in Pmsystems. Example:

if Landinglight=on and flappos>15 and fsaltitude <10000
then playwav= wavefile //something inside Pmsounds

Thanks,
James

James

Bob Reed

I believe the answer to this question is yes.....  :D :P

jr2mey

So I like the answer yes  ;D but then, what is it im doing wrong.  Im am unable to get the event to trigger the user defined sound...This is what is written in my 737 logic file.

if Landinglight=on and flappos>15 and fsaltitude <10000
               then playwav= prepland.wav
end if

James

RayS

#3
Just a couple of hunches:

1. maybe you need to reference the fully-qualified filename: eg: C:\Soundfiles\prepland.wav ?

2. Maybe case-sensitivity is in play here? Landinglight is capitalized.. maybe it shouldn't be?

3. Maybe multiple conditions need to be nested?

   Instead of: if Landinglight=on and flappos>15 and fsaltitude <10000

   Maybe it should be:

      if landinglight = on
         if flappos  > 15
            if fsaltitude < 10000
               then playwav=prepland.wav
            endif
         endif
      endif
   
4. I'd also add VS... If verticalspeed < 0 or something. (or whatever it is in PMSystems)

5. Maybe the values are FLOAT values instead of integers: flaps = 15.0?

I literally know nothing about PM systems, but hopefully some of this is helpful...
Ray Sotkiewicz

jr2mey

Awesome Ray!

When I get home I will see if that works.  Programming is something that I have never done before and have been trying to decifer what PM has written in its SYS VAR file and mimic.

Actually I'm now in full on learning mode for C++ becuase of this one stuipid little request, LOL.  Then thinking about Java after that......well ... maybe if I can learn C++ and not through the computer out into the yard... :o

James

Like the Website ?
Support Cockpitbuilders.com and Click Below to Donate