Skip to content

Instantly share code, notes, and snippets.

@xZise
Created January 30, 2014 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xZise/8707734 to your computer and use it in GitHub Desktop.
Save xZise/8707734 to your computer and use it in GitHub Desktop.
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 without a '=' sign are also ignored
// all other lines are split at the '=' sign, and the left operand is used to know what parameter we are setting
// diferent parameters require data in different formats (see docs), and each module has it's own parameters (again, see docs)
// each assignment must be in a single line. Lines without assignments will be ignored. (You CAN turn on word wrap, though)
// each keyword here relates to an existing variable in the assigned module. If the keyword isn't found, it is ignored.
// conversely, if a keyword is left unassigned (as in not in the file), it will be initialized with it's default value
// 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)
MODEL
{
model = Squad/Parts/Command/sasModule/model
scale = 2.0, 2.0, 2.0
}
// --- general parameters ---
name = sasModuleRescale
module = Part
author = NovaSilisko
// --- asset parameters ---
//mesh = model.mu
scale = 1.0
rescaleFactor = 0.5
// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
node_stack_bottom = 0.0, -0.1822218, 0.0, 0.0, 1.0, 0.0
node_stack_top = 0.0, 0.1822218, 0.0, 0.0, 1.0, 0.0
// --- FX definitions ---
// --- editor parameters ---
TechRequired = precisionEngineering
entryCost = 3200
cost = 600
category = Control
subcategory = 0
title = Tiny Inline Reaction Wheel
//manufacturer = O.M.B. Demolition Enterprises
description = A tiny sized reaction wheel. This unit contains weighted wheels that spin very quickly to add assistive torque to a spacecraft, at the cost of electric charge.
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,0,1,1,0
// --- standard part parameters ---
mass = 0.03
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 9
maxTemp = 3400
MODULE
{
name = ModuleReactionWheel
PitchTorque = 3
YawTorque = 3
RollTorque = 3
RESOURCE
{
name = ElectricCharge
rate = 0.045
}
}
MODULE
{
name = ModuleSAS
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment