Difference between revisions of "Parts/Command/mk1InlineCockpit/mk1InlineCockpit.cfg"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<pre> PART { // this is a sample config file, for determining a good file format for defining part parameters // comment line - ignored by cfg parser // empty lines, or lines ...")
 
m (rename request)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<pre>
+
<noinclude>{{rename|Parts/Command/mk1Cockpits/mk1InlineCockpit.cfg|Part is in mk1Cockpits folder}}</noinclude>
PART
+
{{Part config|Mk1 Inline Cockpit|2=PART
 
{
 
{
// this is a sample config file, for determining a good file format for defining part parameters
+
name = Mark2Cockpit
// comment line - ignored by cfg parser
+
module = Part
// empty lines, or lines without a '=' sign are also ignored
+
author = C. Jenkins, Porkjet
// all other lines are split at the '=' sign, and the left operand is used to know what parameter we are setting
+
mesh = Cockpit.mu
// diferent parameters require data in different formats (see docs), and each module has it's own parameters (again, see docs)
+
rescaleFactor = 1
// each assignment must be in a single line. Lines without assignments will be ignored. (You CAN turn on word wrap, though)
+
node_stack_top = 0.0, 0.9375, 0.0, 0.0, 1.0, 0.0
// each keyword here relates to an existing variable in the assigned module. If the keyword isn't found, it is ignored.
+
node_stack_bottom = 0.0, -0.9375, 0.0, 0.0, -1.0, 0.0
// conversely, if a keyword is left unassigned (as in not in the file), it will be initialized with it's default value
+
//node_attach = 0.0, 0.0, 5.12, 0.0, 0.0, -1.0, 1
// 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)
+
TechRequired = flightControl
 
+
entryCost = 5800
 
+
cost = 1600
// --- general parameters ---
+
category = Pods
name = Mark2Cockpit
+
subcategory = 0
module = CommandPod
+
title = Mk1 Inline Cockpit
author = C. Jenkins
+
manufacturer = C7 Aerospace Division
 
+
description = A next generation inline cockpit. Designed for sleek high speed aircraft.
// --- asset parameters ---
+
attachRules = 1,0,1,1,0
mesh = model.mu
+
mass = 1
scale = 0.1
+
dragModelType = default
 
+
maximum_drag = 0.08
// --- node definitions ---
+
minimum_drag = 0.08
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
+
angularDrag = 1
node_stack_top = 0.0, 7.5, 0.0, 0.0, 1.0, 0.0
+
crashTolerance = 40
node_stack_bottom = 0.0, -7.75, 0.0, 0.0, 1.0, 0.0
+
maxTemp = 2000 // = 3400
node_attach = 0.0, 0.0, 5.12, 0.0, 0.0, -1.0, 1
+
vesselType = Ship
 
+
CrewCapacity = 1
// --- editor parameters ---
+
bulkheadProfiles = size1, srf
cost = 1600
+
INTERNAL
category = Pods
+
{
subcategory = 0
+
name =  MK1_Inline_Int
title = Mk2 Cockpit
+
}
manufacturer = C7 Aerospace Division.
+
MODULE
description = A next generation inline cockpit. Designed for sleek high speed aircraft.
+
{
//attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
+
name = ModuleCommand
attachRules = 1,0,1,1,0
+
minimumCrew = 1
 
+
}
// --- standard part parameters ---
+
RESOURCE
mass = 1
+
{
dragModelType = default
+
name = ElectricCharge
maximum_drag = 0.08
+
amount = 50
minimum_drag = 0.08
+
maxAmount = 50
angularDrag = 1
+
}
crashTolerance = 40
+
MODULE
maxTemp = 3400
+
{
 
+
name = ModuleReactionWheel
vesselType = Ship
+
PitchTorque = 10
 
+
YawTorque = 10
// --- pod/rcs parameters ---
+
RollTorque = 10
 
+
RESOURCE
rotPower = 10
+
{
linPower = 10
+
name = ElectricCharge
 
+
rate = 0.3
Kp = 1.0
+
}
Kd = 1.0
+
}
 
+
MODULE
// --- tweakables (coming soon...) ---
+
{
 
+
name = ModuleScienceExperiment
 
+
experimentID = crewReport
 
+
experimentActionName = Crew Report
 
+
resetActionName = Discard Crew Report
// --- internal setup ---
+
reviewActionName = Review Report
CrewCapacity = 1
+
useStaging = False
 
+
useActionGroups = True
INTERNAL
+
hideUIwhenUnavailable = True
{
+
rerunnable = True
  name = GenericSpace1
+
xmitDataScalar = 1.0
}
+
usageReqMaskInternal = 5
 
+
usageReqMaskExternal = -1
MODULE
+
}
{
+
MODULE
name = ModuleCommand
+
{
minimumCrew = 1
+
name = ModuleScienceContainer
}
+
reviewActionName = Review Stored Data
 
+
storeActionName = Store Experiments
RESOURCE
+
evaOnlyStorage = True
{
+
storageRange = 1.3
name = ElectricCharge
+
}
amount = 50
+
RESOURCE
maxAmount = 50
+
{
 +
name = MonoPropellant
 +
amount = 7.5
 +
maxAmount = 7.5
 +
}
 +
MODULE
 +
{
 +
name = FlagDecal
 +
textureQuadName = FLAG
 +
}
 +
MODULE
 +
{
 +
name = ModuleAnimateGeneric
 +
animationName = mk1CockpitInlineLight
 +
actionGUIName = Toggle Lights
 +
startEventGUIName = Lights On
 +
endEventGUIName = Lights Off
 +
}
 
}
 
}
  
// ----- DO NOT EDIT BELOW THIS POINT ------
+
}}
 
 
}
 
</pre>
 

Latest revision as of 05:25, 28 July 2021

It is suggested to rename this to Parts/Command/mk1Cockpits/mk1InlineCockpit.cfg. You can discuss this on this page's talk page.
This is the configuration file for Mk1 Inline Cockpit.
PART
{
	name = Mark2Cockpit
	module = Part
	author = C. Jenkins, Porkjet
	mesh = Cockpit.mu
	rescaleFactor = 1
	node_stack_top = 0.0, 0.9375, 0.0, 0.0, 1.0, 0.0
	node_stack_bottom = 0.0, -0.9375, 0.0, 0.0, -1.0, 0.0
	//node_attach = 0.0, 0.0, 5.12, 0.0, 0.0, -1.0, 1
	TechRequired = flightControl
	entryCost = 5800
	cost = 1600
	category = Pods
	subcategory = 0
	title = Mk1 Inline Cockpit
	manufacturer = C7 Aerospace Division
	description = A next generation inline cockpit. Designed for sleek high speed aircraft.
	attachRules = 1,0,1,1,0
	mass = 1
	dragModelType = default
	maximum_drag = 0.08
	minimum_drag = 0.08
	angularDrag = 1
	crashTolerance = 40
	maxTemp = 2000 // = 3400
	vesselType = Ship
	CrewCapacity = 1
	bulkheadProfiles = size1, srf
	INTERNAL
	{
		name =  MK1_Inline_Int
	}
	MODULE
	{
		name = ModuleCommand
		minimumCrew = 1
	}
	RESOURCE
	{
		name = ElectricCharge
		amount = 50
		maxAmount = 50
	}
	MODULE
	{
		name = ModuleReactionWheel
		PitchTorque = 10
		YawTorque = 10
		RollTorque = 10
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.3
		}
	}
	MODULE
	{
		name = ModuleScienceExperiment
		experimentID = crewReport
		experimentActionName = Crew Report
		resetActionName = Discard Crew Report
		reviewActionName = Review Report
		useStaging = False
		useActionGroups = True
		hideUIwhenUnavailable = True
		rerunnable = True
		xmitDataScalar = 1.0
		usageReqMaskInternal = 5
		usageReqMaskExternal = -1
	}
	MODULE
	{
		name = ModuleScienceContainer
		reviewActionName = Review Stored Data
		storeActionName = Store Experiments
		evaOnlyStorage = True
		storageRange = 1.3
	}
	RESOURCE
	{
		name = MonoPropellant
		amount = 7.5
		maxAmount = 7.5
	}
	MODULE
	{
		name = FlagDecal
		textureQuadName = FLAG
	}
	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = mk1CockpitInlineLight
		actionGUIName = Toggle Lights
		startEventGUIName = Lights On
		endEventGUIName = Lights Off
	}
}