Jump to content

Help with mod coding


Recommended Posts

I was looking thought the Space port and i spotted a lovely looking mod by Z for a orbital green house for Iron-crosses support mod. reading the files he posted and gave permission for peps to mod his mod if they want.

So taking the plunge into modding i down loaded looked at it in action and then adjusted it to a life support free use.

My idea was since the farm generates air and food then the kerbals would probably use any excess material as MonoPropellant.

Well it works but for some reason it is generating Electicity as well could some bright spark tell me what i have missed........

thank you.

// Kerbal Space Program - Part Config

// made By Z moded by Me

PART{

// --- general parameters ---

name = greenhouse

module = Part

author = z

// --- asset parameters ---

mesh = model.mu

// entries missing ?

// --- node definitions ---

node_stack_top = 0.0, 1.61, 0.0, 0.0, 1.0, 0.0, 2

node_stack_bottom = 0.0, -1.61, 0.0, 0.0, 1.0, 0.0, 2

node_attach = 1.25, 0.0, 0.0, 1.0, 0.0, 0.0, 1

// --- editor parameters ---

cost = 3800

category = Science

subcategory = 0

title = GreenHouse

manufacturer = Jeb Co. Light Industreals

description = Garden in a Can kit, Asembled and ready to use.

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision

attachRules = 1,1,1,1,0

// --- standard part parameters ---

mass = 5

dragModelType = default

maximum_drag = 0.2

minimum_drag = 0.3

angularDrag = 2

crashTolerance = 6

breakingForce = 200

breakingTorque = 200

maxTemp = 2900

fuelCrossFeed = True

MODULE

{

name = ModuleAnimateGeneric

animationName = door

startEventGUIName = Remove Shutters

endEventGUIName = Close Shutters

}

// ---resources and xtras

MODULE

{

name = ModuleDeployableSolarPanel

sunTracking = false

raycastTransformName = glass

pivotName = glass

isBreakable = false

resourceName = GLight

chargeRate = 0.001001

powerCurve

{

key = 206000000000 0 0 1

key = 13599840256 1 0 1

key = 68773560320 0.5 0 1

key = 0 10 0 1

}

}

MODULE

{

name = ModuleGenerator

requiresAllInputs = true

isAlwaysActive = true

INPUT_RESOURCE

{

name = GLight

rate = -0.1

}

INPUT_RESOURCE

{

name = ElectricCharge

rate = -0.01

}

OUTPUT_RESOURCE

{

name = MonoPropellant

rate = 0.002

}

}

MODULE

{

name = ModuleGenerator

activateGUIName = "Power suply ON"

shutdownGUIName = "Power suply OFF"

INPUT_RESOURCE

{

name = ElectricCharge

rate = -0.02

}

OUTPUT_RESOURCE

{

name = GLight

rate = 0.1

}

}

RESOURCE

{

name = MonoPropellant

amount = 0

maxAmount = 200

}

RESOURCE

{

name = ElectricCharge

amount = 0

maxAmount = 100

}

RESOURCE

{

name = GLight

amount = 0

maxAmount = 1

}

}

Edited by Morty_jhones
Sort of sorted.
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...