Orbiter-Forum  

Go Back   Orbiter-Forum > Blogs > mojoey
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Rate this Entry

my first .cfg (major achievement)

Posted 10-25-2011 at 12:36 AM by mojoey
Tags .cfg, add-on, ksp, mojoey

all right, i mad a basic .cfg for kerbal space program. i decided to start small, and do a command pod. down below is the contents of the .cfg file
comments would be appreciated!
Code:
// 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)


// --- general parameters ---
name = mk4pod
module = CommandPod
author = mojoey

// --- asset parameters ---
mesh = mk4pod.DAE
scale = 0.1
texture = mk4podtexture.png
specpower = 0.1
rimFalloff = 3
alphaCutoff = 0.0

// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
node_stack_top = 0.0, 3.93121, 0.0, 0.0, 1.0, 0.0, 1
node_stack_bottom = 0.0, -4.68567, 0.0, 0.0, 1.0, 0.0, 0


// --- editor parameters ---
cost = 2000
category = 1
subcategory = 0
title = Command Pod Mk4
//manufacturer = Mojo Aerospace Inc.
description = The Mk4 pod is a sturdier look-alike of the Mk1 Command Pod, suitable for mun landings.

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,0,1,0,0

// --- standard part parameters ---
mass 1.3
dragModelType = default
maximum drag = 0.3
minimum drag = 0.2
angular drag = 2
crash tolerance = 30
maxtemp = 3700

// --- pod/rcs parameters ---

rotPower = 5
linPower = 10

Kp = 1.0
Kd = 1.0

// --- tweakables (coming soon...) ---




// ----- DO NOT EDIT BELOW THIS POINT ------
Posted in Uncategorized
Views 1431 Comments 3
« Prev     Main     Next »
Total Comments 3

Comments

  1. Old Comment
    PeriapsisPrograde's Avatar
    Looks good
    Posted 10-25-2011 at 01:42 AM by PeriapsisPrograde PeriapsisPrograde is offline
  2. Old Comment
    mojoey's Avatar
    Thanks
    Posted 10-25-2011 at 02:06 AM by mojoey mojoey is online now
  3. Old Comment
    _Designer_'s Avatar
    awesome!
    Posted 10-25-2011 at 03:04 PM by _Designer_ _Designer_ is offline
 

All times are GMT. The time now is 06:16 AM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2007 - 2012, Orbiter-Forum.com. All rights reserved.