Jump to content

ISO Snacks! Integration Help


AtomicTech

Recommended Posts

Hey Everyone!

I'm finishing AtomicTech Inc. Junkyards and I have a particularly bothersome bug that I'd really appreciate help with squashing.

Whenever I load Junkyards, I get 10 Errors from Module Manager regarding all the parts in my mod. The only part of those .cfg files that regards Module Manager is the header, PART:NEEDS[SnacksUtils]:AFTER[SnacksUtils]. I need this header so that the parts load after Snacks so they call upon @Angel-125's Snack resource. Can anyone take a look at my code and help me with this?

Link to comment
Share on other sites

2 minutes ago, HebaruSan said:

What do they say?

To my recollection,

It says errors found at 11 (Locations?).

And then proceeds to list the .cfg files for my Snacks! parts.

The 11th Error isn't of concern as it's from AtomicAge (The super old one by PorkJet)

Link to comment
Share on other sites

@zer0Kerbal I've skimmed this mod's GitHub and seen quite a few beginner mistakes in its configs. The whole mod needs to be examined, not just the one line I'm answering below:

On 12/7/2021 at 3:15 PM, AtomicTech said:

PART:NEEDS[SnacksUtils]:AFTER[SnacksUtils]

You can't use AFTER (or BEFORE, or FOR) on a node creation, only on an edit or delete ( @PART or !PART ). You only need NEEDS for controlling whether a part is available. AFTER and BEFORE are necessary for when your patch needs to do its job before other patches that may compete with it, like planet mod X wants to do something but must do it after Y because Y does something that disables X first.

The best thing to do is always have your part exist but only give it its Snacks functions if Snacks is installed so @PART:NEEDS[SnacksUtils]

MM issues are all mentioned in the logs at <KSP install>/Logs/ModuleManager/

Edited by JadeOfMaar
Link to comment
Share on other sites

8 hours ago, zer0Kerbal said:

would you kindly post the entire patch - so it might be easier to help debug.

Here they are:

@ColdJ's snack generator:

Spoiler

