Jump to content

ModuleSurfaceFX not working


Recommended Posts

How do I edit the ModuleSurfaceFX thing in the CFG file so that smoke shoots out of the launch pad when I ignite the engines

I'm using the Chaka Monkey exploration odyssey v1.0.5
 

So far I got the SLS SRB to work, and its code looks like this:

PART
{
name = XSLSSRB
module = Part
author = BobCat

mesh = model.mu


MODEL
{
  model = CMES/Propulsion/AMCS_SRB/model
  scale = 1.2235, 1.208, 1.2235
}

scale = 1
rescaleFactor = 1

node_stack_top = 0.0, 2.258, 0.0, 0.0, 1.0, 0.0, 2
//node_stack_bottom = 0.0, -22.23, 0.0, 0.0, -1.0, 0.0, 3
node_attach = 0.0, 0.0, 1.4952, 0.0, 0.0, -1.0

CoMOffset = 0.0, -10.0, 0.0

// --- FX definitions ---

fx_exhaustFlame_yellow = 0.0, -11.2673, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustSparks_yellow = 0.0, -11.2673, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustLight_yellow = 0.0, -11.2673, 0.0, 0.0, 0.0, 1.0, running
fx_smokeTrail_medium = 0.0, -11.2673, 0.0, 0.0, 1.0, 0.0, running





sound_rocket_hard = running
sound_vent_soft = disengage
sound_explosion_low = flameout


TechRequired = veryHeavyRocketry
entryCost = 40000
cost = 13900
category = Propulsion
subcategory = 0
title = CHAKA / SRB for SLS
manufacturer = CHAKA / BobCat ind 
description = 

attachRules = 1,1,1,1,0

mass = 15
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.3
angularDrag = 2
crashTolerance = 200
breakingForce = 90000
breakingTorque = 90000
maxTemp = 2900

stagingIcon = SOLID_BOOSTER

	 
MODULE
{
	name = ModuleEngines
	thrustVectorTransformName = thrustTransform
	throttleLocked = True
	exhaustDamage = True
	ignitionThreshold = 0.1
	minThrust = 0
	maxThrust = 4500
	heatProduction = 200
	useEngineResponseTime = True
	engineAccelerationSpeed = 25.0
	allowShutdown = False
	fxOffset = 0, 0, 1.7
	PROPELLANT
	{
		name = SolidFuel
        ratio = 1.0
		DrawGauge = True
	}
	atmosphereCurve
 	{
   	 key = 0 220
  	 key = 1 200
 	}
	
}

MODULE
{
name = ModuleSurfaceFX
thrustProviderModuleIndex = 0
fxMax = 1
maxDistance = 150
falloff = 0.8
thrustTransformName = thrustTransform
}

RESOURCE
{
 name = SolidFuel
 amount = 20000
 maxAmount = 20000
}
MODULE
{
	name = ModuleReactionWheel
	
	PitchTorque = 550
	YawTorque = 550
	RollTorque = 150
	
	RESOURCE
	{
		name = ElectricCharge
		rate = 0.1
	}
}
	MODULE
	{
		name = ModuleSAS
	}

}
}

On the other hand, when I add the same ModuleSurfaceFX to the RS68 engine, no smoke comes out of the rocket when the engines ignite. The RS68 code is posted below:

PART
{
// Kerbal Space Program - Part Config
// RS-68B
// 

// --- general parameters ---
name = xbahars68bx
module = Part
author = BahamutoD

// --- asset parameters ---
mesh = model.mu
rescaleFactor = 0.7



// --- node definitions ---
node_stack_top = 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 3
node_stack_bottom = 0.0, -2.5873, 0, 0, -1, 0, 3
node_attach = 0.0, 2.6152, 0.0, 0.0, 1.0, 0.0, 3



// --- FX definitions ---

 

fx_exhaustFlame_blue = 0.0, -5.74338, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustLight_blue = 0.0, -5.74338, 0.0, 0.0, 0.0, 1.0, running
fx_smokeTrail_light  = 0.0, -5.74338, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustFlame_yellow_tiny = 0.0, -1.4, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustLight_yellow = 0.0, -1.4, 0.0, 0.0, 1.0, 0.0, running


fx_exhaustFlame_blue = 0.0, -3.4, 0.0, 0.0, 1.0, 0.0, running
fx_smokeTrail_light = 0.0, -3.4, 0.0, 0.0, 1.0, 0.0, running
 

// --- Sound FX definition ---

sound_vent_hard = engage
sound_rocket_hard = running
sound_vent_hard = disengage
sound_explosion_low = flameout

// --- editor parameters ---
TechRequired = generalRocketry
entryCost = 2100
cost = 950
category = Propulsion
subcategory = 0
title = Chaka / RS-68C
manufacturer = Chaka / BDynamics
description = For EMLV Core Stage 

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,1,1,0,0

// --- standard part parameters ---
mass = 6
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 7000
maxTemp = 9600
breakingForce = 29840
breakingTorque = 29840

	MODULE
	{
		name = ModuleSurfaceFX
		thrustProviderModuleIndex = 0
		fxMax = 1
		maxDistance = 100
		falloff = 2
		thrustTransformName = thrustTransform              
	}
MODULE
{
	name = ModuleEngines
	thrustVectorTransformName = thrustTransform
	exhaustDamage = True
	ignitionThreshold = 0.1
	minThrust = 0
	maxThrust = 2600
	heatProduction = 400
	fxOffset = 0, 0, 0
	PROPELLANT
	{
		name = LiquidFuel
        ratio = 0.9
		DrawGauge = True
	}
	PROPELLANT
	{
		name = Oxidizer
		ratio = 1.1
	}
	atmosphereCurve
 	{
		key = 0 300
		key = 1 200
 	}
	
}

MODULE
    {
        name = ModuleEngineConfigs
        origMass = 6.7
        techLevel = 6
        origTechLevel = 6
        maxTechLevel = 6
        engineType = L
        configuration = LqdHydrogen+LqdOxygen
        modded = false
        CONFIG
        {
            name = LqdHydrogen+LqdOxygen
            maxThrust = 2600
            minThrust = 0
            PROPELLANT
            {
                name = LqdHydrogen
                ratio = 0.729
                DrawGauge = true
            }
            PROPELLANT
            {
                name = LqdOxygen
                ratio = 0.271
            }
            IspSL = 1.0
            IspV = 1.0
            throttle = 0.57
            TECHLEVEL
            {
                name = 6
                atmosphereCurve
                {
                    key = 0 300
                    key = 1 200
                }
                techRequired = veryHeavyRocketry
                thrustMultiplier = 1.0
                massMultiplier = 1.0
                minThrottleMultiplier = 1.0
            }
        }
}


MODULE
{
	name = ModuleGimbal
	gimbalTransformName = thrustTransform
	gimbalRange = 0.75
}


MODULE
{
      name = ModuleAnimateHeat
      ThermalAnim = emissiveHeat
}

MODULE
{
	name = ModuleAlternator	
	RESOURCE
	{
		name = ElectricCharge
		rate = 6.0
	}
}
RESOURCE
{
	name = ElectricCharge
	amount = 0
	maxAmount = 0
  	isTweakable = false
	hideFlow = true
}
MODULE
{
name = ModuleSurfaceFX
thrustProviderModuleIndex = 0
fxMax = 1
maxDistance = 200
falloff = 2
thrustTransformName = thrustTransform
}
}

Any help would be appreciated, thanks

Link to comment
Share on other sites

the configs look good to me....could just be a misplaced bracket.

MODULE
{
    name = ModuleSurfaceFX
    thrustProviderModuleIndex = 0
    fxMax = 1.2
    maxDistance = 150
    falloff = 1.5
    thrustTransformName = thrust
}

}

Edited by Arcturusvfx
addition
Link to comment
Share on other sites

Try this

PART
{
// Kerbal Space Program - Part Config
// RS-68B
// 

// --- general parameters ---
name = xbahars68bx
module = Part
author = BahamutoD

// --- asset parameters ---
mesh = model.mu
rescaleFactor = 0.7



// --- node definitions ---
node_stack_top = 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 3
node_stack_bottom = 0.0, -2.5873, 0, 0, -1, 0, 3
node_attach = 0.0, 2.6152, 0.0, 0.0, 1.0, 0.0, 3



// --- FX definitions ---

 

fx_exhaustFlame_blue = 0.0, -5.74338, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustLight_blue = 0.0, -5.74338, 0.0, 0.0, 0.0, 1.0, running
fx_smokeTrail_light  = 0.0, -5.74338, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustFlame_yellow_tiny = 0.0, -1.4, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustLight_yellow = 0.0, -1.4, 0.0, 0.0, 1.0, 0.0, running


fx_exhaustFlame_blue = 0.0, -3.4, 0.0, 0.0, 1.0, 0.0, running
fx_smokeTrail_light = 0.0, -3.4, 0.0, 0.0, 1.0, 0.0, running
 

// --- Sound FX definition ---

sound_vent_hard = engage
sound_rocket_hard = running
sound_vent_hard = disengage
sound_explosion_low = flameout

// --- editor parameters ---
TechRequired = generalRocketry
entryCost = 2100
cost = 950
category = Propulsion
subcategory = 0
title = Chaka / RS-68C
manufacturer = Chaka / BDynamics
description = For EMLV Core Stage 

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,1,1,0,0

// --- standard part parameters ---
mass = 6
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 7000
maxTemp = 9600
breakingForce = 29840
breakingTorque = 29840

MODULE
{
	name = ModuleEngines
	thrustVectorTransformName = thrustTransform
	exhaustDamage = True
	ignitionThreshold = 0.1
	minThrust = 0
	maxThrust = 2600
	heatProduction = 400
	fxOffset = 0, 0, 0
	PROPELLANT
	{
		name = LiquidFuel
        ratio = 0.9
		DrawGauge = True
	}
	PROPELLANT
	{
		name = Oxidizer
		ratio = 1.1
	}
	atmosphereCurve
 	{
		key = 0 300
		key = 1 200
 	}
	
}

MODULE
    {
        name = ModuleEngineConfigs
        origMass = 6.7
        techLevel = 6
        origTechLevel = 6
        maxTechLevel = 6
        engineType = L
        configuration = LqdHydrogen+LqdOxygen
        modded = false
        CONFIG
        {
            name = LqdHydrogen+LqdOxygen
            maxThrust = 2600
            minThrust = 0
            PROPELLANT
            {
                name = LqdHydrogen
                ratio = 0.729
                DrawGauge = true
            }
            PROPELLANT
            {
                name = LqdOxygen
                ratio = 0.271
            }
            IspSL = 1.0
            IspV = 1.0
            throttle = 0.57
            TECHLEVEL
            {
                name = 6
                atmosphereCurve
                {
                    key = 0 300
                    key = 1 200
                }
                techRequired = veryHeavyRocketry
                thrustMultiplier = 1.0
                massMultiplier = 1.0
                minThrottleMultiplier = 1.0
            }
        }
}


MODULE
{
	name = ModuleGimbal
	gimbalTransformName = thrustTransform
	gimbalRange = 0.75
}


//MODULE
//{
//      name = ModuleAnimateHeat
//      ThermalAnim = emissiveHeat
//}
MODULE
{
      name = FXModuleAnimateThrottle
      animationName = emissiveHeat
      responseSpeed = 0.001
      dependOnEngineState = True
      dependOnThrottle = True
}
MODULE
{
	name = ModuleAlternator	
	RESOURCE
	{
		name = ElectricCharge
		rate = 6.0
	}
}
RESOURCE
{
	name = ElectricCharge
	amount = 0
	maxAmount = 0
  	isTweakable = false
	hideFlow = true
}
	MODULE
	{
		name = ModuleSurfaceFX
		thrustProviderModuleIndex = 0
		fxMax = 1
		maxDistance = 80
		falloff = 2
		thrustTransformName = thrustTransform
	}
}

And

