Jump to content

A bit of help with configs


Recommended Posts

I'm new to KSP modding, so I would like a bit of help with this part I am trying to make just for myself to sort of get into it.  I've no desire to write an actual plugin.  If this is in the wrong section I apologize as I wasn't exactly sure where to place this. 

But yeah.  I can't get my part to consume any sort of resource in the config and it's driving me mad.  It works without consuming anything so I'm not entirely sure what's going on here.

 

	PART
{
	name = mk2blackrose
	module = Part
	author = Alexander
	mesh = mk2FuselageShort.mu
	rescaleFactor = 1
	node_stack_top = 0.0, 0.9375, 0.0, 0.0, 1.0, 0.0
	node_stack_bottom = 0.0, -0.9375, 0.0, 0.0, -1.0, 0.0
	node_attach = 1.25, 0.0, 0.0, 0.0, 1.0, 0.0, 1
	TechRequired = advScienceTech
	entryCost = 18500
	cost = 12000
	category = Utility
	subcategory = 0
	title = Mk2 Black Rose Oxidizer And LF
	manufacturer = Enigma Tech
	description = This airframe fuselage has a built in Oxidizer and fluid fuel generator.  It requires a large amount of electricity to perform.
	attachRules = 1,1,1,1,0
	mass = 0.49
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.3
	angularDrag = 1
	crashTolerance = 50
	breakingForce = 50
	breakingTorque = 50
	maxTemp = 2500 // = 3000
	emissiveConstant = 0.8
	fuelCrossFeed = True
	bulkheadProfiles = srf, mk2
	

	
	MODULE
	{
		name = ModuleGenerator
        isAlwaysActive = False
		isTweakable = False

	
		OUTPUT_RESOURCE
	{
	   name = LiquidFuel
	   rate = 8
	   
	}
	
			OUTPUT_RESOURCE
	{
	   name = Oxidizer
	   rate = 8
	   
	}
		
	INPUT_RESOURCE	
	{
          name = ElectricCharge
		  Rate 1.0
		  
          
	}

	
	requiresAllInputs = true
	}
	
	




	RESOURCE
{
	name = LiquidFuel
	amount = 0
	maxAmount = 400
}

	RESOURCE
{
	name = Oxidizer
	amount = 0
	maxAmount = 400
}



	
	
}

 

Any help on this would be super appreciated, thank you.

Link to comment
Share on other sites

Noticed the input rate was "Rate" not "rate" - and the equal sign was missing. Corrected those and the load would hang on this part so I removed a bunch of the top part just to get it working. Also noticed the stack nodes were missing the 7th number (node size) though I think it goes to a default size if missing and the surface attach node had a size - reasonably sure surface attach doesn't use a 7th number.

anyway a config that generates resources - I'll leave the adding the top stuff back in to you. :)

PART
{
	name = mk2blackrose
	module = Part
	author = Alexander
	mesh = MoveTex.mu
	rescaleFactor = 1
	mass = 0.49
	
	MODULE
	{
		name = ModuleGenerator
        	isAlwaysActive = False
		isTweakable = False
		requiresAllinputs = true

		OUTPUT_RESOURCE
		{
		   name = LiquidFuel
		   rate = 8
		}
	
		OUTPUT_RESOURCE
		{
		   name = Oxidizer
		   rate = 8
	   	}
		
		INPUT_RESOURCE	
		{
	          name = ElectricCharge
		  rate = 1
		}
	}
	
	RESOURCE
	{
	name = LiquidFuel
	amount = 0
	maxAmount = 400
	}

	RESOURCE
	{
	name = Oxidizer
	amount = 0
	maxAmount = 400
	}
}

Just realized I left the mesh I was using in the mesh = line - you'll need to change that too.

 

Edit: When my config's don't work it's typically because of capitalization or misspellings.

Edited by wasml
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...