Jump to content

[1.3.0] Community Database of Module Manager Patches for Stock KSP


Alshain

Recommended Posts

On 7/24/2022 at 5:29 AM, EndAllFilms said:

Is there anyway that I could place the ISRU liquid methane +Ox refuel to the fuel tank with liquid methane instead of liquid fuel?

If you install CryoTanks, it adds liquid methane and methane/ox modes to ISRU converters:

---

And since I'm here, a patch I made to make the stock science arms less annoying to use:

//armdisinfuriator.cfg by Rodg88
@PART[RobotArmScanner_S*]:FINAL
{
    @MODULE[ModuleRobotArmScanner]
    {
        @cancelScanDistance = 1
        @emergencyStopDistanceFromSurface = 0.1
        @firstJointRotationLimit = 95
    }
} 

side effects are you may get very slight craft-clipping or the drills not quite fully hitting the targets, but for me its totally worth it to have it run the experiment without cancelling the scan every single time I try.

Link to comment
Share on other sites

  • 7 months later...

Still like to drop things here when I discover them. A little QOL fix to keep those heat-shields and Making History pods from returning all shiny after reentry.

// Tweak ablator effects so they always go dark at 99.75% ablator remaining
// TG626
@PART[*]:HAS[@MODULE[ModuleAblator]]:FINAL
{
   @MODULE[ModuleAblator]
   {
      %charMin = 0.0
      %charMax = 1.0
   }
   @MODULE[ModuleColorChanger]:HAS[#moduleID[shieldChar]]
   {
      @shaderProperty = _BurnColor
      @redCurve
      {
         @key,0 = 0.9975 .4
      }
      @greenCurve
      {
         @key,0 = 0.9975 .4
      }
      @blueCurve
      {
         @key,0 = 0.9975 .4
      }
   }
}

Major credit to @sumghai and by extension @JPLRepo for their diligent research!

Edited by tg626
Link to comment
Share on other sites

  • 2 weeks later...
On 5/17/2016 at 7:34 PM, Alshain said:

Adjust the Rotation of the HECS core for better alignment
Contributors: @eddiew,

  Hide contents
// Adjust the rotation alignment of the HECS probe core
// Authors: eddiew, Aelfhe1m
@PART[probeCoreHex]
{
	-mesh
	%MODEL
	{
	  %model = Squad/Parts/Command/probeCoreHex/model
	  %position = 0.0, 0.0, 0.0
	  %scale = 1.0, 1.0, 1.0
	  %rotation = 0, 30, 0
	}
}

 

How can I adapt this to repair one of the Near Future Spacecraft Mod's Capsules? One of them is controllpointwise twisted 180 degrees, meaning, that the Kerbals behind the windows fly upsidedown when in space while having the vehicle aligned in a way, that pressing yaw right also does yaw right. So to my mind, the model has to be twisted 180° around the ... Y? Z ? (the one, that goes straight up in the VAB) .... axis. Can I do it on my own by editing the part config?

The partconfig starts like this - where can I insert a 180 degree rotation of the model?:

Spoiler

// Near Future Spacecraft 1.0.0
// MEM-style command pod (Almathea)
PART
{
    // --- general parameters ---
    name = command-mk4-1
    module = Part
    author = Chris Adderley (Nertea)

    // --- asset parameters ---
    MODEL
    {
        model = NearFutureSpacecraft/Parts/Command/command-pods/command-mk4-1
    }

    scale = 1
    rescaleFactor = 1

    // --- node definitions ---
    // definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
    node_stack_bottom01 = 0.0, -0.746, 0.0, 0.0, -1.0, 0.0, 2
    node_stack_bottom02 = 0.0, -1.166, 0.0, 0.0, -1.0, 0.0, 4

    node_stack_top = 0.0, 2.265, 0.0, 0.0, 1.0, 0.0, 1

    stackSymmetry = 3
    NODE
    {
        name = jet1 // whatever you fancy
        transform = node0
        size = 0
        method = FIXED_JOINT
    }
    NODE
    {
        name = jet2 // whatever you fancy
        transform = node1
        size = 0
        method = FIXED_JOINT
    }
    NODE
    {
        name = jet3 // whatever you fancy
        transform = node2
        size = 0
        method = FIXED_JOINT
    }
    NODE
    {
        name = jet4 // whatever you fancy
        transform = node3
        size = 0
        method = FIXED_JOINT
    }

    // --- editor parameters ---
    TechRequired = commandModules
    entryCost = 21500
    cost = 9000
    category = Pods
    subcategory = 0
    title =  #LOC_NFSpacecraft_command-mk4-1_title

...

 

Edit:  I tried inserting. But the IVA and the wall breaches to look inside where not twisted with it. Can I do something about it to repair this too?

rotation = 0, 180, 0
Edited by Rakete
Link to comment
Share on other sites

  • 1 month later...

Hi,

Is it possible to search for specific part tags via MM, to apply patching ? For instance, to  increase the gimbal range on engines, but only for sustainer/booster engine type.

Something like this ? (I have no idea about tags syntax, so help greatly aperciated ! :) )
 

@PART[*]:HAS[@MODULE[ModuleGimbal],tags[launch,sustainer,rocket]]:FINAL
{
    @MODULE[ModuleGimbal]
    {
        @gimbalRange *= 1.5
        %useGimbalResponseSpeed = true
        %gimbalResponseSpeed = 15
    }
}

Peace

Link to comment
Share on other sites

12 hours ago, kurgut said:

Hi,

Is it possible to search for specific part tags via MM, to apply patching ? For instance, to  increase the gimbal range on engines, but only for sustainer/booster engine type.

Something like this ? (I have no idea about tags syntax, so help greatly aperciated ! :) )
 

