Jump to content

Stable patch file


Recommended Posts

I'm attempting to make a patch file in the style of the patches often found in @Nertea mods. (I am reminded quite strongly of Kerbal Atomics and the dynamic patch for NTRs to use H2 rather than LF.)

The goal of this patch file is to have a dynamic system to find and modify all electric engines. The stock ion engine, and new electric engines added by mods. I wish to decrease the thrust of the engine by a set factor but retain the power requirement.

My current efforts are directed at a dynamic method to identify all engines that use EC, and for each, decrease maxThrust by a factor of 10, and increase propellantRatio of EC by a factor of 10.

The following is the contents of a cfg file that I have made to attempt this.
As might be guessed, it does not work.

Quote


@PART[*]:HAS[@MODULE[ModuleEnginesFX]:HAS[@PROPELLANT[ElectricCharge],!PROPELLANT[Monopropellant],!PROPELLANT[Ablator],!PROPELLANT[LqdHydrogen],!PROPELLANT[LqdHe3],!PROPELLANT[LqdDeuterium],!PROPELLANT[FissionPellets],!PROPELLANT[FusionPellets],!PROPELLANT[Antimatter],!PROPELLANT[NSW],!PROPELLANT[Ore]
{
       @MODULE[ModuleEnginesFX]
    {
        @maxThrust *= 0.1
        @PROPELLANT[ElectricCharge]
        {
            @ratio *= 10.0
        }
    }
}
@PART[*]:HAS[@MODULE[ModuleEngines]:HAS[@PROPELLANT[ElectricCharge],!PROPELLANT[Monopropellant],!PROPELLANT[Ablator],!PROPELLANT[LqdHydrogen],!PROPELLANT[LqdHe3],!PROPELLANT[LqdDeuterium],!PROPELLANT[FissionPellets],!PROPELLANT[FusionPellets],!PROPELLANT[Antimatter],!PROPELLANT[NSW],!PROPELLANT[Ore]
{
       @MODULE[ModuleEngines]
    {
        @maxThrust *= 0.1
        @PROPELLANT[ElectricCharge]
        {
            @ratio *= 10.0
        }
    }
}
 

 

 

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