my first .cfg (major achievement)
Posted 10-25-2011 at 12:36 AM by 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!
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 ------
Total Comments 3
Comments
-
Posted 10-25-2011 at 01:42 AM by PeriapsisPrograde
-
Posted 10-25-2011 at 02:06 AM by mojoey
-
Posted 10-25-2011 at 03:04 PM by _Designer_