@PART[*]:HAS[@MODULE[ModuleGimbal],tags[launch,sustainer,rocket]]:FINAL
{
    @MODULE[ModuleGimbal]
    {
        @gimbalRange *= 1.5
        %useGimbalResponseSpeed = true
        %gimbalResponseSpeed = 15
    }
}

Peace

I think something like this would work for you if you knew the tags would always be in the same order. It uses some wildcards to account for different capitalization or end of string. Give it a try!

Also, it's rare but some engines have two gimbals, one for each axis. So by adding ',*' after the module selection, you are saying "make these edits to all ModuleGimbal modules" instead of "Make these edits to the first ModuleGimbal module I find"

@PART[*]:HAS[@MODULE[ModuleGimbal]]:HAS[#tags[*aunch*ustainer*ocke*]]:FINAL
{
    @MODULE[ModuleGimbal],*
    {
        @gimbalRange *= 1.5
        %useGimbalResponseSpeed = true
        %gimbalResponseSpeed = 15
    }
}
Edited by Zelda
Fixed code oopsie
Link to comment
Share on other sites

  • 3 weeks later...

@Jiraiyah I saw your upload to Spacedock, but those patches, as bundled, can be quite dangerous, since if someone put the entire thing into his GameData folder, very unusual things would happen.  Some of those patches conflict with each other, etc.

Why not use Patch Manager to set up the configs so that they can be enabled/disabled via the PM screen rather than forcing people to do it by hand? 

Actually the author of this thread, @Alshain has already done that.  

I think it would be best if you removed this from SpaceDock, as it is going to cause confusion

Edited by linuxgurugamer
Link to comment
Share on other sites

On 6/5/2023 at 4:38 PM, linuxgurugamer said:

@Jiraiyah I saw your upload to Spacedock, but those patches, as bundled, can be quite dangerous, since if someone put the entire thing into his GameData folder, very unusual things would happen.  Some of those patches conflict with each other, etc.

Why not use Patch Manager to set up the configs so that they can be enabled/disabled via the PM screen rather than forcing people to do it by hand? 

Actually the author of this thread, @Alshain has already done that.  

I think it would be best if you removed this from SpaceDock, as it is going to cause confusion

Hi

thanks for the warning, removed the upload as you suggested, although I thought I collected only those that would not conflict with each other, but didn't know that OP had an upload, I had done it to keep a reference for my future self lol, anyways, deleted now.

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

Do you know if it would be possible via a MM patch, to make the science lab produce science at a fixed rate, rather than being dependent on data stored ?

Maybe via some formula I'd guess to counteract the exponential aspect of the data stored ...? But my maths skills (and also math MM mahts writing skills) hit a limit there ^^

Thank you ! :) 

Peace

Edited by kurgut
Link to comment
Share on other sites

  • 4 weeks later...

Tired of not being to able to refuel your ship by connecting directly to an ISRU and Oretanks (without pumping from other tanks into the vessel), because the dockingport is at a capsule, that is connected to a heatshield, that does block fuelflow through it? I got you covered:

For your immersion: Imagine ablator covered hatches and quickly disconnecting pipes in the heatshields, that close rapidly upon decoupling.

QoL Patch:

Spoiler

// Gives all stock heatshields the ability to transfer fuel through them.
// This enables docked vessels to be refilled directly by a docked ISRU even through heatshields, as soon as the xflow-valves in the decouplers on the way to the tanks are open too.

@PART [HeatShield0]
{
fuelCrossFeed = True
}


@PART [HeatShield1]
{
fuelCrossFeed = True
}


@PART [HeatShield1p5]
{
fuelCrossFeed = True
}


@PART [HeatShield2]
{
fuelCrossFeed = True
}

 

@PART [HeatShield3]
{
fuelCrossFeed = True
}

@PART [InflatableHeatShield]
{
fuelCrossFeed = True
}

 

 

 

Edited by Rakete
Link to comment
Share on other sites

On 6/18/2023 at 7:10 PM, kurgut said:

Hi,

Do you know if it would be possible via a MM patch, to make the science lab produce science at a fixed rate, rather than being dependent on data stored ?

Maybe via some formula I'd guess to counteract the exponential aspect of the data stored ...? But my maths skills (and also math MM mahts writing skills) hit a limit there ^^

Thank you ! :) 

Peace

I dont think that this is possible.

But also, are you just wanting the science that is not tramsmitable to be processed without an exploit?

If that is the case then kerbalism has you covered :)

Link to comment
Share on other sites

  • 2 weeks later...
23 hours ago, BoZo_Xo2 said:

Is there any way to make kerbals more stable, e.g. they trip/fall over less?

 

edit:I found the stumble settings, I’ll have to experiment.

Where are the stumble settings to be found?  Asking for a friend.

Link to comment
Share on other sites

  • 4 months later...

Hi, is it possible to specify tags in MM ?

like so maybe ?

@PART[*]:HAS[#CrewCapacity[>0]:HAS[#tags[*aero*]]]:FINAL

Thanks ! :) 

INSTANT EDIT : I was so sure this would never work that I asked here, but against all odds, I tested it and it worked ^^
So I leave this here for reference : )

Cheers

Edited by kurgut
Link to comment
Share on other sites

On 12/1/2023 at 4:17 PM, kurgut said:

like so maybe ?

@PART[*]:HAS[#CrewCapacity[>0]:HAS[#tags[*aero*]]]:FINAL

Thanks ! :) 

Howdy. I believe the formatting would be more like:

@PART:HAS[#CrewCapcity[>0],#tags[*aero*]]

Just one HAS, with comma-separated list.

You use multiple HAS if you're doing a recursive search such as:

@PART:HAS[@MODULE[ModuleB9PartSwitch]:HAS[#moduleID[fuelSwitch]]]
// Any part that has a B9 module that has a moduleID "fuelSwitch"

I think this works. I'm not sure anymore. :P

The [*] isn't necessary as all parts have a name = value pair, but will cause your patch to fail if you target root nodes that don't have a name key, like Experiment definitions or tech tree nodes.

Link to comment
Share on other sites

  • 4 weeks later...

Here is a simple script to correct the center of mass of the Munar Excursion Module from Making History. It also fixes the second bottom stacking node blocking the first, allowing you to choose if you want the adapter skirt or not.

 

//Corrects Center of Mass and fixes bottom stacking nodes for Munar Excursion Module.
//Author: @Errol; CoM values originally found by @RoboRay

@PART[MEMLander]:FINAL
{
	%CoMOffset = 0, 0.6998, 0.029
	%node_stack_bottom2 = 0.0, -0.25, 0.0, 0.0, -1.0, 0.0, 1
}

 

Link to comment
Share on other sites

  • 1 month later...

Hey, somehow I was completely unaware of this database!  I haven't looked very deep into it at all, but what would you think about adding it to CKAN (with a dependency on Patch Manager of course)?

Link to comment
Share on other sites

 Adding this little gem of a MM Patch for those that might think to look here instead of elsewhere in the forum.
Is it worth adding this to the community fix patch or would this be changing something too many people have grown used to by now?

MM Patch to fix the Stock IVA Altimeter so it reads with the triangle hand being 10,000x like an IRL altimeter

@PROP[AltimeterThreeHands]
{
  @MODULE[InternalAltimeterThreeHands]
  {
    @hand100Name = MediumArm
    @hand1000Name = ShortArm
    @hand10000Name = LongArm
  }
}


 

Link to comment
Share on other sites

  • 4 weeks later...

If like me, you're tired of having 999+ images of RPM monitors screens in your KSP screenshot folder, this fixes it :

@PROP[*]:HAS[@MODULE[RasterPropMonitor]]:FINAL
{
	@MODULE[RasterPropMonitor]
	{
		%doScreenshots = false
	}
}

:) 
 

Link to comment
Share on other sites

  • 1 month later...
44 minutes ago, Krazy1 said:

Wow, just found this thread...  these little QoL patches are great.

Any way to disable Kerbal parachutes by default? It's a waste of a cargo slot?

Didn't keep a link to the original post but:

Spoiler
// patch to remove eva chutes from the list of default kerbal inventories
// Author: canisin, slightly modified by Aelfhe1m
@PART:HAS[@MODULE[kerbalEVA]]:FINAL
{
    @MODULE[ModuleInventoryPart]
    {
        @DEFAULTPARTS
        {
            !name = deleteall
            name = evaJetpack
        }
    }
}

I tweaked the part selector to target the module rather than the part name to catch any suit mods that might not follow the standard naming convention (I'm not aware of any at the moment, but this is future proofed)

Edit: found original:

 

Edited by Aelfhe1m
linked original patch
Link to comment
Share on other sites

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