PART:NEEDS[SnacksUtils]:AFTER[SnacksUtils]
{
  name = Snacker
  module = Part
  author = ColdJ, AtomicTech
  //mesh = model.mu
  MODEL
  {
    model = AT-Junkyards-Main/Snacker/Snacker9
  }
  rescaleFactor = 1.0
  node_stack_top = 0.0, 0.799408, -0.545984,  0.0, 1.0, 0.0,  0
  node_attach = 0.0, 0.0, -0.3125, 0.0, 0.0, -1.0
  TechRequired = start
  entryCost = 5400
  cost = 1000
  category = Utility
  subcategory = 0
  title = Blue Cirrus "Stubborn" Snack Regenerator
  description = After watching an episode of Good Snacks by Alton Kerbrown, our engineers quickly emptied a Stratus-V, gutted a Convert-O-Tron and filled it with a small army of proprietary snack generating equipment.
  manufacturer = AtomicTech Inc.
  attachRules = 0,1,0,1,1
  mass = 1.125
  dragModelType = default
  maximum_drag = 0.2
  minimum_drag = 0.2
  angularDrag = 2
  crashTolerance = 30
  maxTemp = 2000 // = 2900
  bulkheadProfiles = srf
  tags = Snacks Atomic CJ Tech Cirrus Blue Noms Regenerator Alton Kerbrown Good Stratus V Inc
  MODULE
  {
    name = KASLinkTargetBase
    // AbstractLinkPeer
    linkType = MdHose
    linkTypeDisplayName = #kasLOC_99005 // #kasLOC_99005 = Hose-70
    attachNodeName = top
    allowCoupling = true
  }
  RESOURCE
  {
    name = Snacks
    amount = 10
    maxAmount = 10
  }
  RESOURCE
  {
    name = Soil
    amount = 10
    maxAmount = 10
  }
  RESOURCE
  {
    name = ElectricCharge
    amount = 10
    maxAmount = 10
  }
  MODULE
  {
    name = SoilRecycler
    ConverterName = Snack Regenerator [Soil]
    StartActionName = Start Regenerator [Soil]
    StopActionName = Stop Regenerator [Soil]
    AutoShutdown = false
    GeneratesHeat = false
    UseSpecialistBonus = true
    ExperienceEffect = ConverterSkill
    EfficiencyBonus = 1.0
    RecyclerCapacity = 4
    INPUT_RESOURCE
    {
      ResourceName = Soil
      Ratio = 0.00004630
      FlowMode = ALL_VESSEL
    }
    INPUT_RESOURCE
    {
      ResourceName = ElectricCharge
      Ratio = 3
      FlowMode = STAGE_PRIORITY_FLOW
    }
    OUTPUT_RESOURCE
    {
      ResourceName = Snacks
      Ratio = 0.00010740
      DumpExcess = false
      FlowMode = ALL_VESSEL
    }
  }
  MODULE
  {
    name = SoilRecycler
    ConverterName = Snack Regenerator [Soil + WasteF]
    StartActionName = Start Regenerator [Soil + WasteF]
    StopActionName = Stop Regenerator [Soil + WasteF]
    AutoShutdown = false
    GeneratesHeat = false
    UseSpecialistBonus = true
    ExperienceEffect = ConverterSkill
    EfficiencyBonus = 1.0
    RecyclerCapacity = 4
    INPUT_RESOURCE
    {
      ResourceName = Soil
      Ratio = 0.00004630
      FlowMode = ALL_VESSEL
    }
    INPUT_RESOURCE
    {
      ResourceName = ElectricCharge
      Ratio = 3
      FlowMode = STAGE_PRIORITY_FLOW
    }
    INPUT_RESOURCE
    {
      ResourceName = WasteF
      Ratio = 0.1
      FlowMode = STAGE_PRIORITY_FLOW
    }
    OUTPUT_RESOURCE
    {
      ResourceName = Snacks
      Ratio = 0.00020740
      DumpExcess = false
      FlowMode = ALL_VESSEL
    }
  }
  MODULE
  {
    name = SoilLN2Recycler
    ConverterName = Snack Regenerator [Soil + LN2]
    StartActionName = Start Process [Soil + LN2]
    StopActionName = Stop Process [Soil + LN2]
    AutoShutdown = false
    GeneratesHeat = false
    UseSpecialistBonus = true
    ExperienceEffect = ConverterSkill
    EfficiencyBonus = 1.0
    RecyclerCapacity = 4
    INPUT_RESOURCE
    {
      ResourceName = Soil
      Ratio = 0.00004630
      FlowMode = ALL_VESSEL
    }
    INPUT_RESOURCE
    {
      ResourceName = ElectricCharge
      Ratio = 3
      FlowMode = STAGE_PRIORITY_FLOW
    }
    INPUT_RESOURCE
    {
      ResourceName = LN2
      Ratio = 0.1
      FlowMode = STAGE_PRIORITY_FLOW
    }
    OUTPUT_RESOURCE
    {
      ResourceName = Snacks
      Ratio = 0.00025740
      DumpExcess = false
      FlowMode = ALL_VESSEL
    }
  }
  MODULE
  {
    name = SoilLN2WasteFRecycler
    ConverterName = Snack Regenerator [Soil + LN2 + WasteF]
    StartActionName = Start Process [Soil + LN2 + WasteF]
    StopActionName = Stop Process [Soil + LN2 + WasteF]
    AutoShutdown = false
    GeneratesHeat = false
    UseSpecialistBonus = true
    ExperienceEffect = ConverterSkill
    EfficiencyBonus = 1.0
    RecyclerCapacity = 4
    INPUT_RESOURCE
    {
      ResourceName = Soil
      Ratio = 0.00004530
      FlowMode = ALL_VESSEL
    }
    INPUT_RESOURCE
    {
      ResourceName = ElectricCharge
      Ratio = 3
      FlowMode = STAGE_PRIORITY_FLOW
    }
    INPUT_RESOURCE
    {
      ResourceName = LN2
      Ratio = 0.1
      FlowMode = STAGE_PRIORITY_FLOW
    }
    OUTPUT_RESOURCE
    {
      ResourceName = Snacks
      Ratio = 0.00048750
      DumpExcess = false
      FlowMode = ALL_VESSEL
    }
  }
  MODULE
  {
    name = ModuleCargoPart
    stackableQuantity = 1
    packedVolume = 600
  }    
}

