Jump to content
The simFlight Network Forums

Soundman1

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by Soundman1

  1. Sorry if this has been asked before, I did try a search. I was wondering if there is a way to refresh the list LUA list FSUIPC uses when you assign a keystroke or button? I use P3V4.4 and write LUA scripts "on the fly" so to speak while I'm testing them in the sim. I do use one that is named "test" but after I test the script and save it with a proper name, I have to restart the sim in order to assign a button or keystroke to it. Thanks
  2. Works perfectly. I tested it with VLC, Windows Media player, and Quick time. Thank you so much!! pete > awesomeness To answer WB_Flashover I converted my .vbs scripts into .EXE files with iexpress 2.0 and they work very well. EDIT: Also, I might point out ( and this may be a moot point to the coders ) If your directory is like mine L:Prepar3D v4, .bat files don't like the spaces. I found that I had to put quotes "Prepar3D v4" around any folder or file with spaces. As an example: (I'm a sound guy) I made custom voices for FS DREAMTEAM'S GSX. But, I hated to have the same voice from departure to arrival. So, I made a lua script and .bat file to switch the voices when GSX finishes the pushback. Here's the .bat file that runs to make the switch. (Sarah is the name of the ground op) rmdir /s /q L:\"Prepar3D v4"\"Addon Manager"\couatl\GSX\sounds\pushback xcopy /E /I L:\"Prepar3D v4"\"Addon Manager"\couatl\GSX\sounds\sarah L:\"Prepar3D v4"\"Addon Manager"\couatl\GSX\sounds\pushback This runs hidden with a .EXE file I converted from a .vbs file Notice the quotes I had to put around L:\"Prepar3D v4"\"Addon Manager"\
  3. Just to be sure I downloaded the 64bit version of VLC player and associated the files to it, but still no luck. The other programs I tried were Windows Media Player and Quicktime.
  4. Hi Pete or any other LUA Guru, I've now converted to P3DV4 and I'm running FSUIPC 5.103g . A lua script I used in FSX successfully to play a video doesn't seem to respond. I'm using the ext.shell in the lua library. video, error = ext.shell("L:\\1.mp4", "EXT_FOCUS") ( As I said, this worked in FSX) the log showed no errors, but the video didn't play. ********* LUA: "test" Log [from FSUIPC version 5.103g] ********* 13259554 System time = 16/07/2017 14:37:18, Simulator time = 11:37:18 (21:37Z) 13259554 LUA: beginning "L:\Prepar3D v4\Modules\test.lua" 13259554 LUA: L:\Prepar3D v4\Modules\test.lua:2 13259554 LUA: Global: ipcPARAM = 0 13259617 >>> Thread forced exit (ipc.exit or os.exit) <<< 13259617 System time = 16/07/2017 14:37:18, Simulator time = 11:37:18 (21:37Z) ********* LUA execution terminated: Log Closed ********* so I tried making .bat file called video1.bat with simply "L:\1.mp4" in it. then changed the lua code to: video, error = ext.run("L:\\video1.bat") and it worked. I also tried: video, error = ext.run("L:\\1.mp4", "EXT_FOCUS") with no luck but also no errors recorded. Just wondering if I'm doing something wrong or what else I should look into. I can stick with the .bat file since it works, but it doesn't allow for the command line parameters to adjust the video window. Thanks for your help. -Jim
×
×
  • 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.