sarbian

[1.4.0-1.7.x] Module Manager 4.0.3 (August 9th 2019) - Right To Ludicrous Speed

Recommended Posts

2 hours ago, MulDoom said:

The program exited. No error is thrown. It silently 'crashes'.

Do you have a crash dump file for analyzing?

Share this post


Link to post
Share on other sites
22 hours ago, sarbian said:

Do you have msi afterburner or a similar overlay? With the last windows update it can crash some DX9 apps 

Dude. :)

Thanks a million! MSI Afterburner interferes with 'PartDatabase.cfg' regeneration.

For posterity: MSI can can be used without incident; but can cause crashes if you are modifying your part list. 

 

Thanks for the help. Y'all are legends. Really appreciate the mods you create. 

Share this post


Link to post
Share on other sites

I'm trying to modify an engine in BDB that has 2 ModuleEnginesFX.

The part Config:

PART
{
	name = bluedog_LR91_5
	module = Part
	author = CobaltWolf & Jso
	MODEL
	{
		model = Bluedog_DB/Parts/Titan/bluedog_LR91_5
	}
	scale = 1
	rescaleFactor = 1
	node_stack_top = 0.0, 0.60749, 0.0, 0.0, 1.0, 0.0, 2
	node_stack_bottom = 0.0, -0.9167, 0.0, 0.0, -1.0, 0.0, 2
	TechRequired = advRocketry
	entryCost = 4000
	cost = 1150
	category = Engine
	subcategory = 0
	title = Prometheus LR9107-167 "Lelantos" Liquid Engine
	manufacturer = Bluedog Design Bureau
	description = Powerful 1.875m second stage engine for the Prometheus-II rocket. Upgraded with the ability to gimbal although a single vernier remains for roll control.
	real_title = LR91-AJ5
	real_manufacturer = Aerojet
	real_description = Powerful 1.875m second stage engine for the Titan-II rocket. As with the LR87, the LR91 was successfully converted from a kerolox burning engine to one that ran on storable hypergolic propellants. This engine can gimbal although a single vernier is still used for roll control.
	attachRules = 1,0,1,0,0
	mass = 0.53 //25% thrust scaling, previously used 37.5% //0.8
	heatConductivity = 0.06 // half default
	skinInternalConductionMult = 4.0
	emissiveConstant = 0.8 // engine nozzles are good at radiating.
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 7
	maxTemp = 2000 // = 3600
	bulkheadProfiles = size1p5
	breakingForce = 112
	breakingTorque = 112

	tags = ?sm68 lr91 aj5 titan prometheus ii 2 engine 1875 1.875

	EFFECTS
	{
		running_engine
		{
			AUDIO
			{
				channel = Ship
				clip = Bluedog_DB/Sounds/KW/sound_altloop2
				volume = 0.0 0.0
				volume = 0.01 0.1
				volume = 1.0 3.0
				pitch = 0.0 1
				pitch = 1.0 1
				loop = true
			}

			MODEL_MULTI_PARTICLE
			{
				name = stream
				modelName = Bluedog_DB/FX/PlumeParty/Engines/BDB/TitanVacStream
				transformName = thrustTransform
				emission = 0.0 0.0 0 0
				emission = 0.01 0.1 0 0
				emission = 0.5 1.0
				energy = 0.0 0.5
				energy = 1.0 1.0
				localPosition = 0, 0, 0.8
				// localScale = 0.5, 0.5, 0.5
			}
			MODEL_MULTI_PARTICLE
			{
				name = blaze
				modelName = Bluedog_DB/FX/PlumeParty/Engines/BDB/TitanVacBlaze
				transformName = thrustTransform
				emission = 0.0 0.0 0 0
				emission = 0.01 0.1 0 0
				emission = 0.5 1.0
				energy = 0.0 0.5
				energy = 1.0 1.0
				localPosition = 0, 0, 0.8
				// localScale = 0.5, 0.5, 0.5
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_low
				volume = 1.0
				pitch = 0.5
				loop = false
			}
		}
		disengage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 0.8
				loop = false
			}
		}
		flameout
		{
			PREFAB_PARTICLE
			{
				prefabName = fx_exhaustSparks_flameout_2
				transformName = thrustTransform
				oneShot = true
				localScale = 3.0,3.0,3.0
				//localOffset = 0,0,1.8
			}
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 0.8
				loop = false
			}
		}
		running_vernier
		{
			AUDIO
			{
				channel = Ship
				clip = Bluedog_DB/Sounds/KW/sound_altloop
				volume = 0.0 0.0
				volume = 0.01 0.1
				volume = 1.0 0.5
				pitch = 0.0 1
				pitch = 1.0 1
				loop = true
			}

			MODEL_MULTI_PARTICLE
			{
				modelName = Squad/FX/LES_Thruster
				transformName = vernierFX
				emission = 0.0 0.0
				emission = 1.0 1.0
				speed = 0.0 0.5
				speed = 1.0 1.0
				energy = 0.0 0.25
				energy = 1.0 0.5
				localOffset = 0,0,0.2
			}
		}
	}
	MODULE
	{
		name = ModuleEnginesFX
		thrustVectorTransformName = thrustTransform
		powerEffectName = running_engine
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 111.3 // 25% thrust scaling //167
		heatProduction = 200
		fxOffset = 0, 0, 0.574338
		EngineType = LiquidFuel

		useEngineResponseTime = true
		engineAccelerationSpeed = 0.75
		engineDecelerationSpeed = 1.0

		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.9
			DrawGauge = True
		}
		PROPELLANT
		{
			name = Oxidizer
			ratio = 1.1
		}
		atmosphereCurve
		{
			key = 0 315
			key = 1 160
			key = 6 0.001
		}
	}

	MODULE
	{
		name = ModuleEnginesFX
		thrustVectorTransformName = vernierThrust
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 3
		heatProduction = 150
		EngineType = LiquidFuel
		runningEffectName = running_vernier

		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.9
			DrawGauge = False
		}
		PROPELLANT
		{
			name = Oxidizer
			ratio = 1.1
		}
		atmosphereCurve
		{
			key = 0 290
			key = 1 250
			key = 7 0.001
		}
	}

	MODULE
	{
		name = ModuleGimbal
		gimbalResponseSpeed = 15
		useGimbalResponseSpeed = true
		gimbalTransformName = gimbalTransform
		gimbalRange = 4
	}

	MODULE //RollGimbal
	{
		name = ModuleGimbal
		gimbalResponseSpeed = 15
		useGimbalResponseSpeed = true
		gimbalTransformName = vernierGimbal
		gimbalRangeXN = 15
		gimbalRangeXP = 15
		gimbalRangeYN = 0
		gimbalRangeYP = 0

		enablePitch = false
		enableRoll = true
		enableYaw = false
	}

	MODULE
	{
		name = ModuleJettison
		jettisonName = fairing
		bottomNodeName = bottom
		isFairing = True
		jettisonedObjectMass = 0.1
		jettisonForce = 5
		jettisonDirection = 0 0 1
	}

	MODULE
	{
		name = ModuleAlternator
		RESOURCE
		{
			name = ElectricCharge
			rate = 6.0
		}
	}

	MODULE
	{
		name = ModuleB9PartSwitch
		moduleID = meshSwitchShroud
		switcherDescription = Housing
		affectDragCubes = False
		affectFARVoxels = False
		SUBTYPE
		{
			name = Titan
			transform = Titan2
		}

		SUBTYPE
		{
			name = Bare
			transform = Bare
		}
	}

	MODULE
	{
		name = ModuleB9PartSwitch
		moduleID = textureSwitchPaint
		switcherDescription = Paintjob
		SUBTYPE
		{
			name = GLV
		}
	}

	MODULE
	{
		name = ModuleSurfaceFX
		thrustProviderModuleIndex = 0
		fxMax = 0.5
		maxDistance = 30
		falloff = 1.7
		thrustTransformName = thrustTransform
	}

	RESOURCE
	{
		name = ElectricCharge
		amount = 0
		maxAmount = 0
		isTweakable = false
		hideFlow = true
	}

	MODULE
	{
		name = FXModuleLookAtConstraint

		CONSTRAINLOOKFX
		{
			targetName = pivot_1_Upper
			rotatorsName = pivot_1_Lower
		}
		CONSTRAINLOOKFX
		{
			targetName = pivot_1_Lower
			rotatorsName = pivot_1_Upper
		}
		CONSTRAINLOOKFX
		{
			targetName = pivot_2_Upper
			rotatorsName = pivot_2_Lower
		}
		CONSTRAINLOOKFX
		{
			targetName = pivot_2_Lower
			rotatorsName = pivot_2_Upper
		}
	}

	MODULE
	{
		name = FXModuleThrottleEffects
		fxModuleNames = heatColor
		responseSpeed = 1.0
		dependOnEngineState = True
		dependOnThrottle = True
	}
	MODULE
	{
		name = FXModuleThrottleEffects
		fxModuleNames = throttleColor
		responseSpeed = 1.0
		dependOnEngineState = True
		dependOnThrottle = True
	}
	MODULE
	{
		name = ModuleColorChanger
		moduleID = heatColor
		animRate = 0.025
		shaderProperty = _EmissiveColor
		excludedRenderer = innerGlow
		toggleInEditor = false
		toggleInFlight = false
		redCurve
		{
			key = 1 1 1 1
			key = 1 1 1 1
		}
		greenCurve
		{
			key = 0 0 1 1
			key = 1 1 1 1
		}
		blueCurve
		{
			key = 0 0 1 1
			key = 1 1 1 1
		}
		alphaCurve
		{
			key = 0 0 1 1
			key = 1 1 1 1
		}
	}

	MODULE
	{
		name = ModuleColorChanger
		moduleID = throttleColor
		animRate = 1
		shaderProperty = _TintColor
		includedRenderer = innerGlow
		toggleInEditor = false
		toggleInFlight = false
		redCurve
		{
			key = 0 0
			key = 1 1
		}
		greenCurve
		{
			key = 0 0
			key = 1 1
		}
		blueCurve
		{
			key = 0 0
			key = 1 1
		}
		alphaCurve
		{
			key = 0 0
			key = 1 1
		}
	}
}

 

My config:

@PART[bluedog_LR91_5]
[
	@MODULE[ModuleEnginesFX]
	{
		@useEngineResponseTime = False
	}
]

However the useEngineResponseTime stays true.  I deleted the lines in the part config just to make sure there isn't another config somewhere adding it, and that worked.  So now I just need to get ModuleManager to do it for me.

Share this post


Link to post
Share on other sites
17 minutes ago, Deltac said:

I'm trying to modify an engine in BDB that has 2 ModuleEnginesFX.

The part Config:


PART
{
	name = bluedog_LR91_5
	module = Part
	author = CobaltWolf & Jso
	MODEL
	{
		model = Bluedog_DB/Parts/Titan/bluedog_LR91_5
	}
	scale = 1
	rescaleFactor = 1
	node_stack_top = 0.0, 0.60749, 0.0, 0.0, 1.0, 0.0, 2
	node_stack_bottom = 0.0, -0.9167, 0.0, 0.0, -1.0, 0.0, 2
	TechRequired = advRocketry
	entryCost = 4000
	cost = 1150
	category = Engine
	subcategory = 0
	title = Prometheus LR9107-167 "Lelantos" Liquid Engine
	manufacturer = Bluedog Design Bureau
	description = Powerful 1.875m second stage engine for the Prometheus-II rocket. Upgraded with the ability to gimbal although a single vernier remains for roll control.
	real_title = LR91-AJ5
	real_manufacturer = Aerojet
	real_description = Powerful 1.875m second stage engine for the Titan-II rocket. As with the LR87, the LR91 was successfully converted from a kerolox burning engine to one that ran on storable hypergolic propellants. This engine can gimbal although a single vernier is still used for roll control.
	attachRules = 1,0,1,0,0
	mass = 0.53 //25% thrust scaling, previously used 37.5% //0.8
	heatConductivity = 0.06 // half default
	skinInternalConductionMult = 4.0
	emissiveConstant = 0.8 // engine nozzles are good at radiating.
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 7
	maxTemp = 2000 // = 3600
	bulkheadProfiles = size1p5
	breakingForce = 112
	breakingTorque = 112

	tags = ?sm68 lr91 aj5 titan prometheus ii 2 engine 1875 1.875

	EFFECTS
	{
		running_engine
		{
			AUDIO
			{
				channel = Ship
				clip = Bluedog_DB/Sounds/KW/sound_altloop2
				volume = 0.0 0.0
				volume = 0.01 0.1
				volume = 1.0 3.0
				pitch = 0.0 1
				pitch = 1.0 1
				loop = true
			}

			MODEL_MULTI_PARTICLE
			{
				name = stream
				modelName = Bluedog_DB/FX/PlumeParty/Engines/BDB/TitanVacStream
				transformName = thrustTransform
				emission = 0.0 0.0 0 0
				emission = 0.01 0.1 0 0
				emission = 0.5 1.0
				energy = 0.0 0.5
				energy = 1.0 1.0
				localPosition = 0, 0, 0.8
				// localScale = 0.5, 0.5, 0.5
			}
			MODEL_MULTI_PARTICLE
			{
				name = blaze
				modelName = Bluedog_DB/FX/PlumeParty/Engines/BDB/TitanVacBlaze
				transformName = thrustTransform
				emission = 0.0 0.0 0 0
				emission = 0.01 0.1 0 0
				emission = 0.5 1.0
				energy = 0.0 0.5
				energy = 1.0 1.0
				localPosition = 0, 0, 0.8
				// localScale = 0.5, 0.5, 0.5
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_low
				volume = 1.0
				pitch = 0.5
				loop = false
			}
		}
		disengage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 0.8
				loop = false
			}
		}
		flameout
		{
			PREFAB_PARTICLE
			{
				prefabName = fx_exhaustSparks_flameout_2
				transformName = thrustTransform
				oneShot = true
				localScale = 3.0,3.0,3.0
				//localOffset = 0,0,1.8
			}
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 0.8
				loop = false
			}
		}
		running_vernier
		{
			AUDIO
			{
				channel = Ship
				clip = Bluedog_DB/Sounds/KW/sound_altloop
				volume = 0.0 0.0
				volume = 0.01 0.1
				volume = 1.0 0.5
				pitch = 0.0 1
				pitch = 1.0 1
				loop = true
			}

			MODEL_MULTI_PARTICLE
			{
				modelName = Squad/FX/LES_Thruster
				transformName = vernierFX
				emission = 0.0 0.0
				emission = 1.0 1.0
				speed = 0.0 0.5
				speed = 1.0 1.0
				energy = 0.0 0.25
				energy = 1.0 0.5
				localOffset = 0,0,0.2
			}
		}
	}
	MODULE
	{
		name = ModuleEnginesFX
		thrustVectorTransformName = thrustTransform
		powerEffectName = running_engine
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 111.3 // 25% thrust scaling //167
		heatProduction = 200
		fxOffset = 0, 0, 0.574338
		EngineType = LiquidFuel

		useEngineResponseTime = true
		engineAccelerationSpeed = 0.75
		engineDecelerationSpeed = 1.0

		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.9
			DrawGauge = True
		}
		PROPELLANT
		{
			name = Oxidizer
			ratio = 1.1
		}
		atmosphereCurve
		{
			key = 0 315
			key = 1 160
			key = 6 0.001
		}
	}

	MODULE
	{
		name = ModuleEnginesFX
		thrustVectorTransformName = vernierThrust
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 3
		heatProduction = 150
		EngineType = LiquidFuel
		runningEffectName = running_vernier

		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.9
			DrawGauge = False
		}
		PROPELLANT
		{
			name = Oxidizer
			ratio = 1.1
		}
		atmosphereCurve
		{
			key = 0 290
			key = 1 250
			key = 7 0.001
		}
	}

	MODULE
	{
		name = ModuleGimbal
		gimbalResponseSpeed = 15
		useGimbalResponseSpeed = true
		gimbalTransformName = gimbalTransform
		gimbalRange = 4
	}

	MODULE //RollGimbal
	{
		name = ModuleGimbal
		gimbalResponseSpeed = 15
		useGimbalResponseSpeed = true
		gimbalTransformName = vernierGimbal
		gimbalRangeXN = 15
		gimbalRangeXP = 15
		gimbalRangeYN = 0
		gimbalRangeYP = 0

		enablePitch = false
		enableRoll = true
		enableYaw = false
	}

	MODULE
	{
		name = ModuleJettison
		jettisonName = fairing
		bottomNodeName = bottom
		isFairing = True
		jettisonedObjectMass = 0.1
		jettisonForce = 5
		jettisonDirection = 0 0 1
	}

	MODULE
	{
		name = ModuleAlternator
		RESOURCE
		{
			name = ElectricCharge
			rate = 6.0
		}
	}

	MODULE
	{
		name = ModuleB9PartSwitch
		moduleID = meshSwitchShroud
		switcherDescription = Housing
		affectDragCubes = False
		affectFARVoxels = False
		SUBTYPE
		{
			name = Titan
			transform = Titan2
		}

		SUBTYPE
		{
			name = Bare
			transform = Bare
		}
	}

	MODULE
	{
		name = ModuleB9PartSwitch
		moduleID = textureSwitchPaint
		switcherDescription = Paintjob
		SUBTYPE
		{
			name = GLV
		}
	}

	MODULE
	{
		name = ModuleSurfaceFX
		thrustProviderModuleIndex = 0
		fxMax = 0.5
		maxDistance = 30
		falloff = 1.7
		thrustTransformName = thrustTransform
	}

	RESOURCE
	{
		name = ElectricCharge
		amount = 0
		maxAmount = 0
		isTweakable = false
		hideFlow = true
	}

	MODULE
	{
		name = FXModuleLookAtConstraint

		CONSTRAINLOOKFX
		{
			targetName = pivot_1_Upper
			rotatorsName = pivot_1_Lower
		}
		CONSTRAINLOOKFX
		{
			targetName = pivot_1_Lower
			rotatorsName = pivot_1_Upper
		}
		CONSTRAINLOOKFX
		{
			targetName = pivot_2_Upper
			rotatorsName = pivot_2_Lower
		}
		CONSTRAINLOOKFX
		{
			targetName = pivot_2_Lower
			rotatorsName = pivot_2_Upper
		}
	}

	MODULE
	{
		name = FXModuleThrottleEffects
		fxModuleNames = heatColor
		responseSpeed = 1.0
		dependOnEngineState = True
		dependOnThrottle = True
	}
	MODULE
	{
		name = FXModuleThrottleEffects
		fxModuleNames = throttleColor
		responseSpeed = 1.0
		dependOnEngineState = True
		dependOnThrottle = True
	}
	MODULE
	{
		name = ModuleColorChanger
		moduleID = heatColor
		animRate = 0.025
		shaderProperty = _EmissiveColor
		excludedRenderer = innerGlow
		toggleInEditor = false
		toggleInFlight = false
		redCurve
		{
			key = 1 1 1 1
			key = 1 1 1 1
		}
		greenCurve
		{
			key = 0 0 1 1
			key = 1 1 1 1
		}
		blueCurve
		{
			key = 0 0 1 1
			key = 1 1 1 1
		}
		alphaCurve
		{
			key = 0 0 1 1
			key = 1 1 1 1
		}
	}

	MODULE
	{
		name = ModuleColorChanger
		moduleID = throttleColor
		animRate = 1
		shaderProperty = _TintColor
		includedRenderer = innerGlow
		toggleInEditor = false
		toggleInFlight = false
		redCurve
		{
			key = 0 0
			key = 1 1
		}
		greenCurve
		{
			key = 0 0
			key = 1 1
		}
		blueCurve
		{
			key = 0 0
			key = 1 1
		}
		alphaCurve
		{
			key = 0 0
			key = 1 1
		}
	}
}

 

