ModuleFusionEngine - post-kerbin-mining-corporation/FarFutureTechnologies GitHub Wiki

Documentation for ModuleFusionEngine. ModuleFusionEngine makes it so that an engine cannot operate unless it's integrated fusion reactor is running.

MODULE
{
  name = ModuleFusionEngine

  // General Parameters
  Enabled = False
  MinimumReactorPower = 0.05

  // Charge Parameters
  Charged = false
  ChargeRate = 10
  ChargeAmount = 0
  ChargeGoal = 10000

  // Animation Parameters, not necessary
  ChargingLightRootTransformName = Placeholder_LightsPanel
  OnLightTransformName = PlaceholderLightsOn
  OffLightTransformName = PlaceholderLightsOff
  ModeLightTransformName = PlaceholderLightsMode
  OverheatColorChangerName = ""

  // Thermal Parameters
  // must be unique
  ModuleID = fusionreactor
  // ModuleSystemHeat to link to
  HeatModuleID = reactor

  SystemPower = 1000
  // The shutdown temperature of the part
  ShutdownTemperature = 2000
  // The temperature the system contributes to loops
  SystemOutletTemperature = 1600
  FUSIONMODE
  {
    DisplayName = #LOC_FFT_fusion-reactor_fusion-mode_d-he3
    ModeID = DH3
    ModeColor = 0.03, 0.45, 0.36, 0.5
    PowerGeneration = 500
    INPUT_RESOURCE
    {
      ResourceName = LqdDeuterium
      Ratio = 1.36E-07
      FlowMode = STAGE_PRIORITY_FLOW
    }
    INPUT_RESOURCE
    {
      ResourceName = LqdHe3
      Ratio = 5.45E-07
      FlowMode = STAGE_PRIORITY_FLOW
    }
  }
}
  • Enabled: Determines whether the reactor is on by default when a vessel is launched. Uses true and false values
  • MinimumReactorPower: Determines the minimum reactor throttle (expressed as a decimal fraction (eg. 0.9 = 90%, 0.1 = 10%)).
  • Charged: the value determining whether the reactor is already charged when a vessel with the engine is launched. Uses true and false values.
  • ChargeRate: Decimal value, determines how fast the reactor charges up.
  • ChargeAmount: Decimal value, determines the amount that the reactor is charged when a vessel with the reactor is launched.
  • ChargeGoal: The total amount of charge needed for the engine to start, expressed as Electric Charge (1 ElectricCharge = 1 KiloWatt).
  • ChargingLightRootTransform: Determines the root transform that the reactor uses.
  • OnLightTransformName: Determines the transform used when on.
  • OffLightTransformName: Determines the transform used when off.
  • ModeLightTransformName: Determines the transform used when using fuel modes. Should change color depending on which fuel mode is used.
  • OverheatColourChangerName: Determines the transform used when the reactor overheats.
  • ModuleID: Determines the ID of the module. Must be unique on the part.
  • HeatModuleID: Determines which ModuleSystemHeat to link to on the part.
  • SystemPower: Determines the amount of waste heat is created while the reactor is running, measured in kilowatts (NOTE: in the real world, each fuel mode would have it's own waste heat output due to differences in fusion reaction chains).
  • ShutdownTemperature: Determines the temperature at which the reactor will automatically shut down due to overheating. Temperature is in degrees Kelvin (K)
  • SystemOutletTemperature: Determines the temperature at which the reactor operates at. This should be a lower value than is set on ShutdownTemperature. Temperature is in degrees Kelvin (K)
  • FUSIONMODE: There can be multiple FusionMode on a FusionReactor, as long as they have a different ModeID.
    • DisplayName: The name of the fuel mode displayed in-game. Can use #LOC_ localization.
    • ModeID: The ID of the fuel mode. Must be unique on the part.
    • ModeColour: The RGB colour of the fuel mode. Final parameter is opacity (eg. 0 = 0% opacity, 0.5 = 50% opacity, 1 = 100% opacity).
    • PowerGeneration: The amount of power generated using the fuel mode, in ElectricCharge/Second. (1 ElectricCharge = 1 kilowatt)
    • INPUT_RESOURCE: Parameters for the fusion fuel intake. There can be multiple on a FUSIONMODE
      • ResourceName: Specifies the resource consumed.
      • Ratio: Specifies the units/second of the specified resource that is consumed at 100% reactor throttle. Can use scientific notation.
      • FlowMode: Determines the flow mode of the intake resource.