Alshain

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

Recommended Posts

I also refer it here because I like it.

And I need feedback about the outcome.

It started with this thread
https://forum.kerbalspaceprogram.com/index.php?/topic/175961-trying-to-fiddle-with-modulegimbal/

and resulted in this patch:

GameData\zFinal\zzz_useGimbalReponseTime.cfg

@PART[*]:HAS[@MODULE[ModuleGimbal]]:NEEDS[!RealismOverhaul]:FINAL
{
	@MODULE[ModuleGimbal]:HAS[~gimbalResponseSpeed[]]
	{
		%useGimbalResponseSpeed = true
		%gimbalResponseSpeed = 6
	}
}

@PART[*]:HAS[@MODULE[ModuleGimbal],@MODULE[ModuleEngines]]:NEEDS[!RealismOverhaul]:FINAL
{
	@MODULE[ModuleGimbal]:HAS[#gimbalRange[>0]]
	{
		@gimbalRange /= #$/mass$
		temp = #$gimbalRange$
		tempb = #$/MODULE[ModuleEngines]/maxThrust$
		@gimbalRange /= #$tempb$
		@gimbalRange *= 100
		@gimbalRange /= #$temp$
		@gimbalResponseSpeed /= #$/mass$
	}
}

@PART[*]:HAS[@MODULE[ModuleGimbal],@MODULE[ModuleEnginesFX]]:NEEDS[!RealismOverhaul]:FINAL
{
	@MODULE[ModuleGimbal]:HAS[#gimbalRange[>0]]
	{
		@gimbalRange /= #$/mass$
		temp = #$gimbalRange$
		tempb = #$/MODULE[ModuleEnginesFX]/maxThrust$
		@gimbalRange /= #$tempb$
		@gimbalRange *= 100
		@gimbalRange /= #$temp$
		@gimbalResponseSpeed /= #$/mass$
	}
}

@PART[*]:HAS[@MODULE[ModuleGimbal]]:NEEDS[!RealismOverhaul]:FINAL
{
	@MODULE[ModuleGimbal]:HAS[#gimbalResponseSpeed[>15]]
	{
		@gimbalResponseSpeed = 15
	}
}

@PART[*]:HAS[@MODULE[ModuleGimbal]]:NEEDS[!RealismOverhaul]:FINAL
{
	@MODULE[ModuleGimbal]:HAS[#gimbalResponseSpeed[<6]]
	{
		@gimbalResponseSpeed = 6
	}
}
	
@PART[*]:HAS[@MODULE[ModuleGimbal],@MODULE[ModuleEngines*]]:NEEDS[!RealismOverhaul]:FINAL
{
	@MODULE[ModuleGimbal]:HAS[#temp[*],#tempb[*]]
	{
		!temp = delete
		!tempb = delete
	}
}

// Ferram Aerospace Research
//
// ATTENTION:
// You have to delete the following config:
// GameData\FerramAerospaceResearch\stockEngineGimbalIncrease.cfg
//
// @PART[*]:HAS[@MODULE[ModuleGimbal]]:NEEDS[!RealismOverhaul,FerramAerospaceResearch]:FINAL
// {
	// @MODULE[ModuleGimbal]
	// {
		// @gimbalResponseSpeed *= 1.5
	// }
// }

The last block which is commented out is just in there as a reminder.
Without that the whole patch works in stock and for all mods.

ofc I cannot test every single engine from stock and from mods out there - especially because issues depend of the whole vessel design, CoM, CoL etc. pp.

But in short words:

This patch decreases the gimballing range in degrees of all engines containing a ModuleEngines or a ModuleEnginesFX and contain a ModuleGimbal which contains a gimbalRange.
The higher the mass / thrust of the engine, the lower the gimbalRange.

Specific gimbal factors like gimbalRangeX etc. are untouched.
So this works with "normal" rocket engines, verniers or fins with verniers.
Very modded and sophisticated engines with built-in verniers which are customized by the dev are untouched.

The gimbalResponseSpeed is also calculated, but with a low pass filter to be minimum 6 and a high pass filter to be maximum 15.
The higher the mass / thrust of the engine, the slower the response speed.

So you don't need to move the gimbal slider to the left anymore in VAB or flight mode to avoid wobbling.

Edited by Gordon Dry

Share this post


Link to post
Share on other sites

I wanted a Launch Escape System appropriate to the stock 1.25m and 1.875m pods, without installing a parts pack (and the one I've tried was way unbalanced, as usual for modded parts).  So trying to keep it simple, I just rescaled the stock LES by 0.5:

Quote

//Add 0.625m Launch Escape System
//Author: Fourfa

+PART[LaunchEscapeSystem]
{
    %name = LaunchEscapeSystemSmall
    @rescaleFactor = 0.5
    @TechRequired = start
    @entryCost = 2000
    @cost = 500
    @title = Small Launch Escape System
    @mass = 0.3
    @bulkheadProfiles = size0

@MODULE
    {
        name = ModuleEnginesFX
        @maxThrust = 325
    }

@RESOURCE
    {
        name = SolidFuel
        @amount = 10
        @maxAmount = 10
    }
}

I did some playtesting, and this seems to work ok.  Pad aborts with only the basic 0.625m chute could be a bit spicy.  Open to feedback on tuning the numbers I chose...

  • Like 1

Share this post


Link to post
Share on other sites

I was looking for a way to reduce the range and strength of the docking port "magnetism"

Does this look right? Any suggestions? I thought I'd seen it on the forums before, but couldn't find it using search.

 

@PART[*]:HAS[@MODULE[ModuleDockingNode]]
{
	@MODULE[ModuleDockingNode]
	{
		%acquireForce = 0.1
		%acquireRange = 0.1
		%captureRange = 0.1
	}
}

 

Edited by Tyko

Share this post


Link to post
Share on other sites
On 5/17/2016 at 1:34 PM, Alshain said:

Default Flag Decals to Off
Contributor: @Messy Recipe

I salute you, sir. I have been looking for a way to do this for years. Only just now have I discovered Module Manager and figured someone would want the flags off by default.

Share this post


Link to post
Share on other sites

Smart™ Classes to the Part Description CommNet Antennas

Spoiler

// Class Descriptions to CommNet antennas v1.0 (20181031)
// Author: Flart

@PART[*]:HAS[@MODULE[ModuleDataTransmitter]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:antenna.</color> :
}

@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaType[RELAY]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:relay :
}
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaType[DIRECT]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:direct :
}

@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaType[INTERNAL]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:internal :
}

// C0 = 5000
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[<5499]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 0 :
}
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>5499],#antennaPower[<249E3]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 0+ :
}
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>249E3],#antennaPower[<450E3]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 0++ :
}

// C1 = 500k
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>450E3],#antennaPower[<550E3]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 1 :
}
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>550E3],#antennaPower[<4500E3]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 1+ :
}

// C2 = 5M
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>4500E3],#antennaPower[<5500E3]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 2 :
}
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>5500E3],#antennaPower[<494E6]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 2+ :
}
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>494E6],#antennaPower[<1996E6]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 2++ :
}

// C3 = 2G
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>1996E6],#antennaPower[<2004E6]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 3 :
}
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>2004E6],#antennaPower[<14960E6]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 3+ :
}

// C4 = 15G
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>14960E6],#antennaPower[<15040E6]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 4 :
}
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>15040E6],#antennaPower[<99E9]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 4+ :
}

// C5 = 100G
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>99E9],#antennaPower[<101E9]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 5 :
}
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>101E9],#antennaPower[<996E9]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 5+ :
}

// C6 = 1000G
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>996E9],#antennaPower[<1004E9]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 6 :
}
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>1004E9],#antennaPower[<9960E9]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 6+ :
}

// C7 = 10T
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>9960E9],#antennaPower[<10040E9]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 7 :
}
@PART[*]:HAS[@MODULE[ModuleDataTransmitter]:HAS[#antennaPower[>10040E9]]]:NEEDS[!RemoteTech]:FINAL {
	@description ^= :^:<color=orange>Class 7+ :
}

 

 

Edited by flart
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now