Skip to content

Module Reference: TestFlightReliability

Starstrider42 edited this page Jun 5, 2017 · 6 revisions

TestFlightReliability

Properties

  • configuration - an alias for the configuration in the corresponding TestFlightCore
  • reliabilityCurve - a float curve from the part's data to its base failure rate (in events per second). Should not be given for derived Reliability modules

Description

The TestFlightReliability module is responsible for determining both the Base Failure Rate and Momentary Failure Rates of a part. Different versions of this module do different things. The base version of this module is also responsible for determining general failure and triggering random failures when appropriate. Derived modules may implement custom Momentary Failure Modifiers, or even trigger their own custom failures, but they should never always leave the handling of general failures to the base module.

There must always be a base TestFlightReliability module on a part, but there can be an additional number of secondary Reliability derived modules as well

Derived Modules

TestFlightReliability_EngineCycle Engine ignition and running time.

  • engineConfig - similar to configuration, used by RealFuels
  • cycle - a float curve from the time the engine has been running (seconds) to a failure rate multiplier. 1.0 (the default) means the momentary failure rate equals the base TestFlightReliability module's base failure rate.
  • thrustModifier - a float curve from the engine thrust (kN) to how quickly the engine wears out. 1.0 (the default) means cycle counts real seconds of running time.
  • idleDecayRate - the rate at which running time is "forgotten" when the engine is off. 1.0 means one second of cooldown cancels one second of running time. Defaults to 0 (cycle is based on total time of all burns).
  • engineID - if the part has multiple ModuleEngines, the engineID of the one this Reliability module should track
  • ratedBurnTime - number of seconds the engine can continuously operate. Used only for display purposes; all in-game calculations are based on cycle

TestFlightReliability_DynamicPressure Dynamic pressure

  • reliabilityAtPressure - a float curve from the dynamic pressure (Pa, not kPa) to a failure rate multiplier. Multiplier as for EngineCycle/cycle.

TestFlightReliability_SkinTemperature Part skin temperature

  • temperatureCurve - a float curve from the temperature (K) to a failure rate multiplier. Multiplier as for EngineCycle/cycle.

TestFlightReliability_InternalTemperature Part internal temperature

  • temperatureCurve - see SkinTemperature/temperatureCurve.

TestFlightReliability_TestFail Manually triggered failures for debugging purposes