Jump to content

PyjackMeat

Members
  • Posts

    154
  • Joined

  • Last visited

Posts posted by PyjackMeat

  1. Why isn't this working?

     

    @PART[LS_Tank_*|LifeSupportMiniPack]:NEEDS[TACLifeSupport]
    {
        foodFactor = 0.000016927083333
        waterFactor = 0.000011188078704
        oxygenFactor = 0.001713537562385
    	
    	%amountSupplies = #$/RESOURCE[Supplies]/maxAmount$
    
    	RESOURCE
        {
    		name = Food
    
    		amount = #$/amountSupplies$
    		@amount *= #$/foodFactor$ 
    
    		maxAmount = #$/amountSupplies$
    		@maxAmount *= #$/foodFactor$ 
    	}
    	RESOURCE
        {
    		name = Water
    
    		amount = #$/amountSupplies$
    		@amount *= #$/waterFactor$ 
    
    		maxAmount = #$/amountSupplies$
    		@maxAmount *= #$/waterFactor$ 
    	}
    	RESOURCE
        {
    		name = Oxygen
    
    		amount = #$/amountSupplies$
    		@amount *= #$/oxygenFactor$ 
    
    		maxAmount = #$/amountSupplies$
    		@maxAmount *= #$/oxygenFactor$ 
    	}
        !RESOURCE[Supplies] {}
        !amountSupplies = delete
        
        !foodFactor = delete
        !waterFactor = delete
        !oxygenFactor = delete
    }
    
    @PART[MulchMiniPack]:NEEDS[TACLifeSupport]
    {
        wasteFactor = 0.000001539351852
        wasteWaterFactor = 0.000014247685185
        carbonDioxideFactor = 0.00148012889876
    	
    	%amountSupplies = #$/RESOURCE[Mulch]/maxAmount$
    
    	RESOURCE
        {
    		name = Waste
    
    		amount = #$/amountMulch$
    		@amount *= #$/wasteFactor$ 
    
    		maxAmount = #$/amountMulch$
    		@maxAmount *= #$/wasteFactor$ 
    	}
    	RESOURCE
        {
    		name = WasteWater
    
    		amount = #$/amountMulch$
    		@amount *= #$/wasteWaterFactor$ 
    
    		maxAmount = #$/amountMulch$
    		@maxAmount *= #$/wasteWaterFactor$ 
    	}
    	RESOURCE
        {
    		name = CarbonDioxide
    
    		amount = #$/amountMulch$
    		@amount *= #$/carbonDioxideFactor$ 
    
    		maxAmount = #$/amountMulch$
    		@maxAmount *= #$/carbonDioxideFactor$ 
    	}
        !RESOURCE[Mulch] {}
        !amountMulch = delete
        
        !wasteFactor = delete
        !wasteWaterFactor = delete
        !carbonDioxideFactor = delete
    }

     

  2. Spoiler

     

    
    //-----------ANY-------------//
    @PART[Castor_Control_1_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //-----------FGB-------------//
    @PART[Alniyat_Crew_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    @PART[Alniyat_Mount_*|Alniyat_Node_1|Alniyat_NodeSupport_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    		surfaceAttachmentsPassable = true
    	}
    }
    
    //---------------LK-----------------//
    // Optional (Korolev Lander)
    @PART[Libra_Crew_A]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //-----------LOK--------------//
    @PART[Virgo_DockingMechanism_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    		passableWhenSurfaceAttached = true
    	}
    }
    
    //-----------MIR--------------//
    @PART[Acamar_Lab_1|Eridani_Crew_*|Eridani_Mount_*|Eridani_Node_1|Eridani_NodeSupport_1|Rana_Mount_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    		surfaceAttachmentsPassable = true
    	}
    }
    
    @PART[Eridani_DockingMechanism_*|Rana_Port_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    		passableWhenSurfaceAttached = true
    	}
    }
    
    //-----------NEP--------------//
    @PART[Nashira_Truss_1_1|Nashira_Truss_2_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //-----------PIRS--------------//
    @PART[Hadar_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //------------PROGRESS-----------------//
    @PART[Hamal_Habitation_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //------------RASSVET-----------------//
    @PART[Mira_Crew_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //------------------SALYUT-------------------//
    @PART[Vega_Habitation_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    		surfaceAttachmentsPassable = true
    	}
    }
    
    
    //------------------------SOYUZ-----------------------//
    @PART[Tantares_Crew_*|Tantares_Habitation_*|Tantares_Orbital_*|Tantares_Parachute_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    @PART[Tantares_DockingMechanism_*|Tantares_Port_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //-----------------VA----------------------//
    @PART[Alnair_Crew_1|Alnair_Parachute_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }

     

     

    An update: I mis.sed a part

  3. Spoiler

     

    
    //-----------ANY-------------//
    @PART[Castor_Control_1_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //-----------FGB-------------//
    @PART[Alniyat_Crew_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    @PART[Alniyat_Node_1|Alniyat_NodeSupport_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    		surfaceAttachmentsPassable = true
    	}
    }
    
    //---------------LK-----------------//
    // Optional (Korolev Lander)
    @PART[Libra_Crew_A]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //-----------LOK--------------//
    @PART[Virgo_DockingMechanism_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    		passableWhenSurfaceAttached = true
    	}
    }
    
    //-----------MIR--------------//
    @PART[Acamar_Lab_1|Eridani_Crew_*|Eridani_Mount_*|Eridani_Node_1|Eridani_NodeSupport_1|Rana_Mount_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    		surfaceAttachmentsPassable = true
    	}
    }
    
    @PART[Eridani_DockingMechanism_*|Rana_Port_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    		passableWhenSurfaceAttached = true
    	}
    }
    
    //-----------NEP--------------//
    @PART[Nashira_Truss_1_1|Nashira_Truss_2_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //-----------PIRS--------------//
    @PART[Hadar_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //------------PROGRESS-----------------//
    @PART[Hamal_Habitation_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //------------RASSVET-----------------//
    @PART[Mira_Crew_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //------------------SALYUT-------------------//
    @PART[Vega_Habitation_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    		surfaceAttachmentsPassable = true
    	}
    }
    
    
    //------------------------SOYUZ-----------------------//
    @PART[Tantares_Crew_*|Tantares_Habitation_*|Tantares_Orbital_*|Tantares_Parachute_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    @PART[Tantares_DockingMechanism_*|Tantares_Port_*]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    
    //-----------------VA----------------------//
    @PART[Alnair_Crew_1|Alnair_Parachute_1]:NEEDS[ConnectedLivingSpace]
    {
      MODULE
    	{
    		name = ModuleConnectedLivingSpace
    		passable = true
    	}
    }
    

     

     

    Here is an updated CLS config.

  4. Okay, what have I ballsed up here?
     

    @PART[KER_CrewCab|KER_Hub|KER_PassengerCab|KER_RoverCab|Ranger_HabModule|DERP_POD|DERP_StowBag]:NEEDS[TACLifeSupport]
    {
    	@RESOURCE:HAS[#ResourceName[Supplies]]
    	{
    		@ResourceName = Food
    		@Ratio *= 0.000016927083333
    	}
    	
    	RESOURCE
    	{
    		ResourceName = Water
    		@Ratio *= 0.000011188078704
    	}
    	RESOURCE
    	{
    		ResourceName = Oxygen
    		@Ratio *= 0.001713537562385
    	}
    	
    	@RESOURCE:HAS[#ResourceName[Mulch]]
    	{
    		@ResourceName = Waste
    		@Ratio *= 0.000001539351852
    	}
    	
    	RESOURCE
    	{
    		ResourceName = WasteWater
    		@Ratio *= 0.000014247685185
    	}
    	
    	RESOURCE
    	{
    		ResourceName = CarbonDioxide
    		@Ratio *= 0.00148012889876
    	}
    }

     

×
×
  • Create New...