From 07bfe594d5ed0533dd633f4ae16ba48df7543004 Mon Sep 17 00:00:00 2001 From: Aerograch Date: Tue, 20 Jun 2023 01:26:22 +0300 Subject: [PATCH 1/3] Added tank configs for CH4/Ox for CryoEngines bc CryoEngines have methalox engines too. Also added CryoEngines requirement for LqdMethane for the same reason. --- GameData/000_AT_Utils/TankConfigs.cfg | 104 ------------ GameData/000_AT_Utils/TankTypes.cfg | 218 -------------------------- 2 files changed, 322 deletions(-) delete mode 100644 GameData/000_AT_Utils/TankConfigs.cfg delete mode 100644 GameData/000_AT_Utils/TankTypes.cfg diff --git a/GameData/000_AT_Utils/TankConfigs.cfg b/GameData/000_AT_Utils/TankConfigs.cfg deleted file mode 100644 index 1f7c9e4..0000000 --- a/GameData/000_AT_Utils/TankConfigs.cfg +++ /dev/null @@ -1,104 +0,0 @@ -TANKCONF -{ - name = LFO - TANK - { - TankType = LiquidChemicals - CurrentResource = LiquidFuel - InitialAmount = 1 - Volume = 45 - } - TANK - { - TankType = LiquidChemicals - CurrentResource = Oxidizer - InitialAmount = 1 - Volume = 55 - } -} - -TANKCONF:NEEDS[CryoEngines] -{ - name = LH2O Insulation - TANK - { - TankType = Cryogenic - CurrentResource = LqdHydrogen - InitialAmount = 1 - Volume = 15 - } - TANK - { - TankType = LiquidChemicals - CurrentResource = Oxidizer - InitialAmount = 1 - Volume = 12.22222222222222 - } -} - -TANKCONF:NEEDS[CryoEngines] -{ - name = LH2O Cooling - TANK - { - TankType = CryoCooling - CurrentResource = LqdHydrogen - InitialAmount = 1 - Volume = 15 - } - TANK - { - TankType = LiquidChemicals - CurrentResource = Oxidizer - InitialAmount = 1 - Volume = 11.728395 - } -} - -//by Bit Fiddler -TANKCONF:NEEDS[TacLifeSupport] -{ - name = TAC Life Support - TANK - { - TankType = Food - CurrentResource = Food - InitialAmount = 1 - Volume = 0.5255531 - } - TANK - { - TankType = Water - CurrentResource = Water - InitialAmount = 1 - Volume = 0.2639998 - } - TANK - { - TankType = Gases - CurrentResource = Oxygen - InitialAmount = 1 - Volume = 0.2104471 - } -} - -//by LouisCyfer -TANKCONF:NEEDS[Snacks] -{ - name = Snacks and Soil - TANK - { - TankType = Food - CurrentResource = Snacks - InitialAmount = 1 - Volume = 100 - } - TANK - { - TankType = Soil - CurrentResource = Soil - InitialAmount = 0 - Volume = 95 - } -} -//:mode=c#: diff --git a/GameData/000_AT_Utils/TankTypes.cfg b/GameData/000_AT_Utils/TankTypes.cfg deleted file mode 100644 index d2afd15..0000000 --- a/GameData/000_AT_Utils/TankTypes.cfg +++ /dev/null @@ -1,218 +0,0 @@ -//It's a shame that resource density is defined per unit, not per volume. -//This means that any procedural tank should do some kind of conversion -//which will be susceptible to Squad and modders changes of resource definitions. -//But than again, this situation allows to build different tanks with different -//final density for the same resource (compressed gas, liquid gas, etc.) - - -// Format: -//TANKTYPE -//{ -// name = SimilarResources -// -// name units/L -// PossibleResources = Resource1 1.23; Resource2 3.45; -// -// ***other options*** -// -// /// The portion of a part's volume the tank can use. -// UsefulVolumeRatio = float, (0, 1] -// -// /// The cost of a tank of this type per tank surface. -// TankCostPerSurface = float - -// /// The cost of a tank of this type per tank volume. -// TankCostPerVolume = float -// -// /// The additional mass of a tank of this type per volume. -// AddMassPerVolume = float -//} - - -//cfd = calculated from density -//cfp = calculated from stock/mod parts -//arb = arbitrary - - -TANKTYPE -{ - name = LiquidChemicals - UsefulVolumeRatio = 1 - TankCostPerSurface = 10 //corrosive liquids need to be properly contained; costs close to large stock LFO tanks - PossibleResources = LiquidFuel 0.162; Oxidizer 0.162; MonoPropellant 0.368; //cfp -} -@TANKTYPE[LiquidChemicals]:NEEDS[Karbonite] -{ @PossibleResources ^= :$: Karbonite 0.90;: } //cfp -@TANKTYPE[LiquidChemicals]:NEEDS[Kethane] -{ @PossibleResources ^= :$: Kethane 0.162;: } //arb -@TANKTYPE[LiquidChemicals]:NEEDS[WarpPlugin] -{ @PossibleResources ^= :$: Hexaborane 1; Hydrazine 1; HTP 1; LqdAmmonia 1;: } //cfd -@TANKTYPE[LiquidChemicals]:NEEDS[KolonyTools] -{ @PossibleResources ^= :$: Chemicals 1;: } //from CRP - - -TANKTYPE:NEEDS[WarpPlugin|KolonyTools|Karbonite|NearFuturePropulsion|CryoEngines|zzz_CryoTanks|FFT] -{ - name = Cryogenic - UsefulVolumeRatio = 0.99 - TankCostPerSurface = 20 //no active cooling - AddMassPerVolume = 0.01 //only insulation - Boiloff = true - PossibleResources = -} -@TANKTYPE[Cryogenic]:NEEDS[WarpPlugin|KolonyTools|Karbonite|NearFuturePropulsion|CryoEngines|zzz_CryoTanks|FFT] -{ @PossibleResources ^= :$: LqdHydrogen 2;: } //USI uses ~4, CryoTanks ~2, KSPIE and IFS use ~1.2; but the density in CommonResources.cfg is for 1u/L -@TANKTYPE[Cryogenic]:NEEDS[WarpPlugin] -{ @PossibleResources ^= :$: LqdMethane 1; LqdCO 1; LqdCO2 1; LqdDeuterium 1; LqdHe3 1; LqdHelium 1; LqdNitrogen 1; LqdOxygen 1; LqdTritium 1;: } //cfd - - -TANKTYPE:NEEDS[WarpPlugin|KolonyTools|Karbonite|NearFuturePropulsion|CryoEngines|zzz_CryoTanks|FFT] -{ - name = CryoCooling - UsefulVolumeRatio = 0.95 - TankCostPerSurface = 200 //active cooling - AddMassPerVolume = 0.1 - Cooling = true - PossibleResources = -} -@TANKTYPE[CryoCooling]:NEEDS[WarpPlugin|KolonyTools|Karbonite|NearFuturePropulsion|CryoEngines|zzz_CryoTanks|FFT] -{ @PossibleResources ^= :$: LqdHydrogen 2;: } //USI uses ~4, CryoTanks ~2, KSPIE and IFS use ~1.2; but the density in CommonResources.cfg is for 1u/L -@TANKTYPE[CryoCooling]:NEEDS[WarpPlugin] -{ @PossibleResources ^= :$: LqdMethane 1; LqdCO 1; LqdCO2 1; LqdDeuterium 1; LqdHe3 1; LqdHelium 0.7; LqdNitrogen 1; LqdOxygen 1; LqdTritium 1;: } //cfd - - -TANKTYPE -{ - name = Gases - UsefulVolumeRatio = 0.95 //thick walls - TankCostPerSurface = 350 //high pressure tanks are costly; costs close to stock Xenon tanks - AddMassPerVolume = 0.74 - //cfp; highly pressurized: ~200 atm - PossibleResources = XenonGas 11.7; //ArgonGas 209.47892118355594; //for PatchContainers.py -} -@TANKTYPE[Gases]:NEEDS[TacLifeSupport] -{ @PossibleResources ^= :$: Oxygen 202.24377; CarbonDioxide 200.97392;: } //cfd; same pressure as Xenon -@TANKTYPE[Gases]:NEEDS[WarpPlugin|NearFuturePropulsion] -{ @PossibleResources ^= :$: ArgonGas 209.47892118355594;: } //cfp; same pressure as Xenon -@TANKTYPE[Gases]:NEEDS[WarpPlugin] -{ @PossibleResources ^= :$: Hydrogen 200; Helium4 200;: } //cfd; same pressure as Xenon - - -TANKTYPE -{ - name = Soil - UsefulVolumeRatio = 1 - TankCostPerSurface = 1 - PossibleResources = Ore 0.185; //cfd -} -@TANKTYPE[Soil]:NEEDS[KolonyTools] //cfd -{ @PossibleResources ^= :$: Dirt 1; Mulch 1; Fertilizer 1; ExoticMinerals 1; MetallicOre 1; Substrate 1; Minerals 1; Polymers 1; Hydrates 1; Gypsum 1; Silicates 1; Silicon 1; Organics 1; RefinedExotics 1;: } -@TANKTYPE[Soil]:NEEDS[WarpPlugin] -{ @PossibleResources ^= :$: Alumina 1;: } //cfd -@TANKTYPE[Soil]:NEEDS[Launchpad] -{ @PossibleResources ^= :$: MetalOre 0.7;: } //cfd -@TANKTYPE[Soil]:NEEDS[Snacks] // has same values as Snacks - arb -{ @PossibleResources ^= :$: Soil 1;: } - -TANKTYPE:NEEDS[Launchpad|KolonyTools|Hangar|KarbonitePlus|WarpPlugin] //cfd -{ - name = Metal - UsefulVolumeRatio = 1 - TankCostPerSurface = 1 - PossibleResources = -} -@TANKTYPE[Metal]:NEEDS[Launchpad] -{ @PossibleResources ^= :$: Metal 0.2; ScrapMetal 0.2;: } -@TANKTYPE[Metal]:NEEDS[Hangar|KolonyTools] -{ @PossibleResources ^= :$: Metals 1;: } -@TANKTYPE[Metal]:NEEDS[KolonyTools] -{ @PossibleResources ^= :$: RareMetals 1;: } -@TANKTYPE[Metal]:NEEDS[KarbonitePlus] -{ @PossibleResources ^= :$: Karborundum 1;: } -@TANKTYPE[Metal]:NEEDS[WarpPlugin] -{ @PossibleResources ^= :$: Aluminium 1; Lithium6 1; Boron 1;: } -@TANKTYPE[Metal]:NEEDS[WarpPlugin|NearFuturePropulsion] -{ @PossibleResources ^= :$: Lithium 1;: } - - -TANKTYPE:NEEDS[KolonyTools|WarpPlugin|KerboNerdLaboratories] //cfd -{ - name = Radioactives - UsefulVolumeRatio = 0.9 - TankCostPerSurface = 500 - AddMassPerVolume = 0.80 - PossibleResources = EnrichedUranium 1; DepletedFuel 1; -} -@TANKTYPE[Radioactives]:NEEDS[KolonyTools] -{ @PossibleResources ^= :$: Uraninite 1;: } -@TANKTYPE[Radioactives]:NEEDS[WarpPlugin] -{ @PossibleResources ^= :$: UraniumNitride 1; UF4 1; ThF4 1; Actinides 1; Plutonium-238 1;: } -@TANKTYPE[Radioactives]:NEEDS[KerboNerdLaboratories] -{ @PossibleResources ^= :$: HyperPlutonium 0.31675295;: } //cfp - -TANKTYPE:NEEDS[TacLifeSupport] -{ - name = Waste - UsefulVolumeRatio = 1 - TankCostPerSurface = 2 //pressurized - PossibleResources = Waste 1.33; WasteWater 0.995; //1t/m3 -} - - -TANKTYPE:NEEDS[KolonyTools|Launchpad|Hangar|GroundConstruction|CargoAccelerators|DangIt] //arb -{ - name = Components - UsefulVolumeRatio = 0.95 //cargo needs additional fixation and compartmetalization - TankCostPerSurface = 2 //pressurized - AddMassPerVolume = 0.003 - PossibleResources = -} -@TANKTYPE[Components]:NEEDS[KolonyTools|Hangar|GroundConstruction|CargoAccelerators] -{ @PossibleResources ^= :$: MaterialKits 1; SpecializedParts 1; Machinery 1;: } //cfd -@TANKTYPE[Components]:NEEDS[KolonyTools] -{ @PossibleResources ^= :$: Recyclables 1;: } //cfd -@TANKTYPE[Components]:NEEDS[Launchpad] -{ @PossibleResources ^= :$: RocketParts 0.2;: } //cfd -@TANKTYPE[Components]:NEEDS[DangIt] -{ @PossibleResources ^= :$: SpareParts 1;: } - - -TANKTYPE:NEEDS[TacLifeSupport|USILifeSupport|KolonyTools|Snacks] //arb -{ - name = Food - UsefulVolumeRatio = 0.95 //cargo needs additional fixation and compartmetalization - TankCostPerSurface = 2 //pressurized - AddMassPerVolume = 0.003 - PossibleResources = -} -@TANKTYPE[Food]:NEEDS[TacLifeSupport] -{ @PossibleResources ^= :$: Food 0.8;: } -@TANKTYPE[Food]:NEEDS[USILifeSupport] -{ @PossibleResources ^= :$: Supplies 0.8;: } -@TANKTYPE[Food]:NEEDS[KolonyTools] -{ @PossibleResources ^= :$: ColonySupplies 0.8;: } -@TANKTYPE[Food]:NEEDS[Snacks] // SnacksLS - arb -{ @PossibleResources ^= :$: Snacks 1;: } - - -TANKTYPE:NEEDS[TacLifeSupport|KolonyTools|WarpPlugin] -{ - name = Water - UsefulVolumeRatio = 1 - TankCostPerSurface = 2 //pressurized - PossibleResources = Water 1; //cfd -} -@TANKTYPE[Water]:NEEDS[WarpPlugin] -{ @PossibleResources ^= :$: HeavyWater 1;: } //non-toxic, cfd - -TANKTYPE -{ - name = Battery - UsefulVolumeRatio = 1 - TankCostPerSurface = 0 - TankCostPerVolume = 3055.7749 //batteries - AddMassPerVolume = 0.1358 - PossibleResources = ElectricCharge 2.716; //cfp -} - -//:mode=c#: From 53294bb2bd0aacd2e686d39b9ac51a75b19a51b7 Mon Sep 17 00:00:00 2001 From: Aerograch Date: Tue, 20 Jun 2023 01:31:01 +0300 Subject: [PATCH 2/3] Fixed previous commit. --- GameData/000_AT_Utils/TankConfigs.cfg | 142 ++++++++++++++++ GameData/000_AT_Utils/TankTypes.cfg | 222 ++++++++++++++++++++++++++ 2 files changed, 364 insertions(+) create mode 100644 GameData/000_AT_Utils/TankConfigs.cfg create mode 100644 GameData/000_AT_Utils/TankTypes.cfg diff --git a/GameData/000_AT_Utils/TankConfigs.cfg b/GameData/000_AT_Utils/TankConfigs.cfg new file mode 100644 index 0000000..c96f661 --- /dev/null +++ b/GameData/000_AT_Utils/TankConfigs.cfg @@ -0,0 +1,142 @@ +TANKCONF +{ + name = LFO + TANK + { + TankType = LiquidChemicals + CurrentResource = LiquidFuel + InitialAmount = 1 + Volume = 45 + } + TANK + { + TankType = LiquidChemicals + CurrentResource = Oxidizer + InitialAmount = 1 + Volume = 55 + } +} + +TANKCONF:NEEDS[CryoEngines] +{ + name = LCH4 Insulation + TANK + { + TankType = Cryogenic + CurrentResource = LqdMethane + InitialAmount = 1 + Volume = 2.853285329 + } + TANK + { + TankType = LiquidChemicals + CurrentResource = Oxidizer + InitialAmount = 1 + Volume = 5 + } +} + +TANKCONF:NEEDS[CryoEngines] +{ + name = LCH4 Cooling + TANK + { + TankType = CryoCooling + CurrentResource = LqdMethane + InitialAmount = 1 + Volume = 2.995049505 + } + TANK + { + TankType = LiquidChemicals + CurrentResource = Oxidizer + InitialAmount = 1 + Volume = 5 + } +} + +TANKCONF:NEEDS[CryoEngines] +{ + name = LH2O Insulation + TANK + { + TankType = Cryogenic + CurrentResource = LqdHydrogen + InitialAmount = 1 + Volume = 15 + } + TANK + { + TankType = LiquidChemicals + CurrentResource = Oxidizer + InitialAmount = 1 + Volume = 12.22222222222222 + } +} + +TANKCONF:NEEDS[CryoEngines] +{ + name = LH2O Cooling + TANK + { + TankType = CryoCooling + CurrentResource = LqdHydrogen + InitialAmount = 1 + Volume = 15 + } + TANK + { + TankType = LiquidChemicals + CurrentResource = Oxidizer + InitialAmount = 1 + Volume = 11.728395 + } +} + +//by Bit Fiddler +TANKCONF:NEEDS[TacLifeSupport] +{ + name = TAC Life Support + TANK + { + TankType = Food + CurrentResource = Food + InitialAmount = 1 + Volume = 0.5255531 + } + TANK + { + TankType = Water + CurrentResource = Water + InitialAmount = 1 + Volume = 0.2639998 + } + TANK + { + TankType = Gases + CurrentResource = Oxygen + InitialAmount = 1 + Volume = 0.2104471 + } +} + +//by LouisCyfer +TANKCONF:NEEDS[Snacks] +{ + name = Snacks and Soil + TANK + { + TankType = Food + CurrentResource = Snacks + InitialAmount = 1 + Volume = 100 + } + TANK + { + TankType = Soil + CurrentResource = Soil + InitialAmount = 0 + Volume = 95 + } +} +//:mode=c#: diff --git a/GameData/000_AT_Utils/TankTypes.cfg b/GameData/000_AT_Utils/TankTypes.cfg new file mode 100644 index 0000000..72e0adc --- /dev/null +++ b/GameData/000_AT_Utils/TankTypes.cfg @@ -0,0 +1,222 @@ +//It's a shame that resource density is defined per unit, not per volume. +//This means that any procedural tank should do some kind of conversion +//which will be susceptible to Squad and modders changes of resource definitions. +//But than again, this situation allows to build different tanks with different +//final density for the same resource (compressed gas, liquid gas, etc.) + + +// Format: +//TANKTYPE +//{ +// name = SimilarResources +// +// name units/L +// PossibleResources = Resource1 1.23; Resource2 3.45; +// +// ***other options*** +// +// /// The portion of a part's volume the tank can use. +// UsefulVolumeRatio = float, (0, 1] +// +// /// The cost of a tank of this type per tank surface. +// TankCostPerSurface = float + +// /// The cost of a tank of this type per tank volume. +// TankCostPerVolume = float +// +// /// The additional mass of a tank of this type per volume. +// AddMassPerVolume = float +//} + + +//cfd = calculated from density +//cfp = calculated from stock/mod parts +//arb = arbitrary + + +TANKTYPE +{ + name = LiquidChemicals + UsefulVolumeRatio = 1 + TankCostPerSurface = 10 //corrosive liquids need to be properly contained; costs close to large stock LFO tanks + PossibleResources = LiquidFuel 0.162; Oxidizer 0.162; MonoPropellant 0.368; //cfp +} +@TANKTYPE[LiquidChemicals]:NEEDS[Karbonite] +{ @PossibleResources ^= :$: Karbonite 0.90;: } //cfp +@TANKTYPE[LiquidChemicals]:NEEDS[Kethane] +{ @PossibleResources ^= :$: Kethane 0.162;: } //arb +@TANKTYPE[LiquidChemicals]:NEEDS[WarpPlugin] +{ @PossibleResources ^= :$: Hexaborane 1; Hydrazine 1; HTP 1; LqdAmmonia 1;: } //cfd +@TANKTYPE[LiquidChemicals]:NEEDS[KolonyTools] +{ @PossibleResources ^= :$: Chemicals 1;: } //from CRP + + +TANKTYPE:NEEDS[WarpPlugin|KolonyTools|Karbonite|NearFuturePropulsion|CryoEngines|zzz_CryoTanks|FFT] +{ + name = Cryogenic + UsefulVolumeRatio = 0.99 + TankCostPerSurface = 20 //no active cooling + AddMassPerVolume = 0.01 //only insulation + Boiloff = true + PossibleResources = +} +@TANKTYPE[Cryogenic]:NEEDS[WarpPlugin|KolonyTools|Karbonite|NearFuturePropulsion|CryoEngines|zzz_CryoTanks|FFT] +{ @PossibleResources ^= :$: LqdHydrogen 2;: } //USI uses ~4, CryoTanks ~2, KSPIE and IFS use ~1.2; but the density in CommonResources.cfg is for 1u/L +@TANKTYPE[Cryogenic]:NEEDS[WarpPlugin|CryoEngines] +{ @PossibleResources ^= :$: LqdMethane 1;: } +@TANKTYPE[Cryogenic]:NEEDS[WarpPlugin] +{ @PossibleResources ^= :$: LqdCO 1; LqdCO2 1; LqdDeuterium 1; LqdHe3 1; LqdHelium 1; LqdNitrogen 1; LqdOxygen 1; LqdTritium 1;: } //cfd + + +TANKTYPE:NEEDS[WarpPlugin|KolonyTools|Karbonite|NearFuturePropulsion|CryoEngines|zzz_CryoTanks|FFT] +{ + name = CryoCooling + UsefulVolumeRatio = 0.95 + TankCostPerSurface = 200 //active cooling + AddMassPerVolume = 0.1 + Cooling = true + PossibleResources = +} +@TANKTYPE[CryoCooling]:NEEDS[WarpPlugin|KolonyTools|Karbonite|NearFuturePropulsion|CryoEngines|zzz_CryoTanks|FFT] +{ @PossibleResources ^= :$: LqdHydrogen 2; LqdMethane 1;: } //USI uses ~4, CryoTanks ~2, KSPIE and IFS use ~1.2; but the density in CommonResources.cfg is for 1u/L +@TANKTYPE[Cryogenic]:NEEDS[WarpPlugin|CryoEngines] +{ @PossibleResources ^= :$: LqdMethane 1;: } +@TANKTYPE[CryoCooling]:NEEDS[WarpPlugin] +{ @PossibleResources ^= :$: LqdCO 1; LqdCO2 1; LqdDeuterium 1; LqdHe3 1; LqdHelium 0.7; LqdNitrogen 1; LqdOxygen 1; LqdTritium 1;: } //cfd + + +TANKTYPE +{ + name = Gases + UsefulVolumeRatio = 0.95 //thick walls + TankCostPerSurface = 350 //high pressure tanks are costly; costs close to stock Xenon tanks + AddMassPerVolume = 0.74 + //cfp; highly pressurized: ~200 atm + PossibleResources = XenonGas 11.7; //ArgonGas 209.47892118355594; //for PatchContainers.py +} +@TANKTYPE[Gases]:NEEDS[TacLifeSupport] +{ @PossibleResources ^= :$: Oxygen 202.24377; CarbonDioxide 200.97392;: } //cfd; same pressure as Xenon +@TANKTYPE[Gases]:NEEDS[WarpPlugin|NearFuturePropulsion] +{ @PossibleResources ^= :$: ArgonGas 209.47892118355594;: } //cfp; same pressure as Xenon +@TANKTYPE[Gases]:NEEDS[WarpPlugin] +{ @PossibleResources ^= :$: Hydrogen 200; Helium4 200;: } //cfd; same pressure as Xenon + + +TANKTYPE +{ + name = Soil + UsefulVolumeRatio = 1 + TankCostPerSurface = 1 + PossibleResources = Ore 0.185; //cfd +} +@TANKTYPE[Soil]:NEEDS[KolonyTools] //cfd +{ @PossibleResources ^= :$: Dirt 1; Mulch 1; Fertilizer 1; ExoticMinerals 1; MetallicOre 1; Substrate 1; Minerals 1; Polymers 1; Hydrates 1; Gypsum 1; Silicates 1; Silicon 1; Organics 1; RefinedExotics 1;: } +@TANKTYPE[Soil]:NEEDS[WarpPlugin] +{ @PossibleResources ^= :$: Alumina 1;: } //cfd +@TANKTYPE[Soil]:NEEDS[Launchpad] +{ @PossibleResources ^= :$: MetalOre 0.7;: } //cfd +@TANKTYPE[Soil]:NEEDS[Snacks] // has same values as Snacks - arb +{ @PossibleResources ^= :$: Soil 1;: } + +TANKTYPE:NEEDS[Launchpad|KolonyTools|Hangar|KarbonitePlus|WarpPlugin] //cfd +{ + name = Metal + UsefulVolumeRatio = 1 + TankCostPerSurface = 1 + PossibleResources = +} +@TANKTYPE[Metal]:NEEDS[Launchpad] +{ @PossibleResources ^= :$: Metal 0.2; ScrapMetal 0.2;: } +@TANKTYPE[Metal]:NEEDS[Hangar|KolonyTools] +{ @PossibleResources ^= :$: Metals 1;: } +@TANKTYPE[Metal]:NEEDS[KolonyTools] +{ @PossibleResources ^= :$: RareMetals 1;: } +@TANKTYPE[Metal]:NEEDS[KarbonitePlus] +{ @PossibleResources ^= :$: Karborundum 1;: } +@TANKTYPE[Metal]:NEEDS[WarpPlugin] +{ @PossibleResources ^= :$: Aluminium 1; Lithium6 1; Boron 1;: } +@TANKTYPE[Metal]:NEEDS[WarpPlugin|NearFuturePropulsion] +{ @PossibleResources ^= :$: Lithium 1;: } + + +TANKTYPE:NEEDS[KolonyTools|WarpPlugin|KerboNerdLaboratories] //cfd +{ + name = Radioactives + UsefulVolumeRatio = 0.9 + TankCostPerSurface = 500 + AddMassPerVolume = 0.80 + PossibleResources = EnrichedUranium 1; DepletedFuel 1; +} +@TANKTYPE[Radioactives]:NEEDS[KolonyTools] +{ @PossibleResources ^= :$: Uraninite 1;: } +@TANKTYPE[Radioactives]:NEEDS[WarpPlugin] +{ @PossibleResources ^= :$: UraniumNitride 1; UF4 1; ThF4 1; Actinides 1; Plutonium-238 1;: } +@TANKTYPE[Radioactives]:NEEDS[KerboNerdLaboratories] +{ @PossibleResources ^= :$: HyperPlutonium 0.31675295;: } //cfp + +TANKTYPE:NEEDS[TacLifeSupport] +{ + name = Waste + UsefulVolumeRatio = 1 + TankCostPerSurface = 2 //pressurized + PossibleResources = Waste 1.33; WasteWater 0.995; //1t/m3 +} + + +TANKTYPE:NEEDS[KolonyTools|Launchpad|Hangar|GroundConstruction|CargoAccelerators|DangIt] //arb +{ + name = Components + UsefulVolumeRatio = 0.95 //cargo needs additional fixation and compartmetalization + TankCostPerSurface = 2 //pressurized + AddMassPerVolume = 0.003 + PossibleResources = +} +@TANKTYPE[Components]:NEEDS[KolonyTools|Hangar|GroundConstruction|CargoAccelerators] +{ @PossibleResources ^= :$: MaterialKits 1; SpecializedParts 1; Machinery 1;: } //cfd +@TANKTYPE[Components]:NEEDS[KolonyTools] +{ @PossibleResources ^= :$: Recyclables 1;: } //cfd +@TANKTYPE[Components]:NEEDS[Launchpad] +{ @PossibleResources ^= :$: RocketParts 0.2;: } //cfd +@TANKTYPE[Components]:NEEDS[DangIt] +{ @PossibleResources ^= :$: SpareParts 1;: } + + +TANKTYPE:NEEDS[TacLifeSupport|USILifeSupport|KolonyTools|Snacks] //arb +{ + name = Food + UsefulVolumeRatio = 0.95 //cargo needs additional fixation and compartmetalization + TankCostPerSurface = 2 //pressurized + AddMassPerVolume = 0.003 + PossibleResources = +} +@TANKTYPE[Food]:NEEDS[TacLifeSupport] +{ @PossibleResources ^= :$: Food 0.8;: } +@TANKTYPE[Food]:NEEDS[USILifeSupport] +{ @PossibleResources ^= :$: Supplies 0.8;: } +@TANKTYPE[Food]:NEEDS[KolonyTools] +{ @PossibleResources ^= :$: ColonySupplies 0.8;: } +@TANKTYPE[Food]:NEEDS[Snacks] // SnacksLS - arb +{ @PossibleResources ^= :$: Snacks 1;: } + + +TANKTYPE:NEEDS[TacLifeSupport|KolonyTools|WarpPlugin] +{ + name = Water + UsefulVolumeRatio = 1 + TankCostPerSurface = 2 //pressurized + PossibleResources = Water 1; //cfd +} +@TANKTYPE[Water]:NEEDS[WarpPlugin] +{ @PossibleResources ^= :$: HeavyWater 1;: } //non-toxic, cfd + +TANKTYPE +{ + name = Battery + UsefulVolumeRatio = 1 + TankCostPerSurface = 0 + TankCostPerVolume = 3055.7749 //batteries + AddMassPerVolume = 0.1358 + PossibleResources = ElectricCharge 2.716; //cfp +} + +//:mode=c#: From 8477a4b49a6dc2008829a925930b17108c3f3a97 Mon Sep 17 00:00:00 2001 From: Aerograch Date: Tue, 20 Jun 2023 01:35:20 +0300 Subject: [PATCH 3/3] Fixed typo --- GameData/000_AT_Utils/TankTypes.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameData/000_AT_Utils/TankTypes.cfg b/GameData/000_AT_Utils/TankTypes.cfg index 72e0adc..7398cd0 100644 --- a/GameData/000_AT_Utils/TankTypes.cfg +++ b/GameData/000_AT_Utils/TankTypes.cfg @@ -78,7 +78,7 @@ TANKTYPE:NEEDS[WarpPlugin|KolonyTools|Karbonite|NearFuturePropulsion|CryoEngines PossibleResources = } @TANKTYPE[CryoCooling]:NEEDS[WarpPlugin|KolonyTools|Karbonite|NearFuturePropulsion|CryoEngines|zzz_CryoTanks|FFT] -{ @PossibleResources ^= :$: LqdHydrogen 2; LqdMethane 1;: } //USI uses ~4, CryoTanks ~2, KSPIE and IFS use ~1.2; but the density in CommonResources.cfg is for 1u/L +{ @PossibleResources ^= :$: LqdHydrogen 2;: } //USI uses ~4, CryoTanks ~2, KSPIE and IFS use ~1.2; but the density in CommonResources.cfg is for 1u/L @TANKTYPE[Cryogenic]:NEEDS[WarpPlugin|CryoEngines] { @PossibleResources ^= :$: LqdMethane 1;: } @TANKTYPE[CryoCooling]:NEEDS[WarpPlugin]