Jump to content
The simFlight Network Forums

delta757232

Members
  • Posts

    36
  • Joined

  • Last visited

Posts posted by delta757232

  1. Hi Pete,

    Using FS9, FSUIPC 3.9(z)

    Question: I was wondering if I can assign a switch outside of FSUIPC to change the value in the visibility tab "Set Graduated Visibility"? The field I want to control is titled "with this upper visibility (1/100ths mile). Please see image link below as the field is highlighted. 

    What I want to be able to do is assign a rotary switch within EPIC that will allows me to change this value instead of having to pause the flight and enter the FSUIPC  module applet.

    Reason being is that during daylight flights I want the max to be in the area of around 60nm but at night increase this significantly as it allows the night lights to "pop" and be more brighter as they are in real life.

    Thank you for your time,

    Michael
    www.757simulator.com

    Pete1.jpg

  2. Hello Pete,

     

    I have a lua I wrote some time ago that plays various sounds (lua driven) either by switches or programming in EPIC. It has worked flawlessly for several weeks.

     

    Yesterday,I added a new wav file that I assigned in FSUIPC (like many others) to play when a toggle is tripped. No matter what I do the wav file will not play. Just to make sure I was adding it correctly, I went into my lua file and addressed it to play a different wav file which it did successfully.

     

    So I am at a lost why this one particular wav file refuses to play. The file is a vary long wav file as it is intended to play muzak (boarding music) for our home cockpit. The wav file is in the neighborhood of being 15 minutes long. I did check and it was saved in the same format as the other wav's (16 bit stereo etc. etc.). Is there limitations as to what type of wav files can be played?

     

    Any help appreciated,

     

    Michael

  3. Hi Pete,

     

    I am using FS9.

     

    I am now beginning to use some of the older photo scenery in the sim such as MegaCity titles etc.

     

    The problem I have with the photo scenery is blurriness. Even with today's machines I am suffering this as I have multiple display windows operating.

     

    So I did research and was unable to see where I might be able to toggle this during flight.

     

    So my question is:

     

    Would it be possible to read an offset or write a LUA script that allows me to trigger the various levels of autogen in FS9 while

    I'm flying rather than pause the sim and change it from the menu?

     

    Much thanks,

     

    Mike Lehkamp

  4. Don, kind of given up at this point of getting all these sounds to work together. Therefore, I have chosen (albeit prob not the right way but it works) to use the Simsound.lua to trigger the "once played" files and to use the Sndloop.lua (which does not work) to someday trigger the looping files. It is absolutely ridiculous the amount of time I've spent trying to get this to work. Esound was perfect. Not sure why they strayed from something that was not broken. Anyway, yes I simplified even more and have posted below what I'm working with including what you requested: enable "Debug/Trace Lua Plugins".

     

    Simsound.lua (This works)Single play sounds

     

    sound.path("C:\\")

     
    if     ipcPARAM == 1 then
              sound.play("firebell")
     
    elseif ipcPARAM == 2 then
              sound.play("safetybrf")
     
    elseif ipcPARAM == 3 then
              sound.play("gatebrf")
     
    elseif     ipcPARAM == 4 then
              sound.play("preparedepart")
     
    elseif ipcPARAM == 5 then
              sound.play("clearedland")
     
    elseif ipcPARAM == 6 then
              sound.play("crzbrief")
     
    elseif     ipcPARAM == 7 then
              sound.play("turbulence")
     
    elseif ipcPARAM == 8 then
              sound.play("beginappr")
     
    elseif ipcPARAM == 9 then
              sound.play("chime")
     
    elseif ipcPARAM == 10 then
              sound.play("taxiin")
     
    elseif     ipcPARAM == 11 then
              sound.play("tcastest")
     
    elseif ipcPARAM == 12 then
              sound.play("above10000")
     
    elseif ipcPARAM == 13 then
              sound.play("numb1depart")
     
    end
     
    Sndloop.lua (Does not work) Loop sounds
     
    -- sndloop.lua
    sound.path("C:\\")
    function sndloop(flag)
         if ipc.testflag(1) then
            ipc.clearflag(1)
            if sound.query(refa) == true then
               sound.stop(refa)
           else
               refa = sound.playloop("boarding.wav")
            end
       elseif ipc.testflag(2) then
            ipc.clearflag(2)
            if sound.query(refb) == true then
               sound.stop(refb)
            else
               refb = sound.playloop("fueltrk1.wav")
            end
       else
           end
    end
    event.flag("sndloop")
     
    FSUIPC.INI Settings
     
    [Auto]
    1.Lua=Sndloop
     
     
    [LuaFiles]
    1=Gpwstest
    2=Simsound
    3=Sndloop
     
     
     
    [buttons]
    ButtonRepeat=20,10
    1=P0,3,CL2:R,13
    2=P0,0,CL2:R,1
    3=P0,4,CL2:R,2
    4=P0,5,CL2:R,3
    5=P0,6,CL2:R,4
    6=P0,7,CL2:R,5
    7=P0,8,CL2:R,6
    8=P0,9,CL2:R,7
    9=P0,1,CL2:R,8
    10=P0,11,CL2:R,9
    11=P0,12,CL2:R,10
    12=P0,14,CL2:R,11
    13=P0,2,CL2:R,12
    14=P0,10,CL3:S,1
    15=P0,19,CL3:S,2
     
    FSUIPC Log
     
    ********* FSUIPC, Version 3.999z8 by Pete Dowson *********
    Running on Windows Version 5.1 Build 2600 Service Pack 2
    Running inside FS2004 (FS9.1 CONTROLS.DLL, FS9.1 WEATHER.DLL)
    User Name="Removed"
    User Addr="Removed"
    FSUIPC Key is provided
    WideFS Key is provided
    Module base=61000000
    WeatherReadInterval=4
    LogOptions=00000001
    DebugStatus=255
         2308 System time = 12/07/2015 21:56:56
         2308 \\PC1-SERVERMICRO\D\Flight Simulator 9\
         2308 System time = 12/07/2015 21:56:56, FS2004 time = 12:00:00 (00:00Z)
         4227 \\PC1-SERVERMICRO\Users\myDeltaVA-Mainframe\Documents\Flight Simulator Files\+++BOEING 757 FLIGHT SIMULATOR.flt
         4243 AIRCRAFT\LVLD_B763_WingletDEFAULT\B767-300.air
         4243 Aircraft="Level D Simulations B767-300ER Winglet - Delta_PW"
         8892 AES Link established
         8923 Advanced Weather Interface Enabled
        19578 Traffic File #92 = "scenery\world\scenery\traffic_32_woa_airtran airways_su07"
        19765 Traffic File #62 = "scenery\world\scenery\traffic_000_woa_jetblue airways_su08"
        22651 *** Entered Buttons option page ***
        22667 FirstButtonChange res=00000520 (0.5, 32)
        25163 *** Exiting Buttons option page ***
        40997 WeatherOptions set, now 40003605 (timer=0)
        41059 Traffic File #29 = "scenery\world\scenery\traffic_000_woa_allegiant air_wi13"
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41262 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41262 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41262 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41262 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41371 Traffic File #21 = "scenery\world\scenery\traffic_000_woa_air canada_su08_fs9"
        41402 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41402 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41402 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41402 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41402 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41402 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41402 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41402 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41418 Traffic File #46 = "scenery\world\scenery\traffic_000_woa_delta air lines_su13"
        41449 Traffic File #57 = "scenery\world\scenery\traffic_000_woa_frontier airlines_wi08"
        41480 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41480 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41480 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41480 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41527 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41527 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41527 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41527 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41558 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41558 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41558 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41558 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41652 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41652 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41652 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41652 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41730 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41730 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41730 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41730 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41777 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41777 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41777 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41777 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41823 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41823 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41823 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41823 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41855 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41855 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41855 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41855 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41870 Traffic File #83 = "scenery\world\scenery\traffic_000_woa_united airlines_su13"
        41948 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41948 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41948 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41948 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        41948 Traffic File #90 = "scenery\world\scenery\traffic_13_woa_united parcel service_su07"
        41979 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        41979 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        41979 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        41979 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42026 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42026 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42026 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42026 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42073 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42073 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42073 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42073 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42104 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42104 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42104 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42104 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42245 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42245 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42245 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42245 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42401 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42401 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42401 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42401 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42401 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42401 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42401 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42401 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42401 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42401 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42401 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42401 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42479 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42479 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42479 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42479 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42525 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42525 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42525 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42525 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42557 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42557 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42557 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42557 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42650 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42650 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42650 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42650 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42728 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42728 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42728 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42728 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42775 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42775 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42775 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42775 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42806 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42806 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42806 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42806 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42900 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42900 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42900 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42900 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42947 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42947 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42947 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42947 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        42978 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        42978 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        42978 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        42978 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43025 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43025 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43025 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43025 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43071 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43071 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43071 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43071 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43149 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43149 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43149 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43149 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43227 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43227 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43227 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43227 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43274 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43274 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43274 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43274 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43321 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43321 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43321 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43321 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43399 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43399 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43399 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43399 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43493 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43493 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43493 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43493 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43524 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43524 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43524 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43524 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43571 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43571 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43571 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43571 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43617 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43617 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43617 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43617 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43742 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43742 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43742 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43742 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43773 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43773 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43773 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43773 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43820 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43820 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43820 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43820 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43867 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43867 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43867 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43867 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43945 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43945 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43945 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43945 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        43992 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        43992 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        43992 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        43992 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        44039 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        44039 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        44039 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        44039 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        44070 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        44070 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        44070 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        44070 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        44117 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        44117 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        44117 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        44117 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        44241 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        44241 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        44241 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        44241 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        44288 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        44288 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        44288 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        44288 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        44319 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        44319 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        44319 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        44319 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        44366 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        44366 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        44366 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        44366 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        44444 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        44444 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        44444 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        44444 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        44538 *** EVENT: Cntrl= 66080 (0x00010220), Param= 0 (0x00000000) GEAR_DOWN
        44538 *** EVENT: Cntrl= 65956 (0x000101a4), Param= 0 (0x00000000) FUEL_SELECTOR_ALL
        44538 *** EVENT: Cntrl= 65927 (0x00010187), Param= 0 (0x00000000) MAGNETO1_OFF
        44538 *** EVENT: Cntrl= 65933 (0x0001018d), Param= 0 (0x00000000) MAGNETO2_OFF
        44538 *** EVENT: Cntrl= 66595 (0x00010423), Param= 0 (0x00000000) CROSS_FEED_OPEN
        44538 *** EVENT: Cntrl= 65962 (0x000101aa), Param= 2 (0x00000002) FUEL_SELECTOR_SET
        44538 *** EVENT: Cntrl= 66523 (0x000103db), Param= 3 (0x00000003) FUEL_SELECTOR_2_SET
        45240 Button changed: bRef=0, Joy=0, Btn=11, Pressed
        45240 [buttons] 10=P0,11,CL2:R,9
        45240 LUA.0: beginning "D:\Flight Simulator 9\MODULES\Simsound.lua"
        45240 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:1
        45255 LUA.0: Global: ipcPARAM = 9
        45255 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:3
        45255 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:6
        45255 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:9
        45255 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:12
        45255 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:15
        45255 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:18
        45255 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:21
        45255 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:24
        45255 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:27
        45255 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:28
        45365 LUA.0: D:\Flight Simulator 9\MODULES\Simsound.lua:46
        45365 LUA.0: ended "D:\Flight Simulator 9\MODULES\Simsound.lua"
        45505 Button changed: bRef=0, Joy=0, Btn=11, Released
        48937 Button changed: bRef=0, Joy=0, Btn=10, Pressed
        48937 [buttons] 14=P0,10,CL3:S,1
        49233 Button changed: bRef=0, Joy=0, Btn=10, Released
        55817 *** EVENT: Cntrl= 65732 (0x000100c4), Param= 0 (0x00000000) EXIT
        57080 System time = 12/07/2015 21:57:51, FS2004 time = 14:36:46 (18:36Z)
        57080 *** FSUIPC log file being closed
    Memory managed: 2 Allocs, 222 Freed
    ********* FSUIPC Log file closed ***********
     
  5. Hi Don,

     

    Still no luck. Trying simplify until I get it working.

     

    LOG FILE HERE

     

    FSUIPC.INI

     

    [Auto]
    1.Lua=sndloop
     
    [LuaFiles]
    1=Gpwstest
    2=sndloop
     
    [buttons]
    ButtonRepeat=20,10
    1=P0,0,CL2:S,1
    2=P0,4,CL2:S,2
    3=P0,5,CL2:S,3
    4=P0,10,CL2:S,15
     
    My File: sndloop.lua
     
    -- Simsound.lua by Michael & Donovan / July 2015
     
    sound.path("C:\\")
     
    function sndloop(flag)
     
    if      ipc.testflag(1) then
            ipc.clearflag(1)
            sound.play("firebell.wav")
     
    elseif  ipc.testflag(2) then
            ipc.clearflag(2)
            sound.play("safetybrf.wav")
     
    elseif  ipc.testflag(3) then
            ipc.clearflag(3)
            sound.play("gatebrf.wav")
     
    elseif  ipc.testflag(4) then
            ipc.clearflag(4)
            sound.play("preparedepart.wav")
     
    elseif  ipc.testflag(5) then
            ipc.clearflag(5)
            sound.play("clearedland.wav")
     
    elseif  ipc.testflag(6) then
            ipc.clearflag(6)
            sound.play("crzbrief.wav")
     
    elseif  ipc.testflag(7) then
            ipc.clearflag(7)
            sound.play("turbulence.wav")
     
    elseif  ipc.testflag(8) then
            ipc.clearflag(8)
            sound.play("beginappr.wav")
     
    elseif  ipc.testflag(9) then
            ipc.clearflag(9)
            sound.play("chime.wav")
     
    elseif  ipc.testflag(10) then
            ipc.clearflag(10)
            sound.play("taxiin.wav")
     
    elseif  ipc.testflag(11) then
            ipc.clearflag(11)
            sound.play("tcastest.wav")
     
    elseif  ipc.testflag(12) then
            ipc.clearflag(12)
            sound.play("stall.wav")
     
    elseif  ipc.testflag(13) then
            ipc.clearflag(13)
            sound.play("above10000.wav")
     
    elseif  ipc.testflag(14) then
            ipc.clearflag(14)
            sound.play("numb1depart.wav")
     
    elseif  ipc.testflag(15) then
            ipc.clearflag(15)
            sound.play("avail1.wav")
    -- Rename and install a file when needed
     
    elseif  ipc.testflag(16) then
            ipc.clearflag(16)
            sound.play("avail2.wav")
    -- Rename and install a file when needed
     
    elseif  ipc.testflag(17) then
            ipc.clearflag(17)
            sound.play("avail3.wav")
    -- Rename and install a file when needed
     
     
    elseif  ipc.testflag(18) then
            ipc.clearflag(18)
     
    if sound.query(refa) == true then
               sound.stop(refa)
     
            else
              
    refa = sound.playloop("boarding.wav")
     
            end
       
    elseif  ipc.testflag(19) then
            ipc.clearflag(19)
            
    if sound.query(refb) == true then
               sound.stop(refb)
     
            else
               
    refb = sound.playloop("fueltrk1.wav")
            
    end
     
    elseif  ipc.testflag(20) then
            ipc.clearflag(20)
            
    if sound.query(refc) == true then
               sound.stop(refc)
     
            else
               
    refc = sound.playloop("fueltrk2.wav")
            
    end
     
        else
     
            end
    end
     
    event.flag("sndloop") 
  6. Don,

     

    I did correct one error I found:

     

    elseif  ipc.testflag(20) then
            ipc.clearflag(20)
            
    if sound.query(refc) == true then
               sound.stop(refc)
     
            else
               
    refb = sound.playloop("fueltrk2.wav")
     
    to:
     
    elseif  ipc.testflag(20) then
            ipc.clearflag(20)
            
    if sound.query(refc) == true then
               sound.stop(refc)
     
            else
               
    refc = sound.playloop("fueltrk2.wav")
  7. Hello Don,

     

    Thank you so much for for taking the time and making your reply & example so informative. It is appreciated more than you will ever know.

     

    I've been playing with this since about 2PM today and cannot get either the looping or non-looping files to play. I'm sure I have something wrong somewhere. If you get a sec, can you take a peak? Please note I cleared out all of the prior button comments in the INI file and started fresh assigning each as a LuaSet as so directed by you. Thanks again.

     

    Michael

     

    FSUIPC

     

    [LuaFiles]
    1=Gpwstest
    2=Simsound
    3=Simsound2
     
    [buttons]
    ButtonRepeat=20,10
    1=P0,13,CL1:R,0
    2=P0,0,CL3:S,1
    3=P0,4,CL3:S,2
    4=P0,5,CL3:S,3
    5=P0,6,CL3:S,4
    6=P0,7,CL3:S,5
    7=P0,8,CL3:R,6
    8=P0,9,CL3:S,7
    9=P0,1,CL3:S,8
    10=P0,11,CL3:S,9
    11=P0,12,CL3:S,10
    12=P0,14,CL3:S,11
    13=P0,2,CL3:S,13
    14=P0,3,CL3:S,14
    15=P0,10,CL3:S,15
    16=P0,19,CL3:S,16

     

    17=P0,18,CL3:S,17

     

     

    Simsound.lua

     

    -- Simsound.lua by Michael & Donovan / July 2015

     
    function sndloop(flag)
     
    if      ipc.testflag(1) then
            ipc.clearflag(1)
            sound.play("firebell.wav")
     
    elseif  ipc.testflag(2) then
            ipc.clearflag(2)
            sound.play("safetybrf.wav")
     
    elseif  ipc.testflag(3) then
            ipc.clearflag(3)
            sound.play("gatebrf.wav")
     
    elseif  ipc.testflag(4) then
            ipc.clearflag(4)
            sound.play("preparedepart.wav")
     
    elseif  ipc.testflag(5) then
            ipc.clearflag(5)
            sound.play("clearedland.wav")
     
    elseif  ipc.testflag(6) then
            ipc.clearflag(6)
            sound.play("crzbrief.wav")
     
    elseif  ipc.testflag(7) then
            ipc.clearflag(7)
            sound.play("turbulence.wav")
     
    elseif  ipc.testflag(8) then
            ipc.clearflag(8)
            sound.play("beginappr.wav")
     
    elseif  ipc.testflag(9) then
            ipc.clearflag(9)
            sound.play("chime.wav")
     
    elseif  ipc.testflag(10) then
            ipc.clearflag(10)
            sound.play("taxiin.wav")
     
    elseif  ipc.testflag(11) then
            ipc.clearflag(11)
            sound.play("tcastest.wav")
     
    elseif  ipc.testflag(12) then
            ipc.clearflag(12)
            sound.play("stall.wav")
     
    elseif  ipc.testflag(13) then
            ipc.clearflag(13)
            sound.play("above10000.wav")
     
    elseif  ipc.testflag(14) then
            ipc.clearflag(14)
            sound.play("numb1depart.wav")
     
    elseif  ipc.testflag(15) then
            ipc.clearflag(15)
            sound.play("avail1.wav")
    -- Rename and install a file when needed
     
    elseif  ipc.testflag(16) then
            ipc.clearflag(16)
            sound.play("avail2.wav")
    -- Rename and install a file when needed
     
    elseif  ipc.testflag(17) then
            ipc.clearflag(17)
            sound.play("avail3.wav")
    -- Rename and install a file when needed
     
     
    elseif  ipc.testflag(18) then
            ipc.clearflag(18)
     
    if sound.query(refa) == true then
               sound.stop(refa)
     
            else
              
    refa = sound.playloop("boarding.wav")
     
            end
       
    elseif  ipc.testflag(19) then
            ipc.clearflag(19)
            
    if sound.query(refb) == true then
               sound.stop(refb)
     
            else
               
    refb = sound.playloop("fueltrk1.wav")
            
    end
     
    elseif  ipc.testflag(20) then
            ipc.clearflag(20)
            
    if sound.query(refc) == true then
               sound.stop(refc)
     
            else
               
    refb = sound.playloop("fueltrk2.wav")
            
    end
     
        else
     
            end
    end
     
    event.flag("sndloop") 
  8. Hi Don,

     

    Thank you again for the reply.

     

    trust me, im not afraid to "dig in" so to speak. Below is about an 1/8 of the code I've written for my simulator (Epic). 

     

    I'll figure this girl out. Thanks again. Appreciated.

     

    Michael

     

    // Pigeon holes and Qprocs
     
     
     
     
     
    :DisplayLLorWind
     
    {
     
     if(showLatLon)
     
     {
     
       Display.LonD = lonDeg;
     
       Display.LonM = lonMin;
     
       Display.LonS = lonSec;
     
       Display.LatD = latDeg;
     
       Display.LatM = latMin;
     
       Display.LatS = latSec;
     
     }
     
     else
     
     {
     
      Display.LatBlank = blank;
     
      Display.LonBlank = blank;
     
     
     
      Display.Windir_speed = windSpeed;
     
      Display.Windir_dir = windDirection; 
     
     }
     
     
     
     
     
     
    //----Pigeon holes -----
     
    ph LeftBleed(2)
     
    {
     
    byte T1;
     
    byte T2;
     
    word W1;
     
     
     
     
     
    };
     
     
     
    ph StarterLights(5)
     
    {
     
    word data; //bit 0 = L starter Valve, bit 1 = R starter Valve
     
     
     
    if(StarterLights.data & 0b0000000000000001)
     
    {Outputs0.EMDA24_31.EngStarLX = on;} else {Outputs0.EMDA24_31.EngStarLX = off;}
     
    if(StarterLights.data & 0b0000000000000010)
     
    {Outputs0.EMDA24_31.EngStarRX = on;} else {Outputs0.EMDA24_31.EngStarRX = off;} 
     
     
     
    };
     
     
     
    ph FuelengvalLights(6) //bits 0=LengValve,1=RengValve,2=LSparValve,3=RSparValve,4=upprXfeed,5=LowerXfeedValve
     
    {
     
    byte bits;
     
     
     
    if(FuelengvalLights.bits & 0b00000001) {Outputs1.EMDA48_55.LEngValveX_Lt = on ;} else {Outputs1.EMDA48_55.LEngValveX_Lt = off;}
     
    if(FuelengvalLights.bits & 0b00000010) {Outputs1.EMDA48_55.REngValveX_Lt = on ;} else {Outputs1.EMDA48_55.REngValveX_Lt = off ;}
     
    if(FuelengvalLights.bits & 0b00010000){Outputs3.EMDA104_111.FuelXBt_Lt  = on;} else {Outputs3.EMDA104_111.FuelXBt_Lt = off;}
     
    };
     
     
     
    ph Bleedvalvelights(8)
     
    {
     
    byte bits;
     
    byte dummy1;
     
    byte dummy2; 
     
    byte dummy3;
     
     
     
    if(Bleedvalvelights.bits & 0b00000001 ){Outputs3.EMDA104_111.BldLEngLt_Lt = on;} else {Outputs3.EMDA104_111.BldLEngLt_Lt = off;}
     
    if(Bleedvalvelights.bits & 0b00000010 ){Outputs3.EMDA120_127.BldApuRt_Lt = on;} else {Outputs3.EMDA120_127.BldApuRt_Lt = off;}
     
    if(Bleedvalvelights.bits & 0b00000100 ){Outputs3.EMDA112_119.BldREngRt_Lt = on;} else {Outputs3.EMDA112_119.BldREngRt_Lt = off;}
     
     
     
    };
     
     
     
    ph WindheatLights(9)
     
    {
     
    byte bits;
     
    byte dummy1;
     
    byte dummy2;
     
    byte dummy3;
     
     
     
    if(WindheatLights.bits & 0b00000001){Outputs3.EMDA120_127.WHLSideBt_Lt  = on;} else {Outputs3.EMDA120_127.WHLSideBt_Lt = off;}
     
    if(WindheatLights.bits & 0b00000010){Outputs3.EMDA96_103.WHLFwdBt_Lt  = on;} else {Outputs3.EMDA96_103.WHLFwdBt_Lt = off;}
     
    if(WindheatLights.bits & 0b00000100){Outputs3.EMDA112_119.WHRFwdBt_Lt  = on;} else {Outputs3.EMDA112_119.WHRFwdBt_Lt = off;}
     
    if(WindheatLights.bits & 0b00001000){Outputs3.EMDA112_119.WHRSideBt_Lt  = on;} else {Outputs3.EMDA112_119.WHRSideBt_Lt = off;}
     
     
     
    };
     
     
     
    ph Syspresslights(10)
     
    {
     
    byte bits;
     
    byte dummy1;
     
    byte dummy2; 
     
    byte dummy3;
     
     
     
    if(Syspresslights.bits & 0b00000001){Outputs6.EMDA64_71.HydLSysPrX_Lt = on;} else {Outputs6.EMDA64_71.HydLSysPrX_Lt = off;}
     
    if(Syspresslights.bits & 0b00000010){Outputs4.EMDA24_31.HydCSysPrX_Lt = on;} else {Outputs4.EMDA24_31.HydCSysPrX_Lt = off;}
     
    if(Syspresslights.bits & 0b00000100){Outputs4.EMDA16_23.HydRSysPrX_Lt = on;} else {Outputs4.EMDA16_23.HydRSysPrX_Lt = off;}
     
    if(Syspresslights.bits & 0b00001000){Outputs4.EMDA0_7.HydLQtyX_Lt = on;} else {Outputs4.EMDA0_7.HydLQtyX_Lt = off;}
     
    if(Syspresslights.bits & 0b00010000){Outputs4.EMDA8_15.HydCQtyX_Lt = on;} else {Outputs4.EMDA8_15.HydCQtyX_Lt = off;}
     
    if(Syspresslights.bits & 0b00100000){Outputs2.EMDA88_95.HyRQtyX_Lt = on;} else {Outputs2.EMDA88_95.HyRQtyX_Lt = off;}
     
     
     
    };
     
     
     
    ph Hydpumppresslights(11)
     
    {
     
    byte bits;
     
    byte dummy1;
     
    byte dummy2; 
     
    byte dummy3;
     
     
     
    if(Hydpumppresslights.bits & 0b00000001){Outputs2.EMDA80_87.HydLEngBt_Lt = on;} else {Outputs2.EMDA80_87.HydLEngBt_Lt = off;}
     
    if(Hydpumppresslights.bits & 0b00000010){Outputs2.EMDA80_87.HydC1Bt_Lt = on;} else {Outputs2.EMDA80_87.HydC1Bt_Lt = off;}
     
    if(Hydpumppresslights.bits & 0b00000100){Outputs3.EMDA104_111.HydC2Bt_Lt = on;} else {Outputs3.EMDA104_111.HydC2Bt_Lt = off;}
     
    if(Hydpumppresslights.bits & 0b00001000){Outputs3.EMDA112_119.HydREngBt_Lt = on;} else {Outputs3.EMDA112_119.HydREngBt_Lt = off;}
     
    if(Hydpumppresslights.bits & 0b00010000){Outputs3.EMDA112_119.HydLElecBt_Lt = on;} else {Outputs3.EMDA112_119.HydLElecBt_Lt = off;}
     
    if(Hydpumppresslights.bits & 0b01000000){Outputs3.EMDA112_119.HydRElecBt_Lt = on;} else {Outputs3.EMDA112_119.HydRElecBt_Lt = off;}
     
     
     
    };
     
     
     
    ph Extpowerswlights(12)
     
    {
     
    byte bits;
     
    byte dummy1;
     
    byte dummy2;
     
    byte dummy3;
     
     
     
    if(Extpowerswlights.bits & 0b00000001){Outputs0.EMDA0_7.ExtPwrBot_Lt  = on;} else {Outputs0.EMDA0_7.ExtPwrBot_Lt = off;}
     
    if(Extpowerswlights.bits & 0b00000010){Outputs0.EMDA16_23.ExtPwrTop_Lt  = on;} else {Outputs0.EMDA16_23.ExtPwrTop_Lt = off;}
     
     
     
    };
     
     
     
    ph Fuelpumplights(13)
     
    {
     
    byte bits;
     
    byte dummy1;
     
    byte dummy2;
     
    byte dummy3;
     
     
     
    if(Fuelpumplights.bits & 0b00000001){Outputs2.EMDA80_87.FuelLAftBt_Lt  = on;} else {Outputs2.EMDA80_87.FuelLAftBt_Lt = off;}//Press Lt
     
    if(Fuelpumplights.bits & 0b00000010){Outputs2.EMDA88_95.FuelLFwdBt_Lt  = on;} else {Outputs2.EMDA88_95.FuelLFwdBt_Lt = off;}//Press Lt
     
    if(Fuelpumplights.bits & 0b00000100){Outputs1.EMDA40_47.FuelRAftBt_Lt  = on;} else {Outputs1.EMDA40_47.FuelRAftBt_Lt = off;}//Press Lt
     
    if(Fuelpumplights.bits & 0b00001000){Outputs3.EMDA104_111.FuelRFwdBt_Lt  = on;} else {Outputs3.EMDA104_111.FuelRFwdBt_Lt = off;}//Press Lt
     
    if(Fuelpumplights.bits & 0b00010000){Outputs3.EMDA104_111.FuelLCRt_Lt  = on;} else {Outputs3.EMDA104_111.FuelLCRt_Lt = off;}//Press Lt
     
    if(Fuelpumplights.bits & 0b00100000){Outputs2.EMDA80_87.FuelRCL_Lt  = on;} else {Outputs2.EMDA80_87.FuelRCL_Lt = off;}//Press Lt
     
    };
     
     
     
    ph Bleedislnlights(14)
     
    {
     
    byte bits;
     
    byte dummy1;
     
    byte dummy2;
     
    byte dummy3;
     
     
     
    if(Bleedislnlights.bits & 0b00000010){Outputs3.EMDA104_111.BldIsolBt_Lt  = on;} else {Outputs3.EMDA104_111.BldIsolBt_Lt = off;}
     
     
     
     
     
    };
     
     
     
    ph Comptempinoplts(15)
     
    {
     
    byte bits;
     
    byte dummy1;
     
    byte dummy2; 
     
    byte dummy3;
     
     
     
    if(Comptempinoplts.bits & 0b00000001 ){Outputs2.EMDA72_79.AirFltDkX_Lt = on;} else {Outputs2.EMDA72_79.AirFltDkX_Lt = off;}
     
    if(Comptempinoplts.bits & 0b00000010 ){Outputs2.EMDA72_79.AirFwdCabX_Lt = on;} else {Outputs2.EMDA72_79.AirFwdCabX_Lt = off;}
     
    if(Comptempinoplts.bits & 0b00000100 ){Outputs2.EMDA64_71.AirAftCabX_Lt = on;} else {Outputs2.EMDA64_71.AirAftCabX_Lt = off;}
     
    };
     
     
     
    ph Packlights(16)
     
    {
     
    byte bits;
     
    byte dummy1;
     
    byte dummy2; 
     
    byte dummy3;
     
     
     
    if(Packlights.bits & 0b00000001 ){Outputs2.EMDA72_79.LPackBt_Lt = on;} else {Outputs2.EMDA72_79.LPackBt_Lt = off;}
     
    if(Packlights.bits & 0b00000010 ){Outputs2.EMDA64_71.RPackBt_Lt = on;} else {Outputs2.EMDA64_71.RPackBt_Lt = off;}
     
    if(Packlights.bits & 0b00000100 ){Outputs2.EMDA64_71.TrimAirBt_Lt = on;} else {Outputs2.EMDA64_71.TrimAirBt_Lt = off;}
     
    if(Packlights.bits & 0b00001000 ){Outputs2.EMDA64_71.LRecircBt_Lt = on;} else {Outputs2.EMDA64_71.LRecircBt_Lt = off;}
     
    if(Packlights.bits & 0b00010000 ){Outputs2.EMDA88_95.RRecircBt_Lt = on;} else {Outputs2.EMDA88_95.RRecircBt_Lt = off;}
     
    };
     
     
     
    ph Doorlights(17)
     
    {
     
    byte bits;
     
    byte dummy1;
     
    byte dummy2; 
     
    byte dummy3;
     
     
     
    if(Doorlights.bits & 0b00000001 ){Outputs6.EMDA80_87.CEntDoors_Lt = on;} else {Outputs6.EMDA80_87.CEntDoors_Lt = off;}
     
    if(Doorlights.bits & 0b00000010 ){Outputs6.EMDA64_71.CEmDoorsX_Lt = on;} else {Outputs6.EMDA64_71.CEmDoorsX_Lt = off;}
     
    if(Doorlights.bits & 0b00000100 ){Outputs6.EMDA64_71.CAccDoorsX = on;} else {Outputs6.EMDA64_71.CAccDoorsX = off;}
     
     
     
    };
  9. Holy smokes Don. Now I'm confused more than ever.  :oops:

     

    After reading your last reply, I was not aware my script was constantly running. That concerns me as it is yet another process running that altimately could have a negative impact on frame rates. (???)

     

    I checked the contributions section but did not really find any examples using sound files like I am other than what I posted there. And I haven't a clue how to use the "event" triggers as you suggest.

     

    Is there any way you could massage the below two examples and provide the script using the event triggers like you mention? If I can see an example, I should be able to do the rest. Example below assumes (2) switches with a sound file for each. One looping, one single play.

     

    Michael

    ______________________________________________________________

     

    --Simsound.lua sound script
    sound.path("C:\\")
     
    if     ipcPARAM == 1 then
              sound.play("5-0firebell")
     
    elseif ipcPARAM == 2 and sound.query(1) == true then   
              sound.stop(1)
              else
              sound.play("5-2boarding")
     
    end
  10. Donovan,

     

    Thank you kindly for the reply. Very informative. I still unfortunately cannot get the sound to stop.

     

    Let me explain in more detail what my intentions are. I am attempting to play a looped wav file. This I have accomplished. Then I am attempting to stop the same looping wav file. This I cannot accomplish. I am using a toggle switch which FSUIPC identifies as Joy0 Button10.

    My Simsound.lua appears like this:

     

    sound.path("C:\\")
     
    if     ipcPARAM == 1 then
              sound.play("5-0firebell")
     
    elseif ipcPARAM == 2 then
              sound.play("5-1begin_approach")
     
    elseif ipcPARAM == 3 then
              sound.play("5-2above_10000")
     
    elseif     ipcPARAM == 4 then
              sound.play("5-3number1_departure")
     
    elseif ipcPARAM == 5 then
              sound.play("5-4safety_brief")
     
    elseif ipcPARAM == 6 then
              sound.play("5-5gate_brief")
     
    elseif     ipcPARAM == 7 then
              sound.play("5-6prepare_depart")
     
    elseif ipcPARAM == 8 then
              sound.play("5-7cleared_land")
     
    elseif ipcPARAM == 9 then
              sound.play("5-8crzbrief")
     
    elseif ipcPARAM == 10 then
              sound.play("5-9turbulence")
     
    elseif     ipcPARAM == 11 then
              sound.play("5-10premovie")
     
    elseif ipcPARAM == 12 then
              sound.play("5-11chime")
     
    elseif ipcPARAM == 13 then
              sound.play("5-12taxiin")
     
    elseif ipcPARAM == 14 then
              sound.play("5-14tcastest")
     
    elseif ipcPARAM == 15 then
              sound.play("5-15stall")
     
    elseif ipcPARAM == 16 then
              sound.playloop("5-16fueltrk")
     
    elseif ipcPARAM == 17 then
              sound.playloop("5-17fueltrk2")
     
    elseif ipcPARAM == 18 then
     sound.stop("5-16fueltrk")
     
    elseif ipcPARAM == 19 then
     sound.stop("5-17fueltrk2")
     
    elseif ipcPARAM == 20 then
     sound.stop("5-10premovie")
     
    elseif ipcPARAM == 21 then
              sound.playloop("5-18boarding")
     
    elseif ipcPARAM == 22 then
     sound.stop("5-18boarding")
     
    end
     

    I then start FS and go into the FSUIPC applet/buttons. I toggle the toggle switch to on and FSUIPC sees it as Joy0 Button 10. I place a check in "Select for FS Control". Then I scroll down and you can see in the below image how I exactly set it up:

     

    Fsuipc.jpg

     

    I then hit enter. I toggle the switch to ON and parameter 21 executes and plays the "5-18boarding" wav file.

    Then, I turn the same toggle to OFF but the sound continues to play and loop. Does not stop. When I exit FS,

    I open the FSUIPC.ini and find the entries like this:

     

    (Note: I omitted entries 1-44 below to simplify. I only posted the entries pertaining to the above explained)

     

    [buttons]
    ButtonRepeat=20,10
    45=P0,10,CL2:R,21
    46=U0,10,CL2:R,22

     

    Any help appreciated.

     

    Michael

  11. Hello all,

     

    After having great luck playing wav files with the sound.play command, I am now having a helluva time trying to figure out how to STOP a sound.playloop wav file. No matter what i do, the file will not stop. I read where Pete stated you had to add the parameter sound.stop. I have done so. When I go into Flightsim, FSUIPC buttons menu, I toggle the switch and choose my LUA file and insert parameter 11 to start the 5-11premovie.wav file. I then drop just below, choose the Luakill command and insert parameter 20 to stop the 5-11premovie.wav file. but no luck.

     

    Below I have pasted my LUA file and the part of the FSUIPC file showing button assignments for the LUA.

     

    Any help would be welcome. Thank you.

     

    Michael

     

    -----------------------------------------------------------------------------------------------------------------------------------------------

    sound.path("C:\\")
     
    if     ipcPARAM == 1 then
              sound.play("5-0firebell")
     
    elseif ipcPARAM == 2 then
              sound.play("5-1begin_approach")
     
    elseif ipcPARAM == 3 then
              sound.play("5-2above_10000")
     
    elseif     ipcPARAM == 4 then
              sound.play("5-3number1_departure")
     
    elseif ipcPARAM == 5 then
              sound.play("5-4safety_brief")
     
    elseif ipcPARAM == 6 then
              sound.play("5-5gate_brief")
     
    elseif     ipcPARAM == 7 then
              sound.play("5-6prepare_depart")
     
    elseif ipcPARAM == 8 then
              sound.play("5-7cleared_land")
     
    elseif ipcPARAM == 9 then
              sound.play("5-8crzbrief")
     
    elseif ipcPARAM == 10 then
              sound.play("5-9turbulence")
     
    elseif     ipcPARAM == 11 then
              sound.play("5-10premovie")
     
    elseif ipcPARAM == 12 then
              sound.play("5-11chime")
     
    elseif ipcPARAM == 13 then
              sound.play("5-12taxiin")
     
    elseif ipcPARAM == 14 then
              sound.play("5-14tcastest")
     
    elseif ipcPARAM == 15 then
              sound.play("5-15stall")
     
    elseif ipcPARAM == 16 then
              sound.playloop("5-16fueltrk")
     
    elseif ipcPARAM == 17 then
              sound.playloop("5-17fueltrk2")
     
    elseif ipcPARAM == 18 then
     sound.stop("5-16fueltrk")
     
    elseif ipcPARAM == 19 then
     sound.stop("5-17fueltrk2")
     
    elseif ipcPARAM == 20 then
     sound.stop("5-10premovie")
     
     
     
     
    end
     
     
    [buttons]
    ButtonRepeat=20,10
    1=P5,0,CL2:R,1
    2=U5,0,CL2:K,1
    3=P5,1,CL2:R,2
    4=P5,2,CL2:R,3
    5=P5,3,CL2:R,4
    6=P5,4,CL2:R,5
    7=P5,5,CL2:R,6
    8=P5,6,CL2:R,7
    9=P5,7,CL2:R,8
    10=P5,8,CL2:R,9
    11=P5,9,CL2:R,10
    12=P5,10,CL2:R,11
    13=U5,10,CL2:K,11
    14=P5,11,CL2:R,12
    15=P5,12,CL2:R,13
    16=P5,14,CL2:R,14
    17=P5,13,CL1:R,0
    18=P0,13,CL1:R,0
    20=P0,14,CL2:R,14
    22=P0,0,CL2:R,1
    23=U0,0,CL2:K,1
    25=P0,2,CL2:R,3
    26=P0,4,CL2:R,5
    27=P0,5,CL2:R,6
    28=P0,6,CL2:R,7
    29=P0,7,CL2:R,8
    30=P0,8,CL2:R,9
    31=P0,9,CL2:R,10
    32=P0,10,CL2:R,11
    33=P0,11,CL2:R,12
    35=P0,19,CL2:R,16
    37=P0,12,CL2:R,13
    39=U0,19,C1084,17
    40=P0,18,CL2:R,17
    41=U0,18,CL2:K,19
    43=P0,1,CL2:R,2
    44=P0,20,C1084,20

     

  12. Hey Paul, finally got it working! YEAAAAAA  (Thank you again).

     

    As I now have 8 working LUA's for 8 different sound files, I was reading where I can combine them into one LUA file. For the reason that I want to code many sound commands into one LUA rather than what I have now which is a  LUA for every sound command.

     

    For example, currently I have:

     

    Firebell.lua file

     

    sound.path("C:\\")
    sound.play("5-0firebell.wav")
     
    and
     
    SafetyBrief.lua file
     
    sound.path("C:\\")
    sound.play("5-4safety_brief")
    ______________________________________________________________________________________________________
     
    So if I make one file called Sound.lua, can you give me below an example of how I program the parameter numbers? I'm assuming once I have the parameter number programmed, then all I need to do is go into the FSUIPC GUI and trigger each button & choose the referenced parameter number???
     
    Sound.lua file:
     
    sound.path("C:\\")
    sound.play("5-0firebell.wav")
     
    sound.path("C:\\")
    sound.play("5-4safety_brief")
×
×
  • 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.