The 1.25m Greenhouse:

Spoiler

PART:NEEDS[SnacksUtils]:AFTER[SnacksUtils]
{
    name = ATGreenhouse125M
    module = Part
    author = panarchist, Atomikku
    
    MODEL
    {
        model = AT-Junkyards-Main/radioactiveGreenhouse/Assets/Greenhouse
    }
    rescaleFactor = 0.9375
    node_stack_top = 0.0,2.415,0.0,0.0,1.5,0.0,3
    node_stack_bottom = 0.0,-2.415,0.0,0.0,-1.5,0.0,3    
    node_attach = 1.875,0.0,0.0,1.0,0.0,0.0,1
    
    TechRequired = advConstruction
    entryCost = 0
    cost = 6500
    category = Utility
    subcategory = 0
    title = Orbital "Vegemite Canning Facility" Greenhouse Module
    manufacturer = AtomicTech Inc.
    description = The 1.875 Meter Fry Archivist Greenhouse is a rigid greenhouse for growning fresh food. Opening the shutters allows the greenhouse to use an advanced type of bioelectricity generator.
    
    tags = PSA panarchist lifesupport eclss usi-ls snacks tac-ls cck-lifesupport

    attachRules = 1,1,1,1,0
    mass = 2.25
    dragModelType = default
    maximum_drag = 0.3
    minimum_drag = 0.2
    angularDrag = 2
    crashTolerance = 8
    breakingForce = 500
    breakingTorque= 500
    maxTemp = 2000
    bulkheadProfiles = size2
    CrewCapacity = 1

    INTERNAL
    {
        name = mk1PodCockpit
    }    
    
    MODULE
    {
        name = ModuleDeployableSolarPanel
        animationName = door
        startEventGUIName = Open Shutters
        endEventGUIName = Close Shutters        
        animSwitch = True
        sunTracking = true
        raycastTransformName = glass
        pivotName = glass
        isBreakable = false
        resourceName = Light
        chargeRate = 2.2
        powerCurve
        {
            key = 206000000000 0 0 0
            key = 13599840256 1 0 0
            key = 68773560320 0.5 0 0
            key = 0 0 0 0
        }
    }

    MODULE
    {
        name = ModuleGenerator
        Label = Lighting
        requiresAllInputs = true
        activateGUIName = Lights On
        shutdownGUIName = Lights Off
        toggleActionName = Toggle Lights

        INPUT_RESOURCE
        {
            name = ElectricCharge
            rate = 7.7
        }
        OUTPUT_RESOURCE
        {
            name = Light
            rate = 7.7
        }
    }

    RESOURCE
    {
        name = ElectricCharge
        amount = 750
        maxAmount = 750
    }

    vesselType = Station
    
      RESOURCE
      {
            name = Snacks
            amount = 2500
            maxAmount = 2500
      }
      RESOURCE
      {
            name = Soil
            amount = 250
            maxAmount = 250
      }
      MODULE
      {
            name = SoilRecycler
            ConverterName = Snack Orbital Greenhouse [Soil]
            StartActionName = Start Orbital Greenhouse [Soil]
            StopActionName = Stop Orbital Greenhouse [Soil]
            AutoShutdown = false
            GeneratesHeat = false
            UseSpecialistBonus = true
            ExperienceEffect = ConverterSkill
            EfficiencyBonus = 1.0
            RecyclerCapacity = 4
        INPUT_RESOURCE
        {
              ResourceName = Soil
              Ratio = 0.00375
              FlowMode = ALL_VESSEL
        }
        INPUT_RESOURCE
        {
              ResourceName = ElectricCharge
              Ratio = 2.8125
              FlowMode = STAGE_PRIORITY_FLOW
        }
        OUTPUT_RESOURCE
        {
              ResourceName = Snacks
              Ratio = 0.009375
              DumpExcess = false
              FlowMode = ALL_VESSEL
        }
  }

1.875m Greenhouse:

Spoiler

PART:NEEDS[SnacksUtils]:AFTER[SnacksUtils]
{
    name = ATGreenhouse1875M
    module = Part
    author = panarchist, Atomikku
    
    MODEL
    {
        model = AT-Junkyards-Main/radioactiveGreenhouse/Assets/Greenhouse
    }
    rescaleFactor = 0.9375
    node_stack_top = 0.0,2.415,0.0,0.0,1.5,0.0,3
    node_stack_bottom = 0.0,-2.415,0.0,0.0,-1.5,0.0,3    
    node_attach = 1.875,0.0,0.0,1.0,0.0,0.0,1
    
    TechRequired = advConstruction
    entryCost = 8100
    cost = 6500
    category = Utility
    subcategory = 0
    title = Orbital "Potato Pod" Greenhouse Module
    manufacturer = AtomicTech Inc.
    description = The 1.875 Meter Fry Archivist Greenhouse is a rigid greenhouse for growning fresh food. Opening the shutters allows the greenhouse to use sunlight in addition to the onboard lighting and reduce EC use. Designed by the legendary zzz and adapted for use in AtomicTech Inc. Junkyards by Atomikku.
    
    tags = PSA panarchist lifesupport eclss usi-ls snacks tac-ls cck-lifesupport

    attachRules = 1,1,1,1,0
    mass = 2.5
    dragModelType = default
    maximum_drag = 0.3
    minimum_drag = 0.2
    angularDrag = 2
    crashTolerance = 8
    breakingForce = 500
    breakingTorque= 500
    maxTemp = 2000
    bulkheadProfiles = size2
    CrewCapacity = 1

    INTERNAL
    {
        name = mk1PodCockpit
    }    
    
    MODULE
    {
        name = ModuleDeployableSolarPanel
        animationName = door
        startEventGUIName = Open Shutters
        endEventGUIName = Close Shutters        
        animSwitch = True
        sunTracking = true
        raycastTransformName = glass
        pivotName = glass
        isBreakable = false
        resourceName = ElectricCharge
        chargeRate = 2.2
        powerCurve
        {
            key = 206000000000 0 0 0
            key = 13599840256 1 0 0
            key = 68773560320 0.5 0 0
            key = 0 0 0 0
        }
    }

    RESOURCE
    {
        name = ElectricCharge
        amount = 1125
        maxAmount = 1125
    }

    vesselType = Station
    
      RESOURCE
      {
            name = Snacks
            amount = 3750
            maxAmount = 3750
      }
      RESOURCE
      {
            name = Soil
            amount = 375
            maxAmount = 375
      }
      MODULE
      {
            name = SoilRecycler
            ConverterName = Snack Orbital Greenhouse [Soil]
            StartActionName = Start Orbital Greenhouse [Soil]
            StopActionName = Stop Orbital Greenhouse [Soil]
            AutoShutdown = false
            GeneratesHeat = false
            UseSpecialistBonus = true
            ExperienceEffect = ConverterSkill
            EfficiencyBonus = 1.0
            RecyclerCapacity = 4
        INPUT_RESOURCE
        {
              ResourceName = Soil
              Ratio = 0.00375
              FlowMode = ALL_VESSEL
        }
        INPUT_RESOURCE
        {
              ResourceName = ElectricCharge
              Ratio = 2.8125
              FlowMode = STAGE_PRIORITY_FLOW
        }
        OUTPUT_RESOURCE
        {
              ResourceName = Snacks
              Ratio = 0.009375
              DumpExcess = false
              FlowMode = ALL_VESSEL
        }
  }

2.5m Greenhouse:

Spoiler

PART:NEEDS[SnacksUtils]:AFTER[SnacksUtils]
{
    name = PSAGreenhouse25
    module = Part
    author = panarchist, Atomikku
    
    MODEL
    {
        model = AT-Junkyards-Main/radioactiveGreenhouse/Assets/Greenhouse
    }
    rescaleFactor = 1.25
    node_stack_top = 0.0,1.61,0.0,0.0,1.0,0.0,2
    node_stack_bottom = 0.0,-1.61,0.0,0.0,-1.0,0.0,2    
    node_attach = 1.25,0.0,0.0,1.0,0.0,0.0,1
    
    TechRequired = advConstruction
    entryCost = 0
    cost = 10000
    category = Utility
    subcategory = 0
    title = GR33-17 "Panarchist" Greenhouse
    manufacturer = AtomicTech Inc.
    description = The 2.5 Meter Panarchist Greenhouse is a rigid greenhouse for growning fresh food. Opening the shutters allows the greenhouse to use an advanced type of bioelectricity generator.
    
    tags = PSA panarchist lifesupport snacks atomic tech atomictech green greenhouse at 

    attachRules = 1,1,1,1,0
    mass = 4.5
    dragModelType = default
    maximum_drag = 0.3
    minimum_drag = 0.2
    angularDrag = 15
    crashTolerance = 8
    breakingForce = 500
    breakingTorque= 500
    maxTemp = 2000
    bulkheadProfiles = size2
    CrewCapacity = 2

    INTERNAL
    {
        name = landerCabinInternals
    }    

    MODULE
    {
        name = ModuleDeployableSolarPanel
        animationName = door
        startEventGUIName = Open Shutters
        endEventGUIName = Close Shutters        
        animSwitch = True
        sunTracking = true
        raycastTransformName = glass
        pivotName = glass
        isBreakable = false
        resourceName = ElectricCharge
        chargeRate = 2.2
        powerCurve
        {
            key = 206000000000 0 0 0
            key = 13599840256 1 0 0
            key = 68773560320 0.5 0 0
            key = 0 0 0 0
        }
    }
    MODULE
    {
        name = ModuleGenerator
        Label = Lighting
        requiresAllInputs = true
        activateGUIName = Lights On
        shutdownGUIName = Lights Off
        toggleActionName = Toggle Lights

        INPUT_RESOURCE
        {
            name = ElectricCharge
            rate = 2.2
        }
        OUTPUT_RESOURCE
        {
            name = Light
            rate = 2.2
        }
    }

    RESOURCE
    {
        name = ElectricCharge
        amount = 1500
        maxAmount = 1500
    }

    vesselType = Station

        RESOURCE
        {
          name = Snacks
          amount = 5000
          maxAmount = 5000
        }
        RESOURCE
        {
          name = Soil
          amount = 500
          maxAmount = 500
        }
      MODULE
      {
            name = SoilRecycler
            ConverterName = Snack Regenerator [Soil]
            StartActionName = Start Regenerator [Soil]
            StopActionName = Stop Regenerator [Soil]
            AutoShutdown = false
            GeneratesHeat = false
            UseSpecialistBonus = true
            ExperienceEffect = ConverterSkill
            EfficiencyBonus = 1.0
           RecyclerCapacity = 4
            INPUT_RESOURCE
            {
                  ResourceName = Soil
                  Ratio = 0.0001
                  FlowMode = ALL_VESSEL
            }
           INPUT_RESOURCE
            {
                  ResourceName = ElectricCharge
                  Ratio = 3
                  FlowMode = STAGE_PRIORITY_FLOW
            }
            OUTPUT_RESOURCE
            {
                  ResourceName = Snacks
                  Ratio = Ratio = 0.0045
                  DumpExcess = false
                  FlowMode = ALL_VESSEL
        }
}

3.75m Greenhouse:

Spoiler

PART:NEEDS[SnacksUtils]:AFTER[SnacksUtils]
{
    name = PSAGreenhouse375
    module = Part
    author = panarchist, Atomikku
    
    MODEL
    {
        model = AT-Junkyards-Main/radioactiveGreenhouse/Assets/Greenhouse
    }
    rescaleFactor = 1.875
    node_stack_top = 0.0,2.415,0.0,0.0,1.5,0.0,3
    node_stack_bottom = 0.0,-2.415,0.0,0.0,-1.5,0.0,3    
    node_attach = 1.875,0.0,0.0,1.0,0.0,0.0,1
    
    TechRequired = advConstruction
    entryCost = 0
    cost = 17000
    category = Utility
    subcategory = 0
    title = GR33-I7 "Fry Archivist" Greenhouse
    manufacturer = AtomicTech Inc.
    description = The 3.75 Meter Fry Archivist Greenhouse is a rigid greenhouse for growning fresh food. Opening the shutters allows the greenhouse to use an advanced type of bioelectricity generator. Although this module isn\'t as impractically heavy as the five meter variant, it\'s recommended that this module be assembled in orbit by SimpleConstruction or Extraplanetary Launch Pads.
    
    tags = PSA panarchist lifesupport snacks at atomictech atomic tech green house greenhouse fresh
    attachRules = 1,1,1,1,0
    mass = 7
    dragModelType = default
    maximum_drag = 0.3
    minimum_drag = 0.2
    angularDrag = 2
    crashTolerance = 15
    breakingForce = 500
    breakingTorque= 500
    maxTemp = 2000
    bulkheadProfiles = size3
    CrewCapacity = 2
    INTERNAL
    {
        name = landerCabinInternals
    }    
    
    MODULE
    {
        name = ModuleDeployableSolarPanel
        animationName = door
        startEventGUIName = Open Shutters
        endEventGUIName = Close Shutters        
        animSwitch = True
        sunTracking = true
        raycastTransformName = glass
        pivotName = glass
        isBreakable = false
        resourceName = Light
        chargeRate = 2.2
        powerCurve
        {
            key = 206000000000 0 0 0
            key = 13599840256 1 0 0
            key = 68773560320 0.5 0 0
            key = 0 0 0 0
        }
    }
    MODULE
    {
        name = ModuleGenerator
        Label = Lighting
        requiresAllInputs = true
        activateGUIName = Lights On
        shutdownGUIName = Lights Off
        toggleActionName = Toggle Lights
        INPUT_RESOURCE
        {
            name = ElectricCharge
            rate = 7.7
        }
        OUTPUT_RESOURCE
        {
            name = Light
            rate = 7.7
        }
    }
    RESOURCE
    {
        name = ElectricCharge
        amount = 2250
        maxAmount = 2250
    }
    vesselType = Station
    
      RESOURCE
      {
            name = Snacks
            amount = 7500
            maxAmount = 7500
      }
      RESOURCE
      {
            name = Soil
            amount = 750
            maxAmount = 750
      }
      MODULE
      {
            name = SoilRecycler
            ConverterName = Snack Regenerator [Soil]
            StartActionName = Start Regenerator [Soil]
            StopActionName = Stop Regenerator [Soil]
            AutoShutdown = false
            GeneratesHeat = false
            UseSpecialistBonus = true
            ExperienceEffect = ConverterSkill
            EfficiencyBonus = 1.0
            RecyclerCapacity = 4
        INPUT_RESOURCE
        {
              ResourceName = Soil
              Ratio = 0.001
              FlowMode = ALL_VESSEL
        }
        INPUT_RESOURCE
        {
              ResourceName = ElectricCharge
              Ratio = 3
              FlowMode = STAGE_PRIORITY_FLOW
        }
        OUTPUT_RESOURCE
        {
              ResourceName = Snacks
              Ratio = 0.01875
              DumpExcess = false
              FlowMode = ALL_VESSEL
        }
  }

and finally, the 5m Greenhouse:

Spoiler

PART:NEEDS[SnacksUtils]:AFTER[SnacksUtils]
{
    name = ATGreenhouse5M
    module = Part
    author = panarchist, Atomikku
    
    MODEL
    {
        model = AT-Junkyards-Main/radioactiveGreenhouse/Assets/Greenhouse
    }
    rescaleFactor = 2.5
    node_stack_top = 0.0,2.415,0.0,0.0,1.5,0.0,3
    node_stack_bottom = 0.0,-2.415,0.0,0.0,-1.5,0.0,3    
    node_attach = 1.875,0.0,0.0,1.0,0.0,0.0,1
    
    TechRequired = advConstruction
    entryCost = 0
    cost = 32000
    category = Utility
    subcategory = 0
    title = Orbital "Veggie Table" Greenhouse Module
    manufacturer = AtomicTech Inc.
    description = The 5 Meter Fry Archivist Greenhouse is a rigid greenhouse for growning fresh food. Opening the shutters allows the greenhouse to use an advanced type of bioelectricity generator. The insane size and weight of this module makes it neary impractical to launch it into orbit. SimpleConstrution or Extraplanetary Launch Pads is recommended to assemble this in orbit.
    
    tags = PSA panarchist lifesupport snacks atomic tech atomictech at green house greenhouse garden

    attachRules = 1,1,1,1,0
    mass = 9
    dragModelType = default
    maximum_drag = 0.3
    minimum_drag = 0.2
    angularDrag = 2
    crashTolerance = 20
    breakingForce = 500
    breakingTorque= 500
    maxTemp = 2000
    bulkheadProfiles = size3
    CrewCapacity = 2

    INTERNAL
    {
        name = landerCabinInternals
    }    
    
    MODULE
    {
        name = ModuleDeployableSolarPanel
        animationName = door
        startEventGUIName = Open Shutters
        endEventGUIName = Close Shutters        
        animSwitch = True
        sunTracking = true
        raycastTransformName = glass
        pivotName = glass
        isBreakable = false
        resourceName = Light
        chargeRate = 2.2
        powerCurve
        {
            key = 206000000000 0 0 0
            key = 13599840256 1 0 0
            key = 68773560320 0.5 0 0
            key = 0 0 0 0
        }
    }

    RESOURCE
    {
        name = ElectricCharge
        amount = 3000
        maxAmount = 3000
    }

    vesselType = Station
    
      RESOURCE
      {
            name = Snacks
            amount = 10000
            maxAmount = 10000
      }
      RESOURCE
      {
            name = Soil
            amount = 1000
            maxAmount = 1000
      }
      MODULE
      {
            name = SoilRecycler
            ConverterName = Snack Orbital Greenhouse [Soil]
            StartActionName = Start Orbital Greenhouse [Soil]
            StopActionName = Stop Orbital Greenhouse [Soil]
            AutoShutdown = false
            GeneratesHeat = false
            UseSpecialistBonus = true
            ExperienceEffect = ConverterSkill
            EfficiencyBonus = 1.0
            RecyclerCapacity = 4
        INPUT_RESOURCE
        {
              ResourceName = Soil
              Ratio = 0.015
              FlowMode = ALL_VESSEL
        }
        INPUT_RESOURCE
        {
              ResourceName = ElectricCharge
              Ratio = 7.5
              FlowMode = STAGE_PRIORITY_FLOW
        }
        OUTPUT_RESOURCE
        {
              ResourceName = Snacks
              Ratio = 0.0225
              DumpExcess = false
              FlowMode = ALL_VESSEL
        }
}

 

@zer0Kerbal:

Here's a fix that I think might work:

Spoiler

PART
{
    name = ATGreenhouse5M
    module = Part
    author = panarchist, Atomikku
    
    MODEL
    {
        model = AT-Junkyards-Main/radioactiveGreenhouse/Assets/Greenhouse
    }
    rescaleFactor = 2.5
    node_stack_top = 0.0,2.415,0.0,0.0,1.5,0.0,3
    node_stack_bottom = 0.0,-2.415,0.0,0.0,-1.5,0.0,3    
    node_attach = 1.875,0.0,0.0,1.0,0.0,0.0,1
    
    TechRequired = advConstruction
    entryCost = 0
    cost = 32000
    category = Utility
    subcategory = 0
    title = Orbital "Veggie Table" Greenhouse Module
    manufacturer = AtomicTech Inc.
    description = The 5 Meter Fry Archivist Greenhouse is a rigid greenhouse for growning fresh food. Opening the shutters allows the greenhouse to use an advanced type of bioelectricity generator. The insane size and weight of this module makes it neary impractical to launch it into orbit. SimpleConstrution or Extraplanetary Launch Pads is recommended to assemble this in orbit.
    
    tags = PSA panarchist lifesupport snacks atomic tech atomictech at green house greenhouse garden

    attachRules = 1,1,1,1,0
    mass = 9
    dragModelType = default
    maximum_drag = 0.3
    minimum_drag = 0.2
    angularDrag = 2
    crashTolerance = 20
    breakingForce = 500
    breakingTorque= 500
    maxTemp = 2000
    bulkheadProfiles = size3
    CrewCapacity = 2

    INTERNAL
    {
        name = landerCabinInternals
    }    
    
    MODULE
    {
        name = ModuleDeployableSolarPanel
        animationName = door
        startEventGUIName = Open Shutters
        endEventGUIName = Close Shutters        
        animSwitch = True
        sunTracking = true
        raycastTransformName = glass
        pivotName = glass
        isBreakable = false
        resourceName = ElectricCharge
        chargeRate = 2.2
        powerCurve
        {
            key = 206000000000 0 0 0
            key = 13599840256 1 0 0
            key = 68773560320 0.5 0 0
            key = 0 0 0 0
        }
    }

    RESOURCE
    {
        name = ElectricCharge
        amount = 3000
        maxAmount = 3000
    }

    vesselType = Station
    
}
  
@PART[ATGreenhouse5M]:NEEDS[SnacksUtils]
{
    RESOURCE
      {
            name = Snacks
            amount = 10000
            maxAmount = 10000
      }
      RESOURCE
      {
            name = Soil
            amount = 1000
            maxAmount = 1000
      }
      MODULE
      {
            name = SoilRecycler
            ConverterName = Snack Orbital Greenhouse [Soil]
            StartActionName = Start Orbital Greenhouse [Soil]
            StopActionName = Stop Orbital Greenhouse [Soil]
            AutoShutdown = false
            GeneratesHeat = false
            UseSpecialistBonus = true
            ExperienceEffect = ConverterSkill
            EfficiencyBonus = 1.0
            RecyclerCapacity = 4
        INPUT_RESOURCE
        {
              ResourceName = Soil
              Ratio = 0.015
              FlowMode = ALL_VESSEL
        }
        INPUT_RESOURCE
        {
              ResourceName = ElectricCharge
              Ratio = 7.5
              FlowMode = STAGE_PRIORITY_FLOW
        }
        OUTPUT_RESOURCE
        {
              ResourceName = Snacks
              Ratio = 0.0225
              DumpExcess = false
              FlowMode = ALL_VESSEL
        }
}
 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...