Jump to content

Intake not working on my part


Recommended Posts

I'm working on a simple mod to add internal combustion engines.  It needs liquid fuel and intake air to run; the part has the intake module, and it's at the top as it's supposed to be, but for some reason it doesn't work.  When I try to start the engine it acts like it isn't getting any air.  Here's my part file and a short video demonstrating the issue.

engine.cfg:

Spoiler

PART
{
	name = InternalCombustionEngine
	module = Part
	author = Leif
	
	MODEL
	{
		model = DanHalen/Parts/Engine/model
	}
	
	rescaleFactor = 1
	
	node_stack_top = 0, 0.4, 0, 0, 1, 0, 1
	node_stack_bottom = 0, -0.4, 0, 0, -1, 0, 1
	
	node_attach = 0, 0, 0, -0.48, 0, 0, 0
	
	TechRequired = generalRocketry
	entryCost = 1000
	cost = 100
	category = Engine
	subcategory = 0
	title = Internal Combustion Engine
	manufacturer = Dan Halen Sheetrock & Aerospace
	description = PLACEHOLDER
	attachRules = 1,1,1,1,0
	
	// --- standard part parameters ---
	mass = 0.2
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 7
	maxTemp = 2000 // = 3000
	bulkheadProfiles = srf
	tags = charge e/c elect energ power volt watt engine internal combustion torque

	MODULE
	{
		name = ModuleResourceIntake
		resourceName = IntakeAir
		checkForOxygen = true
		area = 0.02
		intakeSpeed = 15
		intakeTransformName = Intake
		machCurve
		{
			key = 1 1 0 0
			key = 1.5 0.9 -0.4312553 -0.4312553
			key = 2.5 0.45 -0.5275364 -0.5275364
			key = 3.5 0.1 0 0
		}
	}
	
	RESOURCE
	{
		name = IntakeAir
		amount = 0
		maxAmount = 1
	}

	MODULE
	{
		name = ModuleResourceConverter
		ConverterName = Engine
		StartActionName = Start Engine
		StopActionName = Stop Engine
		ToggleActionName = Toggle Engine
		FillAmount = 0.95
		AutoShutdown = false
		GeneratesHeat = false
		UseSpecialistBonus = false
		 
		INPUT_RESOURCE
		{
			ResourceName = LiquidFuel
			Ratio = 0.02
			FlowMode = STAGE_PRIORITY_FLOW
		}
		
		INPUT_RESOURCE
		{
			ResourceName = IntakeAir
			Ratio = 0.02
			FlowMode = STAGE_PRIORITY_FLOW
		}
		
		OUTPUT_RESOURCE
		{
			ResourceName = Torque
			Ratio = 1.0
			DumpExcess = false
		}
		
		OUTPUT_RESOURCE
		{
			ResourceName = Horsepower
			Ratio = 120.0
			DumpExcess = false
		}
	}

	MODULE
	{
		name = ModuleAlternator
		RESOURCE
		{
			name = ElectricCharge
			rate = 1
		}
	}

}

 


Video:
 

 

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