Jump to content

Recommended Posts

Posted

Randomly enable the built-in IXEG failures

View File

Hello

I made this LUA-script for randomly enable the built-in IXEG failures.

The script enables the built-in IXEG failures + engine fire, engine failure and oil pumps.
Have your QRH ready.

Available failures by IXEG.
FFNZVSs.png

 

The script activates when your GroundSpeed is higher then 40 knots.

Settings: (edit the IXEG_Failures.lua)

-- Here you set if the failures should be default enabled or disabled when your starting up X-Plane.
-- Set true to enable failures, false to disable. Default is true. true and false have to be written with lowercase letters.

EnableFailures_WizVar = true

-- Mean time between failures (MTBF) is the predicted elapsed time between inherent failures of a system during operation.
-- Default is MTBF_hours = 20.0. See further down for of a example of MTBF set to 10 hours.

MTBF_hours = 20.0

-- Max simultaneous failures pr session
-- Default is Max_Failures = 2  -- The highest numbers of failures is 27 -- setting above this can crash x-plane

Max_Failures = 2

-- Set the level of failures you want. 
-- 1 = Minor failures, 2 = Minor and Major failures, 3 Minor, Major and Critical failures.

FailureSeverity = 3

 

"ADVANCED OPTIONS"

-- Set 'ImminentFailure' to 1 to enable the imminent failure option. When this option is enabled you can trigger a imminent failure with setting the SERVICE INTERPHONE to ON position on the overhead panel.
-- The SERVICE INTERPHONE will switch back to OFF when a failure is triggered.
-- The 'ImminentFailureMTBF' (in minutes) is the MTBF used when you enable the 'ImminentFailure' and set the SERVICE INTERPHONE to on.

-- Default is 0. 
ImminentFailure = 0
-- Default is 5 (in minutes)
ImminentFailureMTBF = 5

 

The Service Interphone switch

WxwlbJA.png


How to enable or disable failures (for the session) with FlywithLua menu.

1zpNYpY.png

 

MTBF:
This graph shows a example how often you can expect a failure when you set the MTBF to 10 hours.

2NZQelW.png

 

 

Requirement:
- You need FlyWithLua installed - 
XP10: http://forums.x-plane.org/index.php?/files/file/17468-flywithlua-for-xp9-and-xp10/
XP11: http://forums.x-plane.org/index.php?/files/file/35579-flywithlua-for-x-plane-11-and-10-windows-linux-mac-os-x-version/
- Tested on X-Plane 11 with Windows 10.

Installation:
- Simply place the script in [X-Plane]\Resources\plugins\FlyWithLua\Scripts

Logging:
Every failure is logged. You can find the logfile in your X-Plane root folder. The logfile is called IXEG_Failures.log

 

Here is a sample of the logfile.

I08Cwxh.png

 

Known bugs/limitations:
- None. But please report if you find one :)

Support:
For support please visit: http://forums.x-pilot.com/forums/topic/11350-lua-script-randomly-enables-ixeg-failures/

 


 

  • Upvote 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...