delta757232 Posted July 9, 2015 Report Posted July 9, 2015 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
Donovan Posted July 9, 2015 Report Posted July 9, 2015 Michael, There are only two files in your lua script that are set to loop -- elseif ipcPARAM == 16 then sound.playloop("5-16fueltrk") elseif ipcPARAM == 17 then sound.playloop("5-17fueltrk2") These would require the sound.stop("name") command to stop their playing. (as they are being executed outside the lua script via the Sound Library) The sound.play("name") command will play a file once to the end of the .wav file. Its not clear to me why you have the "Repeat while button held" programmed with almost every button, and on some of these you have the "Kill Lua" upon release of the button. Was that intentional to make the sound continue? It repeatedly calls your Lua Script (2) at 6 times per second, as long as the button remains pressed. And the "Kill" stops the current lua script execution (not the sound.play().) On line 44: 44=P0,20,C1084,20 you are using the "Lua Kill All" command and passing a parameter of 20 which will be ignored, and won't execute what I think you intended to be seen by your lua script: elseif ipcPARAM == 20 then sound.stop("5-10premovie") Editing line 44: 44=P0,20,CL2,20 would pass the ipcPARAM of 20, to your lua scipt, where the sound.stop() command would be executed, and the lua script completed. Unless I am missing the point of what you are trying to achieve, I would suggest editing the other button entries similarly (there are other more graceful ways to get the .wav file to play longer than the repeat method you are currently using), and let the lua script exit gracefully on its own without using the Kill command unless absolutely necessary. Don
delta757232 Posted July 9, 2015 Author Report Posted July 9, 2015 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: 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
delta757232 Posted July 9, 2015 Author Report Posted July 9, 2015 Don, In addition to above, I assume the "R" in P0,10,CL2:R,21 is for repeat? If so, I am not adding that. In fact, I've deleted from the ini file and FSUIPC puts it right back in. Hmmmm. I have never checked the box "Control to repeat while held". Michael
Donovan Posted July 10, 2015 Report Posted July 10, 2015 Hi Michael, I see! My error on the interpretation of the "R", as given in your [buttons] section. When used with a button/switch executing a Lua Script, the R stands for "Run" (pgs 28-29 of the FSUIPC4 for Advanced Users PDF) My apologies for the mis-information. I fooled around a bit with a couple test lua scripts using the sound.playloop("name") on my system, and learned something in the process. Referring to the FSUIPC Lua Library PDF as a reference. To quote (page 30 of the Library PDF): The SOUND Library ref = sound.play("name-of-wave") The "ref" value returned is a number which can be used subsequently in the stop, adjust and query functions. In my simple tests, the value for ref returned was a simple number corresponding to the order of which a sound.playoop (name) was executed. The first looped sound yielded a ref value of 1, the second a ref value of 2. I did not test this extensively, just used ipc.log(ref) to see what values came back in the FSUIPC.log. I used this ref value obtained in the next test. In this second lua script, I setup a toggle switch to execute "Testloop.Lua", passing a parameter of 3, just as you have shown above, but leaving the "command sent when released " fields empty. -- testloop.lua if ipcPARAM == 3 and sound.query(1) == true then sound.stop(1) else sound.playloop("bmtouch11.wav") end Toggling the switch ON, executed the soundloop of wheels touching down. (that sound gets old FAST!) Toggling the switch off turned off the sound. You MUST use the ref value, and NOT the "name"! I think you probably can work it out from here, but I'm glad to help more if needed. Don
Donovan Posted July 10, 2015 Report Posted July 10, 2015 Michael, There is one other point. Because your current method executes the lua script each time you push the button, Simsound.lua runs "newly" with each button press. This creates the situation that ref = sound.playloop() value will always = 1 (as its the first sound played in that script execution). Thus if sound.playloop("5-16fueltrk") is already playing in a loop (now "globally", outside the lua script, which is no longer running), and then you execute sound.playloop("5-17fueltrk2") in a new iteration of Simsound.lua , they will both have a ref = 1, because they were started in separate Simsound.lua threads. So the sound.stop(1) will stop the last executed soundloop only. From what I can tell, this is a limitation of the current method you are using. To overcome this, you may want to switch over to an "event- triggered" method of button checking, whereby your Simsound.lua is executed only once at startup, and remains running and use an event-driven method of executing the function using event.button (joynum, button,"function") to trigger the actions. There are examples of this here in the user contribution section. Don
delta757232 Posted July 11, 2015 Author Report Posted July 11, 2015 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
Donovan Posted July 11, 2015 Report Posted July 11, 2015 Michael, No, your lua file isn't, constantly running! My guess it runs less than 0.5 seconds MAX each time you push a button. The sound.playloop() can run for however long after the lua file is finished. That isn't the issue. An "event-driven" lua script is technically "running" but not doing anything and not using clock cycles that detract from FSX execution until triggered by the event. Again, it wouldn't be actively using CPU cycles more more than 0.5 secs at a time (or less!). Also it isn't a "problem" doing it the way you are doing it UNLESS you execute sound.playloop() more than one .wav file at a time. Then the issue of using sound.stop() only being able to cancel the last soundloop crops up. Using event.button(), or ipc.testflag() for buttons/switches isn't unique to sound files, so don't limit your looking to just sound files, for examples of event triggered lua execution. READ the doc's and take a stab at it. Normally, I'd be happy to give you some examples but I'm still at work on a project and won't be home 'til the wee hours of the morning. I'll check back tomorrow to see how far you've gotten. I'm not trying to make it more confusing. Its not. But it does require that you are willing to dig in and get your hands a bit dirty. Also, I'm SURE there are probably 4-5 ways to achieve what you want, not just one. I'll try to put something together when I get home, if I have any neurons left firing in-me-skull. Don
delta757232 Posted July 11, 2015 Author Report Posted July 11, 2015 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;} };
Donovan Posted July 11, 2015 Report Posted July 11, 2015 Hi Michael, YEP! Definitely not afraid to get your hands dirty on code! :cool: Don
delta757232 Posted July 11, 2015 Author Report Posted July 11, 2015 Thanks Don. Whew. Just tired. Very tired. :razz: Thank you again for your assistance. You've steered me in the right direction. All the best, Michael
Donovan Posted July 11, 2015 Report Posted July 11, 2015 Michael, I still had a couple functional neurons after work, and this appears to almost work fully, but will serve as an example of what I was meaning. (Rename the files as you see fit, of course) In your FSUIPC.ini file: [Auto]1. Lua=sndloop To your fsx/modules folder copy sndloop.lua: -- sndloop.lua function sndloop(flag) if ipc.testflag(1) then ipc.clearflag(1) sound.play("ai_twinprop01.wav") elseif ipc.testflag(2) then ipc.clearflag(2) if sound.query(refa) == true then sound.stop(refa) else refa = sound.playloop("backcourse_marker.wav") end elseif ipc.testflag(3) then ipc.clearflag(3) if sound.query(refb) == true then sound.stop(refb) else refb = sound.playloop("bmtouch1.wav") end else endendevent.flag("sndloop") Then start FSX and open FSUIPC, and under the Buttons+Switches Tab, Select for FS control and in the dropdown for 'command to send when button pressed' select LuaSet Sndloop, and the desired parameter in the parameter field. This is almost the same thing you have done, but this time uses the LuaSet. The parameter is set as a flag# for the sndloop.lua, and will trigger the event.flag() and execute the function "sndloop". The function name does NOT have to be the same as the lua file name. I just took the easy way out in knocking this out. The only thing with this example, is that turning the "off" the looped files, is that they must be turned off in the reverse order that they were started. I'm not sure why, but you get the main idea of what my approach was. Like I said, there are probably a number of ways to get where you want to go. Hope this helps. Don
delta757232 Posted July 11, 2015 Author Report Posted July 11, 2015 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")
delta757232 Posted July 11, 2015 Author Report Posted July 11, 2015 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")
Donovan Posted July 12, 2015 Report Posted July 12, 2015 Michael, What does the FSUIPC4.log show? That should point us in the right direction. It will halt upon the first error found on compiling and not execute the lua script - so that may be why nothing will play - and will give you the line number and the error. Don
Donovan Posted July 12, 2015 Report Posted July 12, 2015 Anything show in the .log file? Are the sound files in the default FSX/Sound directory? Those particular files are not in MY FSX/Sound install, and if they are in a different directory, you will need the sound.path() set as in your original lua script. Also double check your first, and seventh button setup in the Buttons+Switches menu -- 1=P0,13,CL1:R,0 7=P0,8,CL3:R,6 It looks like they're set up as a Lua Run, instead of LuaSet, so the flags won't be properly set for the event.flag(), and the ipc.testflag() commands. Don
delta757232 Posted July 13, 2015 Author Report Posted July 13, 2015 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")
Donovan Posted July 13, 2015 Report Posted July 13, 2015 Michael, Wow. Kinda scratching my head. I don't see any errors in the lua script. The script I originally posted tests fine here as written. I see the buttons are sensed in the .log file. But no other data on the lua other than it seems no lua errors logged. I wasn't aware you were using FS9, and not FSX, but that shouldn't matter. For more data: on the FSUIPC Logging Tab - enable "Debug/Trace Lua Plugins" And do a short run through each of the switches you have enabled. Then attach the log. I wish I still had FS9 on one of my systems, but I don't anymore. Let's see if there's a clue in the more detailed logging. Don
delta757232 Posted July 13, 2015 Author Report Posted July 13, 2015 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 ***********
Donovan Posted July 13, 2015 Report Posted July 13, 2015 Yea. Understood. Looks like the event.flag() is triggered by the various buttons. 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 Although I don't have the "line numbers" of the lua here. I don't understand why the same sound.play("name.wav") command that would audibly play on your original script, won't play within this script. Doesn't appear to be a fault within the script itself, unless I am completely missing something right in front of my face. Sorry haven't been able to help you toward a more fruitful and satisfying result. Don
Paul Henty Posted July 13, 2015 Report Posted July 13, 2015 Your ini file [Auto] section looks wrong which means the sndloop lua is never loaded (as confirmed in your latest log) You have: 1.Lua=Sndloop It should be: 1=Lua Sndloop Paul
delta757232 Posted July 15, 2015 Author Report Posted July 15, 2015 Hi Don, Paul, The 1= Lua Sndloop did the trick. The loopers are still acting strangely though. Many thanks, Michael
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now