delta757232
-
Posts
36 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by delta757232
-
-
Paul,
Thank you kindly for your reply.
After reading your comments and more in the Lua-Library doc, I omitted the path statement and relocated my sound files to the default
D:\Flight Simulator 9\Sound folder. So my firebell.lua now reads:
sound.play("firebell.wav")
Unfortunately, it still does not work. :???:
-
Addendum:
Note 1:The switch location in FSUIPC is actually 5,0 (not 5,1)
Note 2: After reading other similar posts, I changed the firebell.lua to read:
sound.play("D:\\firebell.wav") <<< whereas I un-capitalized the "S" in sound as referenced in sound library
Mitch
-
Hi Pete, everyone,
I'm having a problem triggering sound files using LUA.
For example:
1. I have a wav file called firebell.wav
2. It is located in the root of drive D
3. FS9 is also located on drive D ( D:\Flight Simulator 9 )
4. My LUA file is titled "firebell.lua" and is located in the FS9 modules folder
So I load FS9 and go into the FSUIPC GUI, click on buttons, and press the button I want to trigger the wav file. It reads location in FSUIPC as 5,0. Next switch 5,1, next switch 5,2 and so on.
So once I press the switch I want to associate with the wav file (5,1), I place a check in the "Select for FS Control" box.
I then scroll down until I see the "firebell lua" and select it.
I then hit ok and exit FSUIPC.
I re-boot FS and push the switch. NOTHING. No sound file play.
I've done this over and over placing the sound files on the C drive, FS9/sound directory etc. etc. - No luck
Below is the contents of my LUA file. Any help appreciated.
Mitch
Sound.play("D:\\firebell.wav")
LUA Script - Sound play prob. (Help Anyone)
in FSUIPC Support Pete Dowson Modules
Posted
Yes please help Paul. Much appreciated.
Note 1: Tried to cut and paste here but must have been to large. FSUIPC.log attached as file.
Note 2: Here is the info from my FSUIPC.ini file which might be relevant:
Note 3: Screenshot of FSUIPC GUI: