Skip to content

Commit

Permalink
Update auto-generating RCS configs
Browse files Browse the repository at this point in the history
Before this, the resource was just change to use Hydrazine instead of Monopropellant. Now all RCS Thruster are getting multiple fuel mixture configs.
  • Loading branch information
ValentinBischof committed Jul 15, 2020
1 parent 916d441 commit 581cdf9
Showing 1 changed file with 139 additions and 10 deletions.
149 changes: 139 additions & 10 deletions GameData/RealFuels-Stock/000_GlobalPatches/Non_Configured_Parts.cfg
@@ -1,7 +1,7 @@
//All Engines that are not configured by RealFuels-Stock are getting replaced K/LOx as their base fuel.
//All RCS Thrusters not configured are getting Hydrazine as their base fuel.
// All Engines that are not configured by RealFuels-Stock are getting replaced K/LOx as their base fuel.
// All RCS Thrusters not configured getting standard rcs configs applied.

//LiquidFuel to Kerosene
// LiquidFuel to Kerosene
@PART[*]:HAS[@MODULE[ModuleEngines*]:HAS[@PROPELLANT[LiquidFuel]]]:FOR[z_RealFuels_StockEngines]
{
@MODULE[ModuleEngines*],*
Expand All @@ -14,7 +14,7 @@
}
}

//Oxidizer to LqdOxygen
// Oxidizer to LqdOxygen
@PART[*]:HAS[@MODULE[ModuleEngines*]:HAS[@PROPELLANT[Oxidizer]]]:FOR[z_RealFuels_StockEngines]
{
@MODULE[ModuleEngines*],*
Expand All @@ -27,11 +27,140 @@
}
}

//MonoPropellant to Hydrazine
@PART[*]:HAS[@MODULE[ModuleRCS*]:HAS[#resourceName[MonoPropellant]]]:NEEDS[RealFuels]:FOR[z_RealFuels_StockEngines]
// Auto generated RCS configuration if engine isnt configure before hand.
@PART[*]:HAS[@MODULE[ModuleRCS*]:HAS[#resourceName[MonoPropellant]]]:FOR[z_RealFuels_StockEngines]
{
@MODULE[ModuleRCS*] // searches for and prepares to alter modules beginning with ModuleRCS, beginning because it will also include modules of ModuleRCS if that mod is installed
@mass *= 0.75
@MODULE[ModuleRCS*]
{
@name = ModuleRCSFX // convert all ModuleRCS modules to ModuleRCSFX
@thrusterPower *= 0.5
!resourceName = DELETE
!PROPELLANT[MonoPropellant] {}
PROPELLANT
{
name = Hydrazine
ratio = 100
}
}
MODULE
{
@resourceName = Hydrazine // changes default propellant of RCS thruster to Hydrazine
}
}
name = ModuleEngineConfigs
type = ModuleRCS
techLevel = 1
origTechLevel = 1
engineType = L
origMass = #$../mass$
configuration = Hydrazine
modded = false
CONFIG
{
name = Hydrazine
thrusterPower = #$../../MODULE[ModuleRCSFX]/thrusterPower$
PROPELLANT
{
name = Hydrazine
ratio = 100
}
IspSL = 0.23
IspV = 0.72
}

CONFIG
{
name = HTP
thrusterPower = #$../../MODULE[ModuleRCSFX]/thrusterPower$
@thrusterPower *= 0.5
PROPELLANT
{
name = HTP
ratio = 1
}
IspSL = 0.2
IspV = 0.465
}

CONFIG
{
name = Nitrogen
thrusterPower = #$../../MODULE[ModuleRCSFX]/thrusterPower$
@thrusterPower *= 0.5
PROPELLANT
{
name = Nitrogen
ratio = 1
}
IspSL = 0.1
IspV = 0.195
}

CONFIG
{
name = NitrousOxide
thrusterPower = #$../../MODULE[ModuleRCSFX]/thrusterPower$
@thrusterPower *= 0.5
PROPELLANT
{
name = NitrousOxide
ratio = 1
}
IspSL = 0.253
IspV = 0.5
}

CONFIG
{
name = MMH+NTO
thrusterPower = #$../../MODULE[ModuleRCSFX]/thrusterPower$
@thrusterPower *= 2
PROPELLANT
{
name = MMH
ratio = 0.51135562
}
PROPELLANT
{
name = NTO
ratio = 0.48864438
}
IspSL = 0.4
IspV = 0.952
}

CONFIG
{
thrusterPower = #$../../MODULE[ModuleRCSFX]/thrusterPower$
@thrusterPower *= 2
PROPELLANT
{
name = Aerozine50
ratio = 0.48657718
}
PROPELLANT
{
name = NTO
ratio = 0.51342282
}
IspSL = 0.403
IspV = 0.955
}

CONFIG
{
thrusterPower = #$../../MODULE[ModuleRCSFX]/thrusterPower$
@thrusterPower *= 1.95
PROPELLANT
{
name = UDMH
ratio = 0.47823219
}
PROPELLANT
{
name = NTO
ratio = 0.52176781
}
IspSL = 0.396
IspV = 0.943
}
}
}

0 comments on commit 581cdf9

Please sign in to comment.