Andrey Novikov Posted June 15, 2017 Report Posted June 15, 2017 (edited) I have written a Lua script for cabin crew announcements. It plays them throughout normal flight (no jump in the middle flights supported) and currently supports the following: "Welcome on board" "Safety instructions" "Seat belts on" and "seat belts off" "Drinks and meals" "Start of descend" "Before landing" "Arrival (after landing)" It also announces some commands on behalf of first officer. It will operate if you follow all general flight procedures, later I will describe trigger logic in detail. It also supports turnarounds. I have not tested it beyond normal flight flow (like failures and similar). Script is controlled through two first officer's audio control panel receiver switches: FLT INT and PA. Normally the are turned on and do not require any adjustments. FLT INT is responsible for first officer commands while PA is responsible for cabin crew announcements. You can turn them to adjust the volume or depress them to turn them off. Thus you can turn off first officer if you prefer to perform cabin calls by yourself and you can turn off cabin crew (but what's the sense then). To use the script you have to install FlyWithLua and unpack archive contents into 'scripts' folder (so that the script resides in the root of this folder). IXEG_Cabin_Crew.zip Edited June 20, 2017 by Andrey Novikov New script version 5 Quote
Andrey Novikov Posted June 15, 2017 Author Report Posted June 15, 2017 (edited) It is hard to understand pilot's intentions especially with limited capabilities of scripting. That's why I want to clarify the trigger logic of announcements. Most of the announcements are played with random delays for better realism. Script also prevents playing several announcements layered. Most of inflight announcements require properly setup pressurization: flight level and destination airport elevation. "Welcome on board" is played when cargo doors are closed (no cabin doors in IXEG 737 yet) and seat belt sign is turned on. "Doors on automatic" is played when anti collision light is turned on. "Safety instructions" are played as soon as you start pushing or starting engines or taxing. "Prepare to takeoff" is played when you turn on landing lights. "Seat belts on" and "seat belts off" are played inflight when you turn them on and off (that simple). "Drinks and meals" is played just before you reach cruise altitude. "Start of descend" is played when you are 1000 ft below your cruise altitude. "Before landing" is played when you pass 4000 ft altitude for destination airport or extract gear or set flaps 10 or more. "Landing command" is played when you pass 3000 ft altitude for destination airport or set flaps 30 or more. "Arrival (after landing)" is played when ground speed is bellow 40 kts. "Doors on manual" is played when engines turned off, parking brake set. Any advice or suggestions are welcome. Edited June 20, 2017 by Andrey Novikov Changed logic 3 Quote
Nkmsw8 Posted June 15, 2017 Report Posted June 15, 2017 I certainly will give this a try to further enhance the already great immersion of this aircraft. 1 Quote
Andrey Novikov Posted June 18, 2017 Author Report Posted June 18, 2017 I have updated the logic of "before landing" announcement to play a little bit earlier. Quote
Nkmsw8 Posted June 18, 2017 Report Posted June 18, 2017 (edited) Trying your script now. So far so good. However may I suggest a slight change in when the "doors automatic" announcement is played. Can it be played when the anti collision light is turned on. This usually signifies that the aircraft is ready to be pushed back. Right now it's played when the pressurization is set to flight which is usually done after engine start and engine bleed is on. Seems a little too late to arm the doors at that points. See what you think. Thanks. Edited June 18, 2017 by Nkmsw8 1 Quote
Andrey Novikov Posted June 19, 2017 Author Report Posted June 19, 2017 (edited) Thanks, will change that. And what about "doors manual" then? Edited June 19, 2017 by Andrey Novikov Quote
alessandro61 Posted June 19, 2017 Report Posted June 19, 2017 Hello, tested, but Lua stopped to work. I'm on Mac, xp11.02b1. Here Log and FLua.txt. Thanks and regards. Alessandro FlyWithLua_Debug.txt Log.txt Quote
Andrey Novikov Posted June 19, 2017 Author Report Posted June 19, 2017 @alessandro61 You should update vSpeedCallouts to the latest version: FlyWithLua Error: The variable "IAS" is still defined as DataRef "ixeg/733/airspeed/IAS_pilot_001_ind". FlyWithLua Error: The error seems to be inside of script file Resources/plugins/FlyWithLua/Scripts/vSpeedCallouts.lua The problem is that we use the same dataref with the same name. The author of vSpeedCallouts has already fixed this, so updating his script will help. I will also fix this in nearest future. Quote
Andrey Novikov Posted June 19, 2017 Author Report Posted June 19, 2017 @Nkmsw8 Regarding "doors manual" I suggest - engines turned off, parking brake set. Is it ok? 1 Quote
Nkmsw8 Posted June 19, 2017 Report Posted June 19, 2017 4 hours ago, Andrey Novikov said: @Nkmsw8 Regarding "doors manual" I suggest - engines turned off, parking brake set. Is it ok? This would be perfect. I flew an entire flight with your script and it just worked beautifully. Thanks 1 Quote
maskedball Posted June 20, 2017 Report Posted June 20, 2017 Everything works fine! Thank you for your work. Quote
Andrey Novikov Posted June 20, 2017 Author Report Posted June 20, 2017 I have uploaded a new script with updated logic and fixed dataref names. 2 Quote
axmiha Posted September 14, 2017 Report Posted September 14, 2017 Hi. Not working here. X-Plane 11. It worked once, but not anymore. Something to do with FWLua version? I updated FWL. Help. Quote
Laem Posted November 24, 2017 Report Posted November 24, 2017 Hi, how can I adjust the audio volume for the cabin announcments? It's too low for me :-) Thank you Quote
Andrey Novikov Posted December 15, 2017 Author Report Posted December 15, 2017 Yes, as written in the first post: Script is controlled through two first officer's audio control panel receiver switches: FLT INT and PA. Normally the are turned on and do not require any adjustments. FLT INT is responsible for first officer commands while PA is responsible for cabin crew announcements. You can turn them to adjust the volume or depress them to turn them off. Quote
lyxelso Posted January 2, 2018 Report Posted January 2, 2018 Hi Andrey, i use your script and i love it ! Just would like to ask if you have planned to add new features to your script in future update ? Quote
Blahmeh Posted January 6, 2018 Report Posted January 6, 2018 (edited) I created several 3jcabin sounds for myself, I borrowed some sounds from fspassengers which I purchased for FSX a long time ago. They trigger automatically at various stages of the flight, and repeat after you turn around onto another flight, pretty awesome really. The hostess even asks if there are any good bars when you are on approach , or what the weather is like . I cannot upload the tracks for copyright reasons, but the important part is the folder and file names which 3jcabin sounds uses to trigger at the correct points. Potentially you could replace them with your own sounds, attached. 3jcabin.txt 3jCabin-sounds.lua Edited January 6, 2018 by Blahmeh Also tweaked 3jcabin lua file file to include some IXEG datarefs Quote
Andrey Novikov Posted January 23, 2018 Author Report Posted January 23, 2018 On 1/2/2018 at 1:36 AM, lyxelso said: Hi Andrey, i use your script and i love it ! Just would like to ask if you have planned to add new features to your script in future update ? You are welcome to suggest any. If it is technically possible I can implement them. Quote
Bubib5 Posted January 14, 2019 Report Posted January 14, 2019 Does it work in 11.30? anyone tried it out? Thnx! Quote
Nkmsw8 Posted January 16, 2019 Report Posted January 16, 2019 It does work with 11.30. I'd like to find out if I can substitute my own announcements however. Quote
Jorge Uvo Posted January 16, 2019 Report Posted January 16, 2019 On 1/14/2019 at 1:54 PM, Bubib5 said: Does it work in 11.30? anyone tried it out? Thnx! Yes, working perfectly with 11.30. Quote
Jorge Uvo Posted January 16, 2019 Report Posted January 16, 2019 1 hour ago, Nkmsw8 said: It does work with 11.30. I'd like to find out if I can substitute my own announcements however. Go for it. For me it is working with 11.30. You can replace your other one. 1 Quote
Nkmsw8 Posted January 16, 2019 Report Posted January 16, 2019 18 hours ago, Jorge Uvo said: Go for it. For me it is working with 11.30. You can replace your other one. Cool, I’ll try it. Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.