Difference between revisions of "Parts/CompoundParts/strutConnector/strutConnector.cfg"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Update config)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Delete|wrong name, right one already exists}}
+
{{Part config|EAS-4 Strut Connector|2=PART
 
+
{
<pre>
+
name = strutConnector
// this is a sample config file, for determining a good file format for defining part parameters
+
module = CompoundPart
// comment line - ignored by cfg parser
+
author = HarvesteR
// empty lines, or lines without a '=' sign are also ignored
+
mesh = strutConnector.DAE
// all other lines are split at the '=' sign, and the left operand is used to know what parameter we are setting
+
scale = 0.1
// diferent parameters require data in different formats (see docs), and each module has it's own parameters (again, see docs)
+
specPower = 0.1
// each assignment must be in a single line. Lines without assignments will be ignored. (You CAN turn on word wrap, though)
+
rimFalloff = 3
// each keyword here relates to an existing variable in the assigned module. If the keyword isn't found, it is ignored.
+
alphaCutoff = 0.0
// conversely, if a keyword is left unassigned (as in not in the file), it will be initialized with it's default value
+
iconCenter = -4.69147, 2.64656, 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)--
+
TechRequired = generalConstruction
 
+
entryCost = 2800
 
+
cost = 42
// --- general parameters ---
+
category = Structural
name = strutConnector
+
subcategory = 0
module = StrutConnector
+
title = #autoLOC_500364 //#autoLOC_500364 = EAS-4 Strut Connector
author = HarvesteR
+
manufacturer = #autoLOC_501630 //#autoLOC_501630 = Kerlington Model Rockets and Paper Products Inc
 
+
description = #autoLOC_500365 //#autoLOC_500365 = The Strut Connector is highly regarded by many spacecraft engineers as they help in constructing more stable spacecraft. Once both sides are connected, a structural beam is created to link both ends, allowing for sturdier (and heavier) construction.
// --- asset parameters ---
+
attachRules = 0,1,0,0,1
mesh = strutConnector.DAE
+
node_attach = 0.0, 0.0, 0.0, 1.0, 0.0, 0.0
scale = 0.1
+
mass = 0.05
texture = StrutConnectorTexMap.png
+
dragModelType = none
specPower = 0.1
+
maximum_drag = 0.02
rimFalloff = 3
+
minimum_drag = 0.02
alphaCutoff = 0.0
+
angularDrag = 1
iconCenter = -4.69147, 2.64656, 0.0
+
crashTolerance = 12
 
+
maxTemp = 2000 // = 3600
// --- editor parameters ---
+
heatConductivity = 20
cost = 250
+
skinMassPerArea = 20
category = Structural
+
explosionPotential = 0
subcategory = 0
+
fuelCrossFeed = False
title = EAS-4 Strut Connector
+
PhysicsSignificance = 1
manufacturer = Kerlington Model Rockets and Paper Products Inc.
+
maxLength = 10
description = The Strut Connector is highly regarded by many spacecraft engineers as they help in constructing more stable spacecraft. Once both sides are connected, a structural beam is created to link both ends, allowing for sturdier (and heavier) construction.
+
bulkheadProfiles = srf
 
+
disconnectAction = true
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
+
tags = #autoLOC_500366 //#autoLOC_500366 = bind connect join line moar (more pin rigid shake strength strong stru support tie wobble
attachRules = 0,1,0,0,1
+
MODULE
 
+
{
// --- node definitions ---
+
name = CModuleLinkedMesh
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
+
lineObjName = obj_strut
node_attach = 0.0, 0.0, 0.0, 1.0, 0.0, 0.0
+
mainAnchorName = obj_mainAnchor
 
+
targetAnchorName = obj_targetAnchor
 
+
anchorCapName = obj_anchorCap
// --- standard part parameters ---
+
targetCapName = obj_targetCap
mass = 0.05
+
targetColliderName = obj_targetCollider
dragModelType = default
+
}
maximum_drag = 0.02
+
MODULE
minimum_drag = 0.02
+
{
angularDrag = 1
+
name = CModuleStrut
crashTolerance = 12
+
linearStrength = 150
maxTemp = 3600
+
angularStrength = 150
explosionPotential = 0
+
}
 
+
DRAG_CUBE
// --- Strut Connector parameters ---
+
{
 
+
none = True
linearStrength = 150
+
}
angularStrength = 150
+
MODULE
maxLength = 10
+
{
 
+
name = ModulePartVariants
 
+
baseVariant = Gray
// --- tweakables (coming soon...) ---
+
useMultipleDragCubes = false
 
+
VARIANT
 
+
{
 
+
name = Gray
 
+
displayName = #autoLOC_8007101
 
+
description = #autoLOC_8003044
// ----- DO NOT EDIT BELOW THIS POINT ------
+
primaryColor = #999999
</pre>
+
secondaryColor = #999999
 +
TEXTURE
 +
{
 +
shader = KSP/Specular
 +
mainTextureURL = Squad/Parts/CompoundParts/strutConnector/EAS-4 Strut Connector
 +
}
 +
}
 +
VARIANT
 +
{
 +
name = White
 +
displayName = #autoLOC_8007119
 +
description = #autoLOC_8003040
 +
primaryColor = #ffffff
 +
secondaryColor = #ffffff
 +
 +
TEXTURE
 +
{
 +
shader = KSP/Specular
 +
mainTextureURL = Squad/Parts/CompoundParts/strutConnector/EAS-4 Strut Connector_white
 +
}
 +
}
 +
 +
}
 +
MODULE
 +
{
 +
name = ModuleCargoPart
 +
stackableQuantity = 4
 +
packedVolume = 10
 +
}
 +
EFFECTS
 +
{
 +
Disconnect
 +
{
 +
AUDIO
 +
{
 +
channel = Ship
 +
clip = Squad/Sounds/ksp1_strunts_disconnect_v3_pitched2.wav
 +
maxVolumeDistance = 150
 +
}
 +
}
 +
}
 +
}
 +
}}

Latest revision as of 18:34, 10 October 2024

This is the configuration file for EAS-4 Strut Connector.
PART
{
	name = strutConnector
	module = CompoundPart
	author = HarvesteR
	mesh = strutConnector.DAE
	scale = 0.1
	specPower = 0.1
	rimFalloff = 3
	alphaCutoff = 0.0
	iconCenter = -4.69147, 2.64656, 0.0
	TechRequired = generalConstruction
	entryCost = 2800
	cost = 42
	category = Structural
	subcategory = 0
	title = #autoLOC_500364 //#autoLOC_500364 = EAS-4 Strut Connector
	manufacturer = #autoLOC_501630 //#autoLOC_501630 = Kerlington Model Rockets and Paper Products Inc
	description = #autoLOC_500365 //#autoLOC_500365 = The Strut Connector is highly regarded by many spacecraft engineers as they help in constructing more stable spacecraft. Once both sides are connected, a structural beam is created to link both ends, allowing for sturdier (and heavier) construction.
	attachRules = 0,1,0,0,1
	node_attach = 0.0, 0.0, 0.0, 1.0, 0.0, 0.0
	mass = 0.05
	dragModelType = none
	maximum_drag = 0.02
	minimum_drag = 0.02
	angularDrag = 1
	crashTolerance = 12
	maxTemp = 2000 // = 3600
	heatConductivity = 20
	skinMassPerArea = 20
	explosionPotential = 0
	fuelCrossFeed = False
	PhysicsSignificance = 1
	maxLength = 10
	bulkheadProfiles = srf
	disconnectAction = true
	tags = #autoLOC_500366 //#autoLOC_500366 = bind connect join line moar (more pin rigid shake strength strong stru support tie wobble
	MODULE
	{
		name = CModuleLinkedMesh
		lineObjName = obj_strut
		mainAnchorName = obj_mainAnchor
		targetAnchorName = obj_targetAnchor
		anchorCapName = obj_anchorCap
		targetCapName = obj_targetCap
		targetColliderName = obj_targetCollider
	}
	MODULE
	{
		name = CModuleStrut
		linearStrength = 150
		angularStrength = 150
	}
	DRAG_CUBE
	{
		none = True
	}
	MODULE
	{
		name = ModulePartVariants
		baseVariant = Gray
		useMultipleDragCubes = false
		VARIANT
		{
			name = Gray
			displayName = #autoLOC_8007101
			description = #autoLOC_8003044
			primaryColor = #999999
			secondaryColor = #999999
			TEXTURE
			{
				shader = KSP/Specular
				mainTextureURL = Squad/Parts/CompoundParts/strutConnector/EAS-4 Strut Connector
			}
		}
		VARIANT
		{
			name = White
			displayName = #autoLOC_8007119
			description = #autoLOC_8003040
			primaryColor = #ffffff
			secondaryColor = #ffffff
			
			TEXTURE
			{
				shader = KSP/Specular
				mainTextureURL = Squad/Parts/CompoundParts/strutConnector/EAS-4 Strut Connector_white
			}
		}
		
	}
	MODULE
	{
		name = ModuleCargoPart
		stackableQuantity = 4
		packedVolume = 10
	}
	EFFECTS
	{
		Disconnect
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/ksp1_strunts_disconnect_v3_pitched2.wav
				maxVolumeDistance = 150				
			}
		}
	}
}