Jump to content

Thorbane

Members
  • Posts

    271
  • Joined

  • Last visited

Posts posted by Thorbane

  1. I wrote a MM patch adding various tank types to the larger adapters and spines.

     

    Spoiler

    B9_TANK_TYPE:NEEDS[B9PartSwitch,TacLifeSupport]
    {
        name = SSPXr_TacLS_LS
        tankMass =  0
        tankCost = 1.5
        
        RESOURCE
        {
            name = Food
            unitsPerVolume = 2.360
        }
        RESOURCE
        {
            name = Water
            unitsPerVolume = 1.560
        }
        RESOURCE
        {
            name = Oxygen
            unitsPerVolume = 238.894
        }
    }

    B9_TANK_TYPE:NEEDS[B9PartSwitch,TacLifeSupport]
    {
        name = SSPXr_TacLS_W
        tankMass =  0
        tankCost = 1.5
        
        RESOURCE
        {
            name = CarbonDioxide
            unitsPerVolume = 391.669
            percentFilled = 0
        }
        RESOURCE
        {
            name = WasteWater
            unitsPerVolume = 3.770
            percentFilled = 0
        }
        RESOURCE
        {
            name = Waste
            unitsPerVolume = 0.407
            percentFilled = 0
        }
    }

    B9_TANK_TYPE:NEEDS[B9PartSwitch,TacLifeSupport]
    {
        name = SSPXr_TacLS_A
        tankMass =  0
        tankCost = 1.5
        
        RESOURCE
        {
            name = Food
            unitsPerVolume = 1.546
        }
        RESOURCE
        {
            name = Water
            unitsPerVolume = 1.022
        }
        RESOURCE
        {
            name = Oxygen
            unitsPerVolume = 156.461
        }
        RESOURCE
        {
            name = CarbonDioxide
            unitsPerVolume = 135.149
            percentFilled = 0
        }
        RESOURCE
        {
            name = WasteWater
            unitsPerVolume = 1.301
            percentFilled = 0
        }
        RESOURCE
        {
            name = Waste
            unitsPerVolume = 0.141
            percentFilled = 0
        }
    }

    B9_TANK_TYPE:NEEDS[B9PartSwitch,MKS]
    {
        name = SSPXr_Fertilizer
        tankMass =  0
        tankCost = 1.75
        
        RESOURCE
        {
            name = Fertilizer
            unitsPerVolume = 5
        }
    }

    B9_TANK_TYPE:NEEDS[B9PartSwitch,MKS]
    {
        name = SSPXr_UsiMach
        tankMass =  0
        tankCost = 1.5
        
        RESOURCE
        {
            name = Machinery
            unitsPerVolume = 2.5
        }
    }


    @PART[sspx-hub-25-1]
    {
        MODULE
        {
            name = ModuleB9PartSwitch
            moduleID = fuelSwitch
            switcherDescription = Tank Setup
            baseVolume = 600
        
            SUBTYPE
            {
                name = Structural
            }
        
            SUBTYPE
            {
                name = Lifesupport
                tankType = SSPXr_TacLS_LS
            }
        
            SUBTYPE
            {
                name = Waste
                tankType = SSPXr_TacLS_W
            }
        
            SUBTYPE
            {
                name = LifeSupport/Waste
                tankType = SSPXr_TacLS_A
            }
            
            SUBTYPE
            {
                name = Fertilizer
                tankType = SSPXr_Fertilizer
            }
            
            SUBTYPE
            {
                name = Machinery
                tankType = SSPXr_UsiMach
            }
            
            SUBTYPE
            {
                name = ElectricCharge
                tankType = Battery
            }
        }
    }
    @PART[sspx-adapter-25-375-1]
    {
        MODULE
        {
            name = ModuleB9PartSwitch
            moduleID = fuelSwitch
            switcherDescription = Tank Setup
            baseVolume = 550
        
            SUBTYPE
            {
                name = Structural
            }
        
            SUBTYPE
            {
                name = Lifesupport
                tankType = SSPXr_TacLS_LS
            }
        
            SUBTYPE
            {
                name = Waste
                tankType = SSPXr_TacLS_W
            }
        
            SUBTYPE
            {
                name = LifeSupport/Waste
                tankType = SSPXr_TacLS_A
            }
            
            SUBTYPE
            {
                name = Fertilizer
                tankType = SSPXr_Fertilizer
            }
            
            SUBTYPE
            {
                name = Machinery
                tankType = SSPXr_UsiMach
            }
            
            SUBTYPE
            {
                name = ElectricCharge
                tankType = Battery
            }
        }
    }

    @PART[sspx-adapter-25-375-2]
    {
        MODULE
        {
            name = ModuleB9PartSwitch
            moduleID = fuelSwitch
            switcherDescription = Tank Setup
            baseVolume = 50
        
            SUBTYPE
            {
                name = Structural
            }
        
            SUBTYPE
            {
                name = Lifesupport
                tankType = SSPXr_TacLS_LS
            }
        
            SUBTYPE
            {
                name = Waste
                tankType = SSPXr_TacLS_W
            }
        
            SUBTYPE
            {
                name = LifeSupport/Waste
                tankType = SSPXr_TacLS_A
            }
            
            SUBTYPE
            {
                name = Fertilizer
                tankType = SSPXr_Fertilizer
            }
            
            SUBTYPE
            {
                name = Machinery
                tankType = SSPXr_UsiMach
            }
            
            SUBTYPE
            {
                name = ElectricCharge
                tankType = Battery
            }
        }
    }

    @PART[sspx-tube-375-1]
    {
        MODULE
        {
            name = ModuleB9PartSwitch
            moduleID = fuelSwitch
            switcherDescription = Tank Setup
            baseVolume = 16000
        
            SUBTYPE
            {
                name = Structural
            }
        
            SUBTYPE
            {
                name = Lifesupport
                tankType = SSPXr_TacLS_LS
            }
        
            SUBTYPE
            {
                name = Waste
                tankType = SSPXr_TacLS_W
            }
        
            SUBTYPE
            {
                name = LifeSupport/Waste
                tankType = SSPXr_TacLS_A
            }
            
            SUBTYPE
            {
                name = Fertilizer
                tankType = SSPXr_Fertilizer
            }
            
            SUBTYPE
            {
                name = Machinery
                tankType = SSPXr_UsiMach
            }
            
            SUBTYPE
            {
                name = ElectricCharge
                tankType = Battery
            }
        }
    }

    @PART[sspx-tube-375-2]
    {
        MODULE
        {
            name = ModuleB9PartSwitch
            moduleID = fuelSwitch
            switcherDescription = Tank Setup
            baseVolume = 8000
        
            SUBTYPE
            {
                name = Structural
            }
        
            SUBTYPE
            {
                name = Lifesupport
                tankType = SSPXr_TacLS_LS
            }
        
            SUBTYPE
            {
                name = Waste
                tankType = SSPXr_TacLS_W
            }
        
            SUBTYPE
            {
                name = LifeSupport/Waste
                tankType = SSPXr_TacLS_A
            }
            
            SUBTYPE
            {
                name = Fertilizer
                tankType = SSPXr_Fertilizer
            }
            
            SUBTYPE
            {
                name = Machinery
                tankType = SSPXr_UsiMach
            }
            
            SUBTYPE
            {
                name = ElectricCharge
                tankType = Battery
            }
        }
    }

    @PART[sspx-tube-375-3]
    {
        MODULE
        {
            name = ModuleB9PartSwitch
            moduleID = fuelSwitch
            switcherDescription = Tank Setup
            baseVolume = 4000
        
            SUBTYPE
            {
                name = Structural
            }
        
            SUBTYPE
            {
                name = Lifesupport
                tankType = SSPXr_TacLS_LS
            }
        
            SUBTYPE
            {
                name = Waste
                tankType = SSPXr_TacLS_W
            }
        
            SUBTYPE
            {
                name = LifeSupport/Waste
                tankType = SSPXr_TacLS_A
            }
            
            SUBTYPE
            {
                name = Fertilizer
                tankType = SSPXr_Fertilizer
            }
            
            SUBTYPE
            {
                name = Machinery
                tankType = SSPXr_UsiMach
            }
            
            SUBTYPE
            {
                name = ElectricCharge
                tankType = Battery
            }
        }
    }

    @PART[sspx-adapter-125-25-2]
    {
        MODULE
        {
            name = ModuleB9PartSwitch
            moduleID = fuelSwitch
            switcherDescription = Tank Setup
            baseVolume = 180
        
            SUBTYPE
            {
                name = Structural
            }
        
            SUBTYPE
            {
                name = Lifesupport
                tankType = SSPXr_TacLS_LS
            }
        
            SUBTYPE
            {
                name = Waste
                tankType = SSPXr_TacLS_W
            }
        
            SUBTYPE
            {
                name = LifeSupport/Waste
                tankType = SSPXr_TacLS_A
            }
            
            SUBTYPE
            {
                name = Fertilizer
                tankType = SSPXr_Fertilizer
            }
            
            SUBTYPE
            {
                name = Machinery
                tankType = SSPXr_UsiMach
            }
            
            SUBTYPE
            {
                name = ElectricCharge
                tankType = Battery
            }
        }
    }

    @PART[sspx-tube-25-3]
    {
        MODULE
        {
            name = ModuleB9PartSwitch
            moduleID = fuelSwitch
            switcherDescription = Tank Setup
            baseVolume = 440
        
            SUBTYPE
            {
                name = Structural
            }
        
            SUBTYPE
            {
                name = Lifesupport
                tankType = SSPXr_TacLS_LS
            }
        
            SUBTYPE
            {
                name = Waste
                tankType = SSPXr_TacLS_W
            }
        
            SUBTYPE
            {
                name = LifeSupport/Waste
                tankType = SSPXr_TacLS_A
            }
            
            SUBTYPE
            {
                name = Fertilizer
                tankType = SSPXr_Fertilizer
            }
            
            SUBTYPE
            {
                name = Machinery
                tankType = SSPXr_UsiMach
            }
            
            SUBTYPE
            {
                name = ElectricCharge
                tankType = Battery
            }
        }
    }

    @PART[sspx-tube-25-2]
    {
        MODULE
        {
            name = ModuleB9PartSwitch
            moduleID = fuelSwitch
            switcherDescription = Tank Setup
            baseVolume = 880
        
            SUBTYPE
            {
                name = Structural
            }
        
            SUBTYPE
            {
                name = Lifesupport
                tankType = SSPXr_TacLS_LS
            }
        
            SUBTYPE
            {
                name = Waste
                tankType = SSPXr_TacLS_W
            }
        
            SUBTYPE
            {
                name = LifeSupport/Waste
                tankType = SSPXr_TacLS_A
            }
            
            SUBTYPE
            {
                name = Fertilizer
                tankType = SSPXr_Fertilizer
            }
            
            SUBTYPE
            {
                name = Machinery
                tankType = SSPXr_UsiMach
            }
            
            SUBTYPE
            {
                name = ElectricCharge
                tankType = Battery
            }
        }
    }

    @PART[sspx-tube-25-1]
    {
        MODULE
        {
            name = ModuleB9PartSwitch
            moduleID = fuelSwitch
            switcherDescription = Tank Setup
            baseVolume = 1760
        
            SUBTYPE
            {
                name = Structural
            }
        
            SUBTYPE
            {
                name = Lifesupport
                tankType = SSPXr_TacLS_LS
            }
        
            SUBTYPE
            {
                name = Waste
                tankType = SSPXr_TacLS_W
            }
        
            SUBTYPE
            {
                name = LifeSupport/Waste
                tankType = SSPXr_TacLS_A
            }
            
            SUBTYPE
            {
                name = Fertilizer
                tankType = SSPXr_Fertilizer
            }
            
            SUBTYPE
            {
                name = Machinery
                tankType = SSPXr_UsiMach
            }
            
            SUBTYPE
            {
                name = ElectricCharge
                tankType = Battery
            }
        }
    }

     

  2. 10 hours ago, stargazer424 said:

    By any chance does the ship you are trying to construct with have KAS parts? I was trying to figure out why an existing base had the UI problem, but a new test base didn't. Looks like KAS might be breaking it somehow.  I was using Simple Construction which uses EL. Here is a test video.:

    (snip)

    EDIT: I looks like if you detach and re-attach all KAS items (Joint Sockets, Resource Transfer stations) it works again...

    The ship I'm trying to construct doesn't.  The ship I'm trying to build from does though.  Testing now.

    Edit:  It Worked!  Thanks!  I can continue my ships mission now.

  3. I was looking through this mods patches for contracts today.  I noticed that the patch to add the lab to station contracts adds the cupola module instead.  Is this intended?

    In SSPXR-Contracts.cfg:

    // 3.75m labs count for contracts
    @Contracts
    {
    	@Base
    	{
    		@PART_REQUEST:HAS[#Part[Large.Crewed.Lab]]
    		{
    			Part = sspx-lab-375-1
    		}
    	}
    	@Station
    	{
    		@PART_REQUEST:HAS[#Part[Large.Crewed.Lab]]
    		{
    			Part = sspx-cupola-375-1               <----------
    		}
    	}
    }

     

  4. I'm trying to make a module manager patch to replace supplies in the storage containers with TAC-LS resources, and I've run into a problem with the inflatables.  The resource amount is only increased if the base resource amount is less than the inflated multiplier, so the oxygen and carbon dioxide tanks are not expanded when the part inflates.

    I found the offending line of code in the ExpandResourceCapacity() method in USITools.USIAnimation.  Is it keeping anything from breaking?

×
×
  • Create New...