Skip to content
This repository has been archived by the owner on Dec 21, 2018. It is now read-only.

Commit

Permalink
Fixed issues with duplicate modules
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisB3 committed Feb 17, 2016
1 parent 2450dd1 commit 2f901eb
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 78 deletions.
29 changes: 11 additions & 18 deletions UKS-KPBS_Cupola.cfg
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
PART[KKAOSS_Cupola_g]:NEEDS[USILifeSupport]:FINAL
@PART[KKAOSS_Cupola_g]:NEEDS[USILifeSupport]
{
MODULE
{
name = ModuleLifeSupport
}

RESOURCE
%MODULE[ModuleLifeSupport] { }

%RESOURCE[ReplacementParts]
{
name = ReplacementParts
amount = 100 //100 * crew capacity + 100 * Kerbal-Months
maxAmount = 100
%amount = 100 //100 * crew capacity + 100 * Kerbal-Months
%maxAmount = 100
}

MODULE
{
name = ModuleHabitation
KerbalMonths = 0 //mass * 5
HabMultiplier = 1.75 //equal to mass; mutually exclusive
KerbalMonths = 0
HabMultiplier = 1.75 //equal to mass
}

MODULE
{
name = USI_ModuleFieldRepair
}
%MODULE[USI_ModuleFieldRepair] { }

MODULE
{
name = ModulePowerCoupler
PowerCouplingRange = 500
}
}
}
30 changes: 9 additions & 21 deletions UKS-KPBS_HabitatMk1.cfg
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
@PART[KKAOSS_Habitat_MK1_g]:NEEDS[USILifeSupport]
{
MODULE
{
name = ModuleLifeSupport
}

RESOURCE
%MODULE[ModuleLifeSupport] { }

%RESOURCE[ReplacementParts]
{
name = ReplacementParts
amount = 1150 //100 * crew capacity + 100 * Kerbal-Months
maxAmount = 1150
%amount = 1150 //100 * crew capacity + 100 * Kerbal-Months
%maxAmount = 1150
}

MODULE
{
name = ModuleHabitation
KerbalMonths = 8.5 //mass * 5
}

MODULE
{
name = ModuleLifeSupportRecycler
CrewCapacity = 5
RecyclePercent = .33
RecyclePercent = .34
ConverterName = Life Support
tag = Life Support
StartActionName = Start Life Support
Expand All @@ -33,21 +29,13 @@
ResourceName = ElectricCharge
Ratio = 1 //.2 * crew capacity
}
//INPUT_RESOURCE
//{
// ResourceName = ReplacementParts
// Ratio = 0.00001 //.000002 * crew capacity
//}
}

MODULE
{
name = USI_ModuleFieldRepair
}
%MODULE[USI_ModuleFieldRepair] { }

MODULE
{
name = ModulePowerCoupler
PowerCouplingRange = 500
}
}
}
27 changes: 10 additions & 17 deletions UKS-KPBS_HabitatMk2.cfg
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
@PART[KKAOSS_Habitat_MK2_g]:NEEDS[USILifeSupport]
{
MODULE
{
name = ModuleLifeSupport
}

RESOURCE
%MODULE[ModuleLifeSupport] { }

%RESOURCE[ReplacementParts]
{
name = ReplacementParts
amount = 1700 //100 * crew capacity + 100 * Kerbal-Months
maxAmount = 1700
%amount = 1700 //100 * crew capacity + 100 * Kerbal-Months
%maxAmount = 1700
}

MODULE
{
name = ModuleHabitation
KerbalMonths = 13 //mass * 5
}

MODULE
{
name = ModuleLifeSupportRecycler
Expand All @@ -37,17 +33,14 @@
{
ResourceName = Water
Ratio = 0.005
}
}
}

MODULE
{
name = USI_ModuleFieldRepair
}

%MODULE[USI_ModuleFieldRepair] { }

MODULE
{
name = ModulePowerCoupler
PowerCouplingRange = 500
}
}
}
28 changes: 8 additions & 20 deletions UKS-KPBS_ScienceLab.cfg
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
@PART[KKAOSS_Science_g]:NEEDS[USILifeSupport]:FINAL
{
MODULE
{
name = ModuleLifeSupport
}

RESOURCE
%MODULE[ModuleLifeSupport] { }

%RESOURCE[ReplacementParts]
{
name = ReplacementParts
amount = 200 //100 * crew capacity + 100 * Kerbal-Months
maxAmount = 200
%amount = 200 //100 * crew capacity + 100 * Kerbal-Months
%maxAmount = 200
}

MODULE
{
name = ModuleLifeSupportRecycler
Expand All @@ -27,21 +23,13 @@
ResourceName = ElectricCharge
Ratio = 1 //.2 * crew capacity
}
//INPUT_RESOURCE
//{
// ResourceName = ReplacementParts
// Ratio = 0.00001 //.000002 * crew capacity
//}
}

MODULE
{
name = USI_ModuleFieldRepair
}
%MODULE[USI_ModuleFieldRepair] { }

MODULE
{
name = ModulePowerCoupler
PowerCouplingRange = 500
}
}
}
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ This is a set of configuration files to allow use of the Kerbal Planetary Base S

### Installation

Drop the UKS-KPBS_Compatibility folder into your GameData folder wherever KSP is installed.
Delete any existing installed version of this mod, then drop the UKS-KPBS_Compatibility folder into your GameData folder wherever KSP is installed.

### Features

USI Life Support functions are added to KPBS modules:

- The Habitat Mk1 works as a mid-grade life support recycler (33%); the Science Lab has a 71% recycler; and the Habitat Mk2 has the highest-efficiency recycler (90%), but requires Water as input.
- The Habitat Mk1 works as a mid-grade life support recycler (34%); the Science Lab has a 71% recycler; and the Habitat Mk2 has the highest-efficiency recycler (90%), but requires Water as input.
- The Habitat modules have habitation space.
- The Cupola works as a habitation multiplier.
- The small (wedge-shaped) and large (deployable) Greenhouse use Agroponics to convert Mulch and Fertilizer into Supplies.
Expand Down

0 comments on commit 2f901eb

Please sign in to comment.