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

Documentation for FusionReactor

MODULE
{
  name = FusionReactor

  //StartActionName = #LOC_FFT_fusion-reactor_StartAction
  //StopActionName = #LOC_FFT_fusion-reactor_StopAction
  //ToggleActionName = #LOC_FFT_fusion-reactor_ToggleAction

  // General Parameters
  Enabled = False
  MinimumReactorPower = 0.025

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

  // Animation Parameters, not necessary for functioning
  ChargingLightRootTransformName = Placeholder_Charging
  OnLightTransformName = Placeholder_Light_On
  OffLightTransformName = Placeholder_Light_Off
  ModeLightTransformName = Placeholder_Light_FuelMode
  OverheatColorChangerName = ""

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

  SystemPower = 6000
  // 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-d
    ModeID = Deuterium
    ModeColor = 0.388, 0.968, 1.0, 0.5
    PowerGeneration = 4000
    INPUT_RESOURCE
    {
      ResourceName = LqdDeuterium
      Ratio = 0.0000109
      FlowMode = STAGE_PRIORITY_FLOW
    }
  }
  FUSIONMODE
  {
    DisplayName = #LOC_FFT_fusion-reactor_fusion-mode_d-he3
    ModeID = DH3
    ModeColor = 0.03, 0.45, 0.36, 0.5
    PowerGeneration = 8000
    INPUT_RESOURCE
    {
      ResourceName = LqdDeuterium
      Ratio = 2.18E-06 //0.000545 // 0.00436
      FlowMode = STAGE_PRIORITY_FLOW
    }
    INPUT_RESOURCE
    {
      ResourceName = LqdHe3
      Ratio = 8.72E-06 // 0.00654
      FlowMode = STAGE_PRIORITY_FLOW
    }
  }
}
  • StartActionName: Determines the text show to start the reactor. Can use #LOC_ localization.
  • StopActionName: Determines the text shown to stop the reactor. Can use #LOC_ localization.
  • ToggleActionName: Determines the text shown to toggle the reactor. Can use #LOC_ localization.
  • 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.