My config:


@PART[bluedog_LR91_5]
[
	@MODULE[ModuleEnginesFX]
	{
		@useEngineResponseTime = False
	}
]

However the useEngineResponseTime stays true.  I deleted the lines in the part config just to make sure there isn't another config somewhere adding it, and that worked.  So now I just need to get ModuleManager to do it for me.

Check your opening and closing brackets. You are using the wrong type. You should be using { } not [ ]

Edited by Galileo

Share this post


Link to post
Share on other sites

Right now I'm trying to make a patch that applies extra textures to the FStextureSwitch module for certain parts. I'll list one of them as an example.

Part .cfg

Spoiler

PART
{

// --- general parameters ---
name = FS_BiplaneElevator
module = Part
author = Snjo

// --- asset parameters ---
rescaleFactor = 1

MODEL
{
   model = Firespitter/Assets/FS_BiplaneElevator
}

// --- editor parameters ---
TechRequired = start
cost = 1000
entryCost = 2000
category = Aero
subcategory = 0
title = FS4E Biplane Elevator (special aero)
manufacturer = Bitesized Industries
description = A tail elevator from an old Biplane. Provides only Pitch control unless re-configured.
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 0,1,0,1,1

// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
node_attach = 0.0, 0.0, 0.0, 1.0, 0.0, 0.0

// --- standard part parameters ---
    mass = 0.04
    thermalMassModifier = 8.0
    // heatConductivity = 0.06 // half default
    emissiveConstant = 0.95
    dragModelType = none
    maximum_drag = 0.02
    minimum_drag = 0.02
    angularDrag = 2
    crashTolerance = 15
    maxTemp = 2400
    explosionPotential = 0.1
    bulkheadProfiles = srf
    CoLOffset = -0.8, -.3, 0
    CoPOffset = -0.8, -.3, 0    

    MODULE
    {
        name = ModuleLiftingSurface
        useInternalDragModel = True
        deflectionLiftCoeff = 0.375
        dragAtMaxAoA = 0.2
        dragAtMinAoA = 0.0
    }    
    
    MODULE
    {
        name = ModuleControlSurface
        useInternalDragModel = True
        dragCoeff = 0.25
        deflectionLiftCoeff = 0.18
        ctrlSurfaceRange = 25
        ctrlSurfaceArea = 1.0
        actuatorSpeed = 120
        transformName = ctrlSurface
    }
MODULE
 {
    name = FStextureSwitch
    moduleID = 0    
    //showListButton = True
    //switchableInFlight = True        
    textures
    {
        name = Firespitter/Assets/Biplane_01_WHITE
        name = Firespitter/Assets/Biplane_01_GREEN
        name = Firespitter/Assets/Biplane_01_RED
        name = Firespitter/Assets/Biplane_01
    }
    objects
    {
        name = Elevator
        name = ctrlSurface
    }    
}
}

