Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USDecouple from UniversalStorage2 #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gordon-Dry
Copy link
Contributor

No description provided.

@Gordon-Dry
Copy link
Contributor Author

I don't get it, the patching is properly, it's even inside the ModuleManager.ConfigCache, but ingame in VAB it's gone.

Could it be that codewise any part that does not contain ModuleDecouple is ignored and the ModuleDecouplerShroud is dynymically removed?

excerpt from ModuleManager.ConfigCache:

UrlConfig
{
	parentUrl = UniversalStorage2/Parts/Control/ACDLarge.cfg
	PART
	{
		module = Part
		author = Daishi, DMagic, and Paul Kingtiger
		manufacturer = New Horizons & Nox Industrial
		subcategory = 0
		title = Universal Storage: Wheel-O-Decoutron ACD (2.5m)
		category = Coupling
		tags = cck-universal-storage Universal Storage Decoupler Stack Separator Reaction Wheel
		description = The Attitude Control Decoupler combines a stack separator and in-line stabilizer to provide staging and reaction wheel systems in a single, low weight package with an access void for crew transfer.  Available in Apollo Silver, Gemini Black, Restock and Tantares color schemes.
		cost = 300
		mass = 0.16
		fuelCrossFeed = True
		maxTemp = 2000
		bulkheadProfiles = size2
		crashTolerance = 6
		TechRequired = generalConstruction
		entryCost = 2200
		stagingIcon = DECOUPLER_VERT
		stageOffset = 1
		childStageOffset = 1
		sound_decoupler_fire = decouple
		name = USACDLarge
		rescaleFactor = 1
		attachRules = 1,0,1,0,1
		angularDrag = 1
		dragModelType = default
		maximum_drag = 0.2
		minimum_drag = 0.2
		MODULE
		{
			name = ModuleConnectedLivingSpace
			passable = true
		}
		MODULE
		{
			name = USDecouple
			ejectionForce = 150
			explosiveNodeID = InnerNode
			menuName = Decouple
			DecoupleAnimationName = Take 001
			DecoupleTime = 0.08
			DecoupleEVA = true
			AnimationSpeed = 1
		}
		MODULE
		{
			name = ModuleToggleCrossfeed
			crossfeedStatus = false
			toggleEditor = true
			toggleFlight = true
		}
		MODULE
		{
			name = ModuleReactionWheel
			PitchTorque = 1.5
			YawTorque = 1.5
			RollTorque = 1.5
			RESOURCE
			{
				name = ElectricCharge
				rate = 0.3
			}
		}
		MODULE
		{
			name = ModuleTestSubject
			useStaging = True
			useEvent = False
			situationMask = 127
			CONSTRAINT
			{
				type = REPEATABILITY
				value = ALWAYS
				prestige = Trivial
			}
			CONSTRAINT
			{
				type = REPEATABILITY
				value = BODYANDSITUATION
				prestige = Significant
			}
			CONSTRAINT
			{
				type = REPEATABILITY
				value = ONCEPERPART
				prestige = Exceptional
			}
			CONSTRAINT
			{
				type = ALTITUDE
				test = GT
				value = 0
				situationMask = 8
			}
			CONSTRAINT
			{
				type = ALTITUDEENV
				test = GT
				value = 4000
				prestige = Trivial
			}
			CONSTRAINT
			{
				type = ALTITUDEENV
				test = LT
				value = 8000
				prestige = Trivial
			}
			CONSTRAINT
			{
				type = ALTITUDEENV
				test = GT
				value = 2000
				prestige = Significant
			}
			CONSTRAINT
			{
				type = ALTITUDEENV
				test = LT
				value = 4000
				prestige = Significant
			}
			CONSTRAINT
			{
				type = ALTITUDEENV
				test = GT
				value = 1000
				prestige = Exceptional
			}
			CONSTRAINT
			{
				type = ALTITUDEENV
				test = LT
				value = 2000
				prestige = Exceptional
			}
			CONSTRAINT
			{
				type = SPEED
				test = LT
				value = 2000
				situationMask = 8
			}
			CONSTRAINT
			{
				type = ALTITUDE
				test = LT
				value = 300000
				situationMask = 16
				body = _NotSun
			}
			CONSTRAINT
			{
				type = ALTITUDE
				test = LT
				value = 600000
				situationMask = 32
				body = _NotSun
			}
		}
		DRAG_CUBE
		{
		}
		MODEL
		{
			model = UniversalStorage2/Parts/Control/ACDLarge
			scale = 1, 1, 1
		}
		MODULE
		{
			name = USSwitchControl
			SwitchID = 0
			ButtonName = Appearance
			ModuleDisplayName = Appearance
			CurrentVariantTitle = Appearance
			ObjectNames = Apollo Silver;Gemini Black;Restock White;Tantares Olive;Tantares White;Tantares Grey;Tantares Black
			ShowPreviousButton = False
			VariantColors = #565656,#565656;#1f1d1b,#1f1d1b;#eeeeee,#565656;#eeeeee,#565656;#eeeeee,#565656;#eeeeee,#565656;#eeeeee,#565656
		}
		MODULE
		{
			name = USMeshSwitch
			SwitchID = 0
			MeshTransforms = ACDLargeApollo;ACDLargeGemini;ACDLargePorkjet;ACDLargeOlive;ACDLargeWhite;ACDLargeGrey;ACDLargeBlack
			AffectColliders = False
		}
		NODE
		{
			name = OuterNode
			transform = OuterNode
			size = 1
			method = FIXED_JOINT
		}
		NODE
		{
			name = InnerNode
			transform = InnerNode
			size = 1
			method = FIXED_JOINT
		}
		MODULE
		{
			name = ModuleDecouplerShroud
			shroudEnabled = false
			autoDetectSize = true
			textureName = Default
			radialSnapMargin = .025
			antiZFightSizeIncrease = 0.01
			outerEdgeLoops = 20
			topEdgeLoops = 8
			editorMinAlpha = .15
			jettisonVelocity = 2
			collisionEnabled = false
			defaultBotWidth = 2.5
			defaultVertOffset = 0
			nSides = 24
			defaultThickness = 0.1
			bottomEdgeSize = .05
			topBevelSize = .04
		}
		MODULE
		{
			name = tjs_DecouplerLight
			lightMultiplier = 1.0
			lightRange = 15.0
			lightRed = 1
			lightGreen = 0.88
			lightBlue = 0.68
			lightDuration = 0.1
		}
		MODULE
		{
			name = Reliability
			type = ModuleReactionWheel
			title = Reaction Wheel
			redundancy = Attitude Control
			repair = true
			mtbf = 36288000
			extra_cost = 2.5
			extra_mass = 1.0
			rated_radiation = 0.15
			radiation_decay_rate = 2
		}
		MODULE
		{
			name = ShipEffectsCollisions
			num1 = 5.4
			num2 = 2.7
			num3 = 1.35
			num4 = 0.135
			CollisionEnter
			{
				SOUNDLAYER
				{
					name = Hull_Impact-Low
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Hull_Impact-Low-1
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Hull_Impact-Low-2
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Hull_Impact-Low-3
					loop = false
					spread = 0.1
					channel = ShipBoth
					volume = 0.0 0.0
					volume = 0.135 0.0
					volume = 1.35 1.0
					volume = 2.7 0.0
					pitch = 0.0 0.8
					pitch = 0.135 0.95
					pitch = 2.7 1.05
					massToVolume = 0.0 0.5
					massToVolume = 15.0 0.8
					massToVolume = 30.0 1.0
					massToPitch = 0.0 1.2
					massToPitch = 15.0 1.0
					massToPitch = 30.0 0.8
				}
				SOUNDLAYER
				{
					name = Hull_Impact-High
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Hull_Impact-High-1
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Hull_Impact-High-2
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Hull_Impact-High-3
					loop = false
					spread = 0.1
					channel = ShipBoth
					volume = 0.0 0.0
					volume = 2.7 0.0
					volume = 5.4 1.0
					pitch = 0.0 0.8
					pitch = 2.7 0.95
					pitch = 5.4 1.05
					massToVolume = 0.0 0.5
					massToVolume = 15.0 0.8
					massToVolume = 30.0 1.0
					massToPitch = 0.0 1.2
					massToPitch = 15.0 1.0
					massToPitch = 30.0 0.8
				}
				SOUNDLAYER
				{
					name = Ground_Impact-Low
					data = concrete-dirt
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Ground_Impact-Low-1
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Ground_Impact-Low-2
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Ground_Impact-Low-3
					loop = false
					spread = 0.25
					channel = ShipBoth
					volume = 0.0 0.0
					volume = 0.1 0.0
					volume = 15 1.0
					volume = 30 0.0
					pitch = 0.0 0.8
					pitch = 0.1 0.8
					pitch = 15 1.2
				}
				SOUNDLAYER
				{
					name = Ground_Impact-High
					data = concrete-dirt
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Ground_Impact-High-1
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Ground_Impact-High-2
					audioClip = RocketSoundEnhancement/Sounds/Physics/Impacts/Ground_Impact-High-3
					loop = false
					spread = 0.25
					channel = ShipBoth
					volume = 0.0 0.0
					volume = 15 0.0
					volume = 30 1.0
					pitch = 0.0 0.8
					pitch = 15 0.8
					pitch = 30 1.2
				}
			}
			CollisionStay
			{
				SOUNDLAYER
				{
					name = Hull_CollisionScrape-concrete
					audioClip = RocketSoundEnhancement/Sounds/Physics/Hull_Scrape-1
					data = concrete
					loop = true
					loopAtRandom = true
					spread = 0.12
					channel = ShipBoth
					volume = 0.0 0.0
					volume = 1.0 0.0
					volume = 15.0 0.8
					volume = 30.0 1.0
					massToVolume = 0.0 0.5
					massToVolume = 25 0.8
					massToVolume = 50 1.0
					massToPitch = 0.0 1.2
					massToPitch = 25 1.0
					massToPitch = 50 0.8
				}
				SOUNDLAYER
				{
					name = Hull_CollisionScrape-dirt
					audioClip = RocketSoundEnhancement/Sounds/Physics/Hull_Scrape-2
					data = dirt
					loop = true
					loopAtRandom = true
					spread = 0.12
					channel = ShipBoth
					volume = 0.0 0.0
					volume = 1.0 0.0
					volume = 15.0 0.8
					volume = 30.0 1.0
					massToVolume = 0.0 0.5
					massToVolume = 25 0.8
					massToVolume = 50 1.0
					massToPitch = 0.0 1.2
					massToPitch = 25 1.0
					massToPitch = 50 0.8
				}
				SOUNDLAYER
				{
					name = Hull_CollisionScrape-Metal
					audioClip = RocketSoundEnhancement/Sounds/Physics/Hull_Scrape-3
					data = concrete-vessel
					loop = true
					loopAtRandom = true
					spread = 0.12
					channel = ShipBoth
					volume = 0.0 0.0
					volume = 1.0 0.0
					volume = 30.0 1.0
					massToVolume = 0.0 0.5
					massToVolume = 25 0.8
					massToVolume = 50 1.0
					massToPitch = 0.0 1.1
					massToPitch = 25 1.0
					massToPitch = 50 0.9
				}
			}
		}
		MODULE
		{
			name = ModuleCargoPart
			packedVolume = 2083
			KSP_PartVolume = true
		}
		MODULE
		{
			name = ModulePartInfo
			originalPartName = USACDLarge
		}
		MODULE
		{
			name = ChillingOut
			active = True
		}
	}
}

@linuxgurugamer
Copy link

This is because the mod looks specifically for ModuleDecouple.

I'll probably adopt this mod and fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants