Difference between revisions of "Parts/Engine/Size2LFB v2/part.cfg"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*update to 0.24.2;)
m (Update config)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Part config|LFB KR-1x2|2=PART
+
{{Part config|LFB KR-1x2 "Twin-Boar" Liquid Fuel Engine|2=PART
 
{
 
{
// this is a sample config file, for determining a good file format for defining part parameters
+
name = Size2LFB_v2
// comment line - ignored by cfg parser
+
module = Part
// empty lines, or lines without a '=' sign are also ignored
+
author = Squad
// all other lines are split at the '=' sign, and the left operand is used to know what parameter we are setting
+
mesh = Size2LFB_v2.mu
// diferent parameters require data in different formats (see docs), and each module has it's own parameters (again, see docs)
+
scale = 1.0
// each assignment must be in a single line. Lines without assignments will be ignored. (You CAN turn on word wrap, though)
+
rescaleFactor = 1
// each keyword here relates to an existing variable in the assigned module. If the keyword isn't found, it is ignored.
+
node_stack_top = 0.0,4.356,0.0, 0.0, 1.0, 0.0, 2
// conversely, if a keyword is left unassigned (as in not in the file), it will be initialized with it's default value
+
node_attach = 1.304782,0.0, 0.0, 1.0, 0.0, 0.0
// This is done automatically, so any public variable defined in the loaded module can be accessed this way (provided it's value can be parsed)
+
mass = 10.5
 
+
heatConductivity = 0.06 // half default
 
+
skinInternalConductionMult = 4.0
// --- general parameters ---
+
emissiveConstant = 0.8 // engine nozzles are good at radiating.
name = Size2LFB
+
dragModelType = default
module = Part
+
maximum_drag = 0.2
author = Squad
+
minimum_drag = 0.2
 
+
angularDrag = 2
// --- asset parameters ---
+
breakingForce = 200
mesh = Size2LFB.mu
+
breakingTorque = 200
scale = 1.0
+
crashTolerance = 20
rescaleFactor = 1
+
maxTemp = 2000 // = 3600
 
+
TechRequired = heavierRocketry
// --- node definitions ---
+
entryCost = 65000
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
+
cost = 17000
 
+
category = Engine
node_stack_top = 0.0,4.356,0.0, 0.0, 1.0, 0.0, 2
+
subcategory = 0
node_attach = 1.304782,0.0, 0.0, 1.0, 0.0, 0.0
+
title = #autoLOC_500472 //#autoLOC_500472 = LFB KR-1x2 "Twin-Boar" Liquid Fuel Engine
 
+
manufacturer = #autoLOC_501638 //#autoLOC_501638 = Kerbodyne
 
+
description = #autoLOC_500473 //#autoLOC_500473 = This liquid fuel booster system is a very purposeful piece of engineering. Instead of relying on single engines or solid rocket boosters, the KR-1x2 employs two modified KR-1 engine, fed by a built-in fuel system, as the source of its immense lifting power. All that self-contained goodness comes at the cost of not having a mounting point for its underside, and not being quite as efficient as dedicated engines. It also comes at quite a literal cost as well.
// --- editor parameters ---
+
attachRules = 1,1,1,1,0
mass = 10.0
+
bulkheadProfiles = size2, srf
dragModelType = default  
+
tags = #autoLOC_500474 //#autoLOC_500474 = ascent (boar booster main propuls rocket (twin
maximum_drag = 0.2  
+
resourcePriorityUseParentInverseStage = True
minimum_drag = 0.2  
+
RESOURCE
angularDrag = 2  
+
{
breakingForce = 200
+
name = LiquidFuel
breakingTorque = 200
+
amount = 2880
crashTolerance = 20  
+
maxAmount = 2880
maxTemp = 3600
+
}
 
+
RESOURCE
 
+
{
TechRequired = heavierRocketry
+
name = Oxidizer
entryCost = 65000
+
amount = 3520
cost = 16400
+
maxAmount = 3520
category = Propulsion
+
}
subcategory = 0
+
EFFECTS
title = LFB KR-1x2
+
{
manufacturer = Kerbodyne
+
running_closed
description = This liquid fuel booster system is a very purposeful piece of engineering. Instead of relying on single engines or solid rocket boosters, the KR-1x2 employs two modified KR-1 engine, fed by a built-in fuel system, as the source of its immense lifting power. All that self-contained goodness comes at the cost of not having a mounting point for its underside, and not being quite as efficient as dedicated engines. It also comes at quite a literal cost as well.
+
{
 
+
AUDIO
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
+
{
attachRules = 1,1,1,1,0
+
channel = Ship
 
+
clip = sound_rocket_spurts
RESOURCE
+
volume = 0.0 0.0
{
+
volume = 1.0 1.0
name = LiquidFuel
+
pitch = 0.0 0.2
amount = 2880
+
pitch = 1.0 1.0
maxAmount = 2880
+
loop = true
}
+
}
 
+
PREFAB_PARTICLE
RESOURCE
+
{
{
+
prefabName = fx_smokeTrail_veryLarge
name = Oxidizer
+
transformName = smokePoint
amount = 3520
+
emission = 0.0 0.0
maxAmount = 3520
+
emission = 0.05 0.0
}
+
emission = 0.075 0.25
 
+
emission = 1.0 1.25
 
+
speed = 0.0 0.25
EFFECTS
+
speed = 1.0 1.0
{
+
localOffset = 0, 0, 1
  running_closed
+
}
  {
+
MODEL_MULTI_PARTICLE
    AUDIO
+
{
    {
+
modelName = Squad/FX/ks1_Exhaust
      channel = Ship
+
transformName = thrustTransform
      clip = sound_rocket_spurts
+
emission = 0.0 0.0
      volume = 0.0 0.0
+
emission = 0.05 0.0
      volume = 1.0 1.0
+
emission = 0.075 0.25
      pitch = 0.0 0.2
+
emission = 1.0 1.25
      pitch = 1.0 1.0
+
speed = 0.0 0.5
      loop = true
+
speed = 1.0 1.2
    }
+
localPosition = 0, 0, -0.08
    PREFAB_PARTICLE
+
}
    {
+
}
      prefabName = fx_smokeTrail_veryLarge
+
engage
      transformName = smokePoint
+
{
      emission = 0.0 0.0
+
AUDIO
      emission = 0.05 0.0
+
{
      emission = 0.075 0.25
+
channel = Ship
      emission = 1.0 1.25
+
clip = sound_vent_soft
      speed = 0.0 0.25
+
volume = 1.0
      speed = 1.0 1.0
+
pitch = 2.0
      localOffset = 0, 0, 1
+
loop = false
    }
+
}
    MODEL_MULTI_PARTICLE
+
}
    {
+
flameout
      modelName = Squad/FX/ks1_Exhaust
+
{
      transformName = thrustTransform
+
PREFAB_PARTICLE
      emission = 0.0 0.0
+
{
      emission = 0.05 0.0
+
prefabName = fx_exhaustSparks_flameout_2
      emission = 0.075 0.25
+
transformName = smokePoint
      emission = 1.0 1.25
+
oneShot = true
      speed = 0.0 0.5
+
}
      speed = 1.0 1.2
+
AUDIO
    }
+
{
  }
+
channel = Ship
  engage
+
clip = sound_explosion_low
  {
+
volume = 1.0
    AUDIO
+
pitch = 2.0
    {
+
loop = false
      channel = Ship
+
}
      clip = sound_vent_soft
+
}
      volume = 1.0
+
}
      pitch = 2.0
+
MODULE
      loop = false
+
{
    }
+
name = ModuleEnginesFX
  }
+
engineID = KSLFB
  flameout
+
runningEffectName = running_closed
  {
+
thrustVectorTransformName = thrustTransform
    PREFAB_PARTICLE
+
exhaustDamage = True
    {
+
ignitionThreshold = 0.1
      prefabName = fx_exhaustSparks_flameout_2
+
minThrust = 0
      transformName = smokePoint
+
maxThrust = 2000
      oneShot = true
+
heatProduction = 375
    }
+
fxOffset = 0, 0, 0.25
    AUDIO
+
EngineType = LiquidFuel
    {
+
exhaustDamageDistanceOffset = 1.5
      channel = Ship
+
PROPELLANT
      clip = sound_explosion_low
+
{
      volume = 1.0
+
name = LiquidFuel
      pitch = 2.0
+
ratio = 0.9
      loop = false
+
DrawGauge = True
    }
+
}
  }
+
PROPELLANT
}
+
{
MODULE
+
name = Oxidizer
{
+
ratio = 1.1
name = ModuleEnginesFX
+
}
engineID = KSLFB
+
atmosphereCurve
runningEffectName = running_closed
+
{
thrustVectorTransformName = thrustPoint
+
key = 0 300
exhaustDamage = True
+
key = 1 280
ignitionThreshold = 0.1
+
key = 9 0.001
minThrust = 0
+
}
maxThrust = 2000
+
}
heatProduction = 400
+
MODULE
fxOffset = 0, 0, 0.25
+
{
PROPELLANT
+
name = ModuleGimbal
 +
gimbalTransformName = obj_gimbal
 +
gimbalRange = 1.5
 +
}
 +
MODULE
 +
{
 +
name = FXModuleAnimateThrottle
 +
animationName = HeatAnimationLFB
 +
responseSpeed = 0.001
 +
dependOnEngineState = True
 +
dependOnThrottle = True
 +
}
 +
MODULE
 +
{
 +
name = FlagDecal
 +
textureQuadName = FlagTransform
 +
}
 +
MODULE
 
{
 
{
name = LiquidFuel
+
name = ModuleTestSubject
        ratio = 0.9
+
useStaging = True
DrawGauge = True
+
useEvent = True
 +
situationMask = 127
 +
CONSTRAINT
 +
{
 +
type = REPEATABILITY
 +
value = ALWAYS
 +
prestige = Trivial
 +
}
 +
CONSTRAINT
 +
{
 +
type = REPEATABILITY
 +
value = BODYANDSITUATION
 +
prestige = Significant
 +
}
 +
CONSTRAINT
 +
{
 +
type = REPEATABILITY
 +
value = ONCEPERPART
 +
prestige = Exceptional
 +
}
 +
CONSTRAINT
 +
{
 +
type = ALTITUDEENV
 +
test = GT
 +
value = 4000
 +
prestige = Trivial
 +
}
 +
CONSTRAINT
 +
{
 +
type = ALTITUDEENV
 +
test = LT
 +
value = 8000
 +
prestige = Trivial
 +
}
 +
CONSTRAINT
 +
{
 +
type = ALTITUDEENV
 +
test = GT
 +
value = 2000
 +
prestige = Significant
 +
}
 +
CONSTRAINT
 +
{
 +
type = ALTITUDEENV
 +
test = LT
 +
value = 4000
 +
prestige = Significant
 +
}
 +
CONSTRAINT
 +
{
 +
type = ALTITUDEENV
 +
test = GT
 +
value = 1000
 +
prestige = Exceptional
 +
}
 +
CONSTRAINT
 +
{
 +
type = ALTITUDEENV
 +
test = LT
 +
value = 2000
 +
prestige = Exceptional
 +
}
 +
CONSTRAINT
 +
{
 +
type = ALTITUDE
 +
test = GT
 +
value = 0 // this just registers altitude as something to care about
 +
situationMask = 8
 +
}
 +
CONSTRAINT
 +
{
 +
type = ALTITUDE
 +
test = LT
 +
value = 300000
 +
situationMask = 16
 +
body = _NotSun
 +
}
 +
CONSTRAINT
 +
{
 +
type = ALTITUDE
 +
test = LT
 +
value = 600000
 +
situationMask = 32
 +
body = _NotSun
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEED
 +
test = GT
 +
value = 0
 +
situationMask = 8
 +
prestige = Trivial
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEED
 +
test = LT
 +
value = 600
 +
situationMask = 8
 +
prestige = Trivial
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEED
 +
test = GT
 +
value = 300
 +
situationMask = 8
 +
prestige = Significant
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEED
 +
test = LT
 +
value = 1200
 +
situationMask = 8
 +
prestige = Significant
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEED
 +
test = GT
 +
value = 600
 +
situationMask = 8
 +
prestige = Exceptional
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEED
 +
test = LT
 +
value = 2500
 +
situationMask = 8
 +
prestige = Exceptional
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEEDENV
 +
test = LT
 +
value = 200
 +
prestige = Trivial
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEEDENV
 +
test = GT
 +
value = 100
 +
prestige = Trivial
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEEDENV
 +
test = LT
 +
value = 100
 +
prestige = Significant
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEEDENV
 +
test = GT
 +
value = 50
 +
prestige = Significant
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEEDENV
 +
test = LT
 +
value = 50
 +
prestige = Exceptional
 +
}
 +
CONSTRAINT
 +
{
 +
type = SPEEDENV
 +
test = GT
 +
value = 20
 +
prestige = Exceptional
 +
}
 
}
 
}
PROPELLANT
+
MODULE
 
{
 
{
name = Oxidizer
+
name = ModuleSurfaceFX
ratio = 1.1
+
thrustProviderModuleIndex = 0
 +
fxMax = 0.8
 +
maxDistance = 50
 +
falloff = 1.8
 +
thrustTransformName = thrustPoint
 
}
 
}
atmosphereCurve
 
{
 
key = 0 340
 
  key = 1 290
 
}
 
 
}
 
 
MODULE
 
{
 
name = ModuleGimbal
 
gimbalTransformName = obj_gimbal
 
gimbalRange = 0.5
 
}
 
 
MODULE
 
{
 
      name = ModuleAnimateHeat
 
      ThermalAnim = HeatAnimationLFB
 
}
 
 
MODULE
 
{
 
      name = FlagDecal
 
      textureQuadName = FlagTransform
 
}
 
 
MODULE
 
{
 
name = ModuleTestSubject
 
 
// nowhere: 0, srf: 1, ocean: 2, atmo: 4, space: 8
 
environments = 15
 
 
useStaging = True
 
useEvent = True
 
}
 
 
 
}
 
}
 
}}
 
}}

Latest revision as of 16:35, 10 October 2024

This is the configuration file for LFB KR-1x2 "Twin-Boar" Liquid Fuel Engine.
PART
{
	name = Size2LFB_v2
	module = Part
	author = Squad
	mesh = Size2LFB_v2.mu
	scale = 1.0
	rescaleFactor = 1
	node_stack_top = 0.0,4.356,0.0, 0.0, 1.0, 0.0, 2
	node_attach = 1.304782,0.0, 0.0, 1.0, 0.0, 0.0
	mass = 10.5
	heatConductivity = 0.06 // half default
	skinInternalConductionMult = 4.0
	emissiveConstant = 0.8 // engine nozzles are good at radiating.
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	breakingForce = 200
	breakingTorque = 200
	crashTolerance = 20
	maxTemp = 2000 // = 3600
	TechRequired = heavierRocketry
	entryCost = 65000
	cost = 17000
	category = Engine
	subcategory = 0
	title = #autoLOC_500472 //#autoLOC_500472 = LFB KR-1x2 "Twin-Boar" Liquid Fuel Engine
	manufacturer = #autoLOC_501638 //#autoLOC_501638 = Kerbodyne
	description = #autoLOC_500473 //#autoLOC_500473 = This liquid fuel booster system is a very purposeful piece of engineering. Instead of relying on single engines or solid rocket boosters, the KR-1x2 employs two modified KR-1 engine, fed by a built-in fuel system, as the source of its immense lifting power. All that self-contained goodness comes at the cost of not having a mounting point for its underside, and not being quite as efficient as dedicated engines. It also comes at quite a literal cost as well.
	attachRules = 1,1,1,1,0
	bulkheadProfiles = size2, srf
	tags = #autoLOC_500474 //#autoLOC_500474 = ascent (boar booster main propuls rocket (twin
	resourcePriorityUseParentInverseStage = True
	RESOURCE
	{
		name = LiquidFuel
		amount = 2880
		maxAmount = 2880
	}
	RESOURCE
	{
		name = Oxidizer
		amount = 3520
		maxAmount = 3520
	}
	EFFECTS
	{
		running_closed
		{
			AUDIO
			{
				channel = Ship
				clip = sound_rocket_spurts
				volume = 0.0 0.0
				volume = 1.0 1.0
				pitch = 0.0 0.2
				pitch = 1.0 1.0
				loop = true
			}
			PREFAB_PARTICLE
			{
				prefabName = fx_smokeTrail_veryLarge
				transformName = smokePoint
				emission = 0.0 0.0
				emission = 0.05 0.0
				emission = 0.075 0.25
				emission = 1.0 1.25
				speed = 0.0 0.25
				speed = 1.0 1.0
				localOffset = 0, 0, 1
			}
			MODEL_MULTI_PARTICLE
			{
				modelName = Squad/FX/ks1_Exhaust
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.05 0.0
				emission = 0.075 0.25
				emission = 1.0 1.25
				speed = 0.0 0.5
				speed = 1.0 1.2
				localPosition = 0, 0, -0.08
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_soft
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		flameout
		{
			PREFAB_PARTICLE
			{
				prefabName = fx_exhaustSparks_flameout_2
				transformName = smokePoint
				oneShot = true
			}
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
	}
	MODULE
	{
		name = ModuleEnginesFX
		engineID = KSLFB
		runningEffectName = running_closed
		thrustVectorTransformName = thrustTransform
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 2000
		heatProduction = 375
		fxOffset = 0, 0, 0.25
		EngineType = LiquidFuel
		exhaustDamageDistanceOffset = 1.5
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.9
			DrawGauge = True
		}
		PROPELLANT
		{
			name = Oxidizer
			ratio = 1.1
		}
		atmosphereCurve
		{
			key = 0 300
			key = 1 280
			key = 9 0.001
		}
	}
	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = obj_gimbal
		gimbalRange = 1.5
	}
	MODULE
	{
		name = FXModuleAnimateThrottle
		animationName = HeatAnimationLFB
		responseSpeed = 0.001
		dependOnEngineState = True
		dependOnThrottle = True
	}
	MODULE
	{
		name = FlagDecal
		textureQuadName = FlagTransform
	}
	MODULE
	{
		name = ModuleTestSubject
		useStaging = True
		useEvent = True
		situationMask = 127
		CONSTRAINT
		{
			type = REPEATABILITY
			value = ALWAYS
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = REPEATABILITY
			value = BODYANDSITUATION
			prestige = Significant
		}
		CONSTRAINT
		{
			type = REPEATABILITY
			value = ONCEPERPART
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 4000
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 8000
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 2000
			prestige = Significant
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 4000
			prestige = Significant
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 1000
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 2000
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = GT
			value = 0 // this just registers altitude as something to care about
			situationMask = 8
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = LT
			value = 300000
			situationMask = 16
			body = _NotSun
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = LT
			value = 600000
			situationMask = 32
			body = _NotSun
		}
		CONSTRAINT
		{
			type = SPEED
			test = GT
			value = 0
			situationMask = 8
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 600
			situationMask = 8
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEED
			test = GT
			value = 300
			situationMask = 8
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 1200
			situationMask = 8
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEED
			test = GT
			value = 600
			situationMask = 8
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 2500
			situationMask = 8
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = LT
			value = 200
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = GT
			value = 100
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = LT
			value = 100
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = GT
			value = 50
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = LT
			value = 50
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = GT
			value = 20
			prestige = Exceptional
		}
	}
	MODULE
	{
		name = ModuleSurfaceFX
		thrustProviderModuleIndex = 0
		fxMax = 0.8
		maxDistance = 50
		falloff = 1.8
		thrustTransformName = thrustPoint
	}
}