Jump to content
The simFlight Network Forums

vanislepilot

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by vanislepilot

  1. Thanks so much John! I appreciate the back-to-back help.
  2. Hi: As per offset page 8 of your "Offset Mapping for PMDG 737-700" manual, I am trying to read the powered status of AC Transfer Bus 1. I believe you have it in spot 7 of offset 64D6. I am just wondering the syntax for how I would call a function when it changes, and also read its value within that function. Something along the lines of: function NAME(offset, value) -- need syntax to read bit 7 from 64D6 end event.offset(0x64D6, "UB", "NAME") Many thanks Troy
  3. All good now, John. Thanks again for all the help.
  4. You are quite right John, I think I missed that. Thanks. I will give the new file a try when I get home later today. I really appreciate your assistance in this! I will make sure I have 16 bit files from now on. Cheers Troy
  5. I just combined the logging as you suggested, and saw several "*** mmioOpen Failed, Error 0" lines after each attempt at playing. Hopefully that means something to you! Many thanks again. FSUIPC7.log Update: this same error occurred after uninstalling and reinstalling the latest distributables. I have also renamed the FSUIPC folder FSUIPC7.
  6. The audio is working just fine, even when playing the wav by itself. I will update the redistributables and see if that does the trick. Thanks for working on this! Wav file attached. bong.wav
  7. The folder is just named FSUIPC in Windows Explorer. No 7.
  8. Tried all 16 audio devices (even though some of them are haptic feedback), and didn't hear the sound but it looks like the simple script is running. bong.wav wavTest.lua wavTest.log Edit: Updated to include x20 log. FSUIPC7.ini FSUIPC7.log
  9. Thanks Al, also tried that as well with no luck.
  10. I tried all of those steps, verified the wav does work in multiple audio players. The log itself is not making mention of calls to sound.play, but the rest of the script is paired with control of a seatbelt sign and no smoking light, which is running flawlessly. Example: function MOUSE_NOSMK_SWITCH(varname, value, userParameter) smkNEW = ipc.readLvar("L:switch_103_73X") smkLT = ipc.readUB(0x341C) -- Read the light position if smkNEW == 100 then if smkLT == 0 then ipc.control(66718) end elseif smkNEW == 0 then if smkLT == 1 then ipc.control(66718) sound.path("F:\\FSUIPC") sound.play("bong",2) -- ipc.sleep(2000) end end end event.Lvar("switch_103_73X",100,"MOUSE_NOSMK_SWITCH") When I insert and remove delays, the code seems to run appropriately just no sound. Device 2 is a USB 3.0 PreSonus Studio 192 and it's been working fine for all other MSFS related sounds.
  11. Thanks John, I've tried the "\\" and delay, as well as other sound devices; however, no luck.
  12. Hi! I'm trying to play a short wav file "bong" to coincide with passenger sign activation/deactivation. I've determined the my sound device is #2 in the ini file, and I have the following code in my lua script, which is otherwise running fine (I'm also activating a light with Mobiflight As per the library, I have entered the following: sound.path("F:\\MSFS Backup\Mobiflight") sound.play("bong.wav",2) I've tripled checked the path and file name are correct. Many thanks in advance, Troy
  13. The throttle quadrant has its own software in which you set only the desired FSUIPC offset that the corresponding throttle lever will effect (see UI screenshot). There is no direct way of calling FS controls unfortunately, so I have actually not needed to code at all up until this point - so it's all new to me.
  14. Thanks guys. I appreciate the help. Worst case, because it will require learning to code all over again on my end! 😅 Would you guys have handy examples of a throttle increase/decrease lua code? Cheers Troy
  15. Hi: I recently purchased a COM port-based 737 TQ from FSC, and it interfaces with the two sims I use (P3Dv5 and MSFS) using FSUIPC and ipc.write commands. The PMDG stuff seems to work fine in P3D; however, I am not having any success getting the FSUIPC throttle offsets (I have tried 088C and 089A for throttle 1, for example) to manipulate the following aircraft throttles: -FS Labs A320 (P3Dv5) -FBW A320neo (MSFS) (both flap and spoiler offsets work fine) -PMDG DC6 (MSFS) (flap offset works fine) I have a very limited understanding of the programming/differences between FS Controls and Offsets, but I am wondering if I am missing any other throttle offsets that might effect the above aircraft? Both the FS Labs A320 and FBW A32N throttles are successfully manipulated with my Warthog Throttle using Direct Calibration to Throttle1, Throttle2. Worst case scenario, I would imagine there is a way of calling the FS controls within a LUA script, saying using ipc.control? Thanks in advance for any insight you can provide. Regards, Troy
  16. John, Same issue for me. No key is being generated. Simmarket Order #2702582. Thanks, Troy
×
×
  • 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.