The lines in my patch for this specific part

Spoiler

@Part[FS_BiplaneElevator]
{
    %MODULE[FStextureSwitch]:NEEDS[Firespitter]
    {
        moduleID = 0    
        //showListButton = True
        //switchableInFlight = True    
        textures
        {
            name = Firespitter/Assets/Biplane_01_WHITE
            name = Firespitter/Assets/Biplane_01_GREEN
            name = Firespitter/Assets/Biplane_01_RED
            name = Firespitter/Assets/Biplane_01
            name = FirespitterExtended/Assets/skins/Biplane_01_FRENCH
            name = FirespitterExtended/Assets/skins/Biplane_01_JERRY
            name = FirespitterExtended/Assets/skins/Biplane_01_CAMO
        }
        objects
        {
            name = Elevator
            name = ctrlSurface    
        }
    }
}

I've checked both the KSP logs and MM logs. The KSP logs show no errors or anything, neither do the logs from MM. However, by looking at the logs from MM, it seems like MM is ignoring my patch for some reason.

Any help would be greatly appreciated! :)

Share this post


Link to post
Share on other sites
51 minutes ago, UltimateFlash15 said:

Right now I'm trying to make a patch that applies extra textures to the FStextureSwitch module for certain parts. I'll list one of them as an example.

Part .cfg

  Hide contents

