Skip to content

Commit

Permalink
Support for ConfigurableContainers update: gas pressure vs. utilizati…
Browse files Browse the repository at this point in the history
…on (#150)

* ConfigurableContainers support

Needs further testing.
Goal:
Have proper balanced amounts of Kerbalism resources as tank type and tank config presets in ConfigurableContainers.

* yeah, ofc

* Still fiddling

* Typo and fiddling

* And just more fiddling

* CHANGELOG

* fiddling ...

* fiddling ...

The logic of CC is so weird, I should ask Allista about that ...

* New day, new approach

* Added tank config for LH/O2 fuel cell

* Let that go

* forgot those

* Kilograms!

* tab intend

* Now it's this and stil ...

https://forum.kerbalspaceprogram.com/index.php?/topic/150104-143-configurable-containers/&do=findComment&comment=3417870

* A max. of 14 decimal places?

wonky wonky

* Another try in the weirdness

* Because nothing better to do

* Coming nearer, Food and Water are balanced

* Bring this back

* Monoprop is heavier

That value is not the stock resource value of 0.004 because CC decided to change the density.
I just use that density.

* some tab intend

* balance out water to food

* Took pressure into account
  • Loading branch information
Gordon-Dry authored and steamport committed Jul 19, 2018
1 parent 0acd002 commit 69f4845
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions GameData/Kerbalism/Support/ConfigurableContainers.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@TANKTYPE[Gases]:NEEDS[Kerbalism,ProfileDefault,ConfigurableContainers]:FOR[Kerbalism]
{ @PossibleResources ^= :$: Oxygen 282; CarbonDioxide 390.2; Nitrogen 250.2; Ammonia 153.8; Hydrogen 17.98;: } //cfd; same pressure as Xenon
{ @PossibleResources ^= :$: Oxygen 282; CarbonDioxide 117.06; Nitrogen 225.18; Ammonia 26.915; Hydrogen 62.93;: } //cfd

// Uraninite and EnrichedUranium??

Expand Down Expand Up @@ -57,21 +57,21 @@ TANKCONF:NEEDS[Kerbalism,ProfileDefault,ConfigurableContainers]
TANK
{
TankType = Gases
CurrentResource = Oxygen
CurrentResource = Oxygen // 200 bar
InitialAmount = 1
// 595.728 Litres/day /282 = 2112.51063829787
Volume = 87.486554702392983298549317968189
Volume = 86.286837347886
}
TANK
{
TankType = Gases
CurrentResource = Nitrogen
CurrentResource = Nitrogen // 180 bar
InitialAmount = 1
// (assuming constant usage to have a relative value, then divided by ) 7560 Litres/(day) /250.2 = 30215.8273381295
// divided by 100 because that much is not needed = 302.158273381295
Volume = 12.51344529760701670145068203182
// (assuming constant usage to have a relative value, then divided by ) 7560 Litres/(day) /225.18 = 30215.8273381295
// divided by 100 because that much is not needed = 335.73141486810500000
Volume = 13.713162652114
}
// total 2414.668911679165 = 100%
// total 2448.24205316598 = 100%
}

TANKCONF:NEEDS[Kerbalism,ProfileDefault,ConfigurableContainers]
Expand Down Expand Up @@ -102,28 +102,28 @@ TANKCONF:NEEDS[Kerbalism,ProfileDefault,ConfigurableContainers]
TANK
{
TankType = Gases
CurrentResource = CarbonDioxide
CurrentResource = CarbonDioxide // 60 bar
InitialAmount = 1
// 109.0854 Litres/day /390.2 = 279.562788313685 (one unit of crop)
Volume = 46.3754075966202
// 109.0854 Litres/day /117.06 = 931.875961045618 (one unit of crop)
Volume = 33.6258068651048
}
TANK
{
TankType = Gases
CurrentResource = Ammonia
CurrentResource = Ammonia // 35 bar
InitialAmount = 1
// 49.464 Litres/day /153.8 = 321.612483745123 (one unit of crop)
Volume = 53.3508415472882
// 49.464 Litres/day /26.915 = 1837.78562140071 (one unit of crop)
Volume = 66.3146458841443
}
TANK
{
TankType = Water
CurrentResource = Water
InitialAmount = 1
// 1.65024 Litres/day /1 = 1.65024 (one unit of crop)
Volume = 0.273750856091673
Volume = 0.0595472507508477
}
// total 602.825512058809 = 100%
// total 2771.31182244632 = 100%
}

TANKCONF:NEEDS[Kerbalism,ProfileDefault,ConfigurableContainers]
Expand All @@ -132,20 +132,20 @@ TANKCONF:NEEDS[Kerbalism,ProfileDefault,ConfigurableContainers]
TANK
{
TankType = Gases
CurrentResource = Oxygen
CurrentResource = Oxygen // 200 bar
InitialAmount = 1
// 10942.48961208 Litres/day /282 = 38803.1546527659
Volume = 3.1255707580113
Volume = 10.146646141264
}
TANK
{
TankType = Gases
CurrentResource = Hydrogen
CurrentResource = Hydrogen // 700 bar
InitialAmount = 1
// 21624.02544672 Litres/day /17.98 = 1202671.04820467
Volume = 96.8744292419887
// 21624.02544672 Litres/day /62.93 = 343620.299487049
Volume = 89.853353858736
}
// total 1241474.20285744 = 100%
// total 382423.454139815 = 100%
}

TANKCONF:NEEDS[Kerbalism,ProfileDefault,ConfigurableContainers]
Expand All @@ -154,7 +154,7 @@ TANKCONF:NEEDS[Kerbalism,ProfileDefault,ConfigurableContainers]
TANK
{
TankType = Gases
CurrentResource = Oxygen
CurrentResource = Oxygen // 200 bar
InitialAmount = 1
// 11029.37361678 Litres/day /282 = 39111.2539602128
Volume = 99.9864761473628
Expand All @@ -164,7 +164,7 @@ TANKCONF:NEEDS[Kerbalism,ProfileDefault,ConfigurableContainers]
TankType = LiquidChemicals
CurrentResource = MonoPropellant
InitialAmount = 1
// 19.4674346757 Litres/day /3.68 = 5.29006377057065
// 19.4674346757 Litres/day /3680 = 5.29006377057065
Volume = 0.0135238526372043
}
// total 39116.5440239833 = 100%
Expand Down

0 comments on commit 69f4845

Please sign in to comment.