Skip to content

ModuleSpaceDustHarvester

Chris Adderley edited this page Oct 26, 2020 · 1 revision

ModuleSpaceDustHarvester allows the mining of SpaceDust resources. It has basic background harvesting capabilities.

Fields

  • HarvestType : Atmosphere, Exosphere or Omni. Defines where the harvester is allowed to harvest
  • PowerCost: Defines the power cost in EC/s
  • HarvestIntakeTransformName: The model transform to use for orienting the intake of air. Blue transform (forward) defines the intake direction. If not specified, will be part.transform.forward.
  • HarvestAnimationName: On/Off animation
  • LoopAnimationName: Looping animation
  • IntakeArea : Physical area in m2 of the intake
  • IntakeSpeedStatic : Speed in m/s of the air flowing through the intake when the ship is not moving.
  • IntakeVelocityScale: Curve scaling the intake efficiency according to velocity. Keyed by mach number.
  • HARVESTED_RESOURCE nodes: a list of the harvestable resources with the following params
    • Name: Resource to harvest
    • BaseEfficiency: fractional efficiency, scales the value of resources sampled
    • MinHarvestValue: Minimum resource value to harvest (below this harvesting won't work)

Example

MODULE
  {
    name = ModuleSpaceDustHarvester

    PowerCost = 20
    HarvestType = Atmosphere
    HarvestIntakeTransformName = Intake
    HarvestAnimationName = AtmoProcessorOn
    LoopAnimationName = FanSpin
    IntakeArea = 0.3
    IntakeSpeedStatic = 15
    IntakeVelocityScale
    {
      key = 0 1
    }
    HARVESTED_RESOURCE
    {
      Name = XenonGas
      BaseEfficiency = 1
      MinHarvestValue = 0.00000001
    }
    HARVESTED_RESOURCE
    {
      Name = Oxidizer
      BaseEfficiency = 1
      MinHarvestValue = 0.00000001
    }
    
  }
Clone this wiki locally