PART
{

// --- general parameters ---
name = FS_BiplaneElevator
module = Part
author = Snjo

// --- asset parameters ---
rescaleFactor = 1

MODEL
{
   model = Firespitter/Assets/FS_BiplaneElevator
}

// --- editor parameters ---
TechRequired = start
cost = 1000
entryCost = 2000
category = Aero
subcategory = 0
title = FS4E Biplane Elevator (special aero)
manufacturer = Bitesized Industries
description = A tail elevator from an old Biplane. Provides only Pitch control unless re-configured.
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 0,1,0,1,1

// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
node_attach = 0.0, 0.0, 0.0, 1.0, 0.0, 0.0

// --- standard part parameters ---
    mass = 0.04
    thermalMassModifier = 8.0
    // heatConductivity = 0.06 // half default
    emissiveConstant = 0.95
    dragModelType = none
    maximum_drag = 0.02
    minimum_drag = 0.02
    angularDrag = 2
    crashTolerance = 15
    maxTemp = 2400
    explosionPotential = 0.1
    bulkheadProfiles = srf
    CoLOffset = -0.8, -.3, 0
    CoPOffset = -0.8, -.3, 0    

    MODULE
    {
        name = ModuleLiftingSurface
        useInternalDragModel = True
        deflectionLiftCoeff = 0.375
        dragAtMaxAoA = 0.2
        dragAtMinAoA = 0.0
    }    
    
    MODULE
    {
        name = ModuleControlSurface
        useInternalDragModel = True
        dragCoeff = 0.25
        deflectionLiftCoeff = 0.18
        ctrlSurfaceRange = 25
        ctrlSurfaceArea = 1.0
        actuatorSpeed = 120
        transformName = ctrlSurface
    }
MODULE
 {
    name = FStextureSwitch
    moduleID = 0    
    //showListButton = True
    //switchableInFlight = True        
    textures
    {
        name = Firespitter/Assets/Biplane_01_WHITE
        name = Firespitter/Assets/Biplane_01_GREEN
        name = Firespitter/Assets/Biplane_01_RED
        name = Firespitter/Assets/Biplane_01
    }
    objects
    {
        name = Elevator
        name = ctrlSurface
    }    
}
}

The lines in my patch for this specific part

  Hide contents

@Part[FS_BiplaneElevator]
{
    %MODULE[FStextureSwitch]:NEEDS[Firespitter]
    {
        moduleID = 0    
        //showListButton = True
        //switchableInFlight = True    
        textures
        {
            name = Firespitter/Assets/Biplane_01_WHITE
            name = Firespitter/Assets/Biplane_01_GREEN
            name = Firespitter/Assets/Biplane_01_RED
            name = Firespitter/Assets/Biplane_01
            name = FirespitterExtended/Assets/skins/Biplane_01_FRENCH
            name = FirespitterExtended/Assets/skins/Biplane_01_JERRY
            name = FirespitterExtended/Assets/skins/Biplane_01_CAMO
        }
        objects
        {
            name = Elevator
            name = ctrlSurface    
        }
    }
}

I've checked both the KSP logs and MM logs. The KSP logs show no errors or anything, neither do the logs from MM. However, by looking at the logs from MM, it seems like MM is ignoring my patch for some reason.

Any help would be greatly appreciated! :)

Well your main problem is PART vs Part (it's case sensitive)

But I'm having trouble figuring out what you want the patch to do, if the module exists you'll end up with duplicate moduleID, textures {} and objects {} ... looking at the differences, maybe you want something more like this?

Spoiler

@Part[FS_BiplaneElevator]
{
    @MODULE[FStextureSwitch]
    {
        @textures
        {
            name = Firespitter/Assets/Biplane_01_WHITE
            name = Firespitter/Assets/Biplane_01_GREEN
            name = Firespitter/Assets/Biplane_01_RED
            name = Firespitter/Assets/Biplane_01
        }
    }
}

 

Share this post


Link to post
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.