Jump to content

Help with Engine Patches


Lach_01298

Recommended Posts

I've made a couple of patches for converting engines from the stock fuels to their real fuel equivalents but having a few issues. Here are the patches:

// normal engines
@PART[*]:HAS[@MODULE[ModuleEngines]:HAS[@PROPELLANT[LiquidFuel],@PROPELLANT[Oxidizer]]]:FOR[KISRU]
{
		@MODULE[ModuleEngines]
		{
			@PROPELLANT[LiquidFuel]
			{           
				@name = Kerosene
				@ratio = 1.0
			}
			@PROPELLANT[Oxidizer]
			{           
				@name = LqdOxygen 
				@ratio = 1.65
			}
		}
}

// jet engines
@PART[*]:HAS[@MODULE[ModuleEngines]:HAS[@PROPELLANT[LiquidFuel],@PROPELLANT[IntakeAir]]]:FOR[KISRU]
{
		@MODULE[ModuleEngines]
		{
			@PROPELLANT[LiquidFuel]
			{           
				@name = Kerosene
			}
		}	
}

// RCS engines
@PART[*]:HAS[@MODULE[ModuleRCSFX]:HAS[#resourceName[MonoPropellant]]]:FOR[KISRU]
{
	@MODULE[ModuleRCSFX]
	{
		@resourceName = Hydrazine
	}	
}

//monoprop engines
@PART[*]:HAS[@MODULE[ModuleEnginesFX]:HAS[@PROPELLANT[MonoPropellant]]]:FOR[KISRU]
{
		@MODULE[ModuleEnginesFX]
		{
			@PROPELLANT[MonoPropellant]
			{           
				@name = Hydrazine
				@ratio = 1.0
			}
		}		
}

The RCS and monoprop engine patch works fine but the others have issues.

Nothing is changed on normal or jet engines, I suspect I'm not filtering the parts right with module manager. I don't think it likes  :HAS[@PROPELLANT[LiquidFuel],@PROPELLANT[Oxidizer]]. Am I specifying the and conditional right? I've also tied & instead of a comma.

Any help would be appreciated

Link to comment
Share on other sites

That's how you do it:
@PART[*]:HAS[@MODULE[ModuleEngines*]:HAS[@PROPELLANT[LiquidFuel],@PROPELLANT[Oxidizer]]]

I did the same thing a while ago, allowing the stock engines to use different fuel variants using B9PartSwitch, you can take a look here:

https://github.com/mateusviccari/SimpleFuelsForRss/blob/main/Engines/EngineSwitchesLfOx.cfg

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...