PART
{
// Kerbal Space Program - Part Config
// RS-68B
// 

// --- general parameters ---
name = xbahars68bxb
module = Part
author = BahamutoD

// --- asset parameters ---
mesh = model.mu
rescaleFactor = 0.7



// --- node definitions ---
node_stack_top = 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 3
node_stack_bottom = 0.0, -2.5873, 0, 0, -1, 0, 3
node_attach = 0.0, 2.6152, 0.0, 0.0, 1.0, 0.0, 3



// --- FX definitions ---



fx_exhaustFlame_blue = 0.0, -5.74338, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustLight_blue = 0.0, -5.74338, 0.0, 0.0, 0.0, 1.0, running
fx_smokeTrail_light  = 0.0, -5.74338, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustFlame_yellow_tiny = 0.0, -1.4, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustLight_yellow = 0.0, -1.4, 0.0, 0.0, 1.0, 0.0, running


fx_exhaustFlame_blue = 0.0, -3.4, 0.0, 0.0, 1.0, 0.0, running
fx_smokeTrail_light = 0.0, -3.4, 0.0, 0.0, 1.0, 0.0, running

// --- Sound FX definition ---

sound_vent_hard = engage
sound_rocket_hard = running
sound_vent_hard = disengage
sound_explosion_low = flameout


// --- editor parameters ---
TechRequired = generalRocketry
entryCost = 2100
cost = 950
category = Propulsion
subcategory = 0
title = Chaka / RS-68 BOOSTER
manufacturer = Chaka / BDynamics
description = For EMLV III Booster

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,1,1,0,0

// --- standard part parameters ---
mass = 6
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 700
maxTemp = 9600
breakingForce = 29840
breakingTorque = 29840

MODULE
{
	name = ModuleEngines
	thrustVectorTransformName = thrustTransform
	exhaustDamage = True
	ignitionThreshold = 0.1
	minThrust = 0
	maxThrust = 3400
	heatProduction = 380
	fxOffset = 0, 0, 0
	PROPELLANT
	{
		name = LiquidFuel
        ratio = 0.9
		DrawGauge = True
	}
	PROPELLANT
	{
		name = Oxidizer
		ratio = 1.1
	}
	atmosphereCurve
 	{
		key = 0 300
		key = 1 200
 	}
	
}

MODULE
    {
        name = ModuleEngineConfigs
        origMass = 10
        techLevel = 6
        origTechLevel = 6
        maxTechLevel = 6
        engineType = L
        configuration = LqdHydrogen+LqdOxygen
        modded = false
        CONFIG
        {
            name = LqdHydrogen+LqdOxygen
            maxThrust = 3400
            minThrust = 0
            PROPELLANT
            {
                name = LqdHydrogen
                ratio = 0.729
                DrawGauge = true
            }
            PROPELLANT
            {
                name = LqdOxygen
                ratio = 0.271
            }
            IspSL = 1.0
            IspV = 1.0
            throttle = 0.57
            TECHLEVEL
            {
                name = 6
                atmosphereCurve
                {
                    key = 0 300
                    key = 1 200
                }
                techRequired = veryHeavyRocketry
                thrustMultiplier = 1.0
                massMultiplier = 1.0
                minThrottleMultiplier = 1.0
            }
        }
}


MODULE
{
	name = ModuleGimbal
	gimbalTransformName = thrustTransform
	gimbalRange = 0.75
}

//MODULE
//{
//      name = ModuleAnimateHeat
//      ThermalAnim = emissiveHeat
//}
	MODULE
	{
		name = FXModuleAnimateThrottle
		animationName = emissiveHeat
		responseSpeed = 0.001
		dependOnEngineState = True
		dependOnThrottle = True
	}
MODULE
{
	name = ModuleAlternator	
	RESOURCE
	{
		name = ElectricCharge
		rate = 6.0
	}
}
RESOURCE
{
	name = ElectricCharge
	amount = 0
	maxAmount = 0
  	isTweakable = false
	hideFlow = true
}
	MODULE
	{
		name = ModuleSurfaceFX
		thrustProviderModuleIndex = 0
		fxMax = 1
		maxDistance = 80
		falloff = 2
		thrustTransformName = thrustTransform
	}
}

 

Link to comment
Share on other sites

After looking at some stock cfg and not seeing why it wasn't working  lead me to think something was bugging it so has you can see

//MODULE                                 <--------------- Here I comet this out
//{
//      name = ModuleAnimateHeat
//      ThermalAnim = emissiveHeat    
//}
MODULE                                   <-------------  And changed it to this 
{
      name = FXModuleAnimateThrottle
      animationName = emissiveHeat
      responseSpeed = 0.001               <--------  Might need to play around with this #
      dependOnEngineState = True
      dependOnThrottle = True
}

To get the heat to show up on the engine

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