Jump to content

Engine glow animation isn't working


Recommended Posts

I have a small problem.  I'm working on updating an engine, and it all works, except for the engine glow (engine bells glowing from heat).

The original configs referenced the animation "engine_glow", but that isn't working, no matter what I've tried, the engine glows all the time.

Can anyone take a look at this and tell me what I'm missing?  The module in question is the "FXModuleAnimateThrottle" 

When I put back the original code (see below), the engine doesn't glow at all:

MODULE
{
      name = ModuleAnimateHeat
      ThermalAnim = engine_glow
}

https://www.dropbox.com/s/f9idatb8axk7e7w/problemEngine.zip?dl=0

The fact that the old code kept the engine from glowing indicates that the name is correct, and that there might be something wrong with the model.

Thanks

Edited by linuxgurugamer
Link to comment
Share on other sites

@linuxgurugamer - Here is the part config from the V4 engine block in Outlaw Racing Inc (unreleased) .... I'm sure you'll see what you need in it

Spoiler

PART
{
name = OR_ENGINEv4
module = Part
author = Spanner

MODEL
{
    model = ORinc/Parts/ORIENGINEv4
    scale = 1.0, 1, 1
}
rescaleFactor = 1

node_attach = .00, 0, 0, 0, 0, -1, 0
    NODE
{
name = Node1
transform = Node1
size = 0
method = FIXED_JOINT
}
NODE
{
name = Node2
transform = Node2
size = 0
method = FIXED_JOINT
}
TechRequired = start
entryCost = 13500
cost = 4500
category = none
subcategory = 0
title = V4 Basix Engine Block
manufacturer = Outlaw Racing Inc
description = The V4 Basix Engine Block uses Liquid Fuel and Intake Air to create Torque for the wheels
attachRules = 1,1,1,1,1

// --- standard part parameters ---
mass = 0.24
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 7
maxTemp = 2000 // = 3000
bulkheadProfiles = srf
tags = engine
    MODULE
    {
        name = MultiModeEngine
        primaryEngineID = Normal
        secondaryEngineID = SuperCharged
        carryOverThrottle = True
        autoSwitchAvailable = True
        primaryEngineModeDisplayName = Normal
        secondaryEngineModeDisplayName = Super Charged
    }
    MODULE
    {
        name = ModuleEnginesFX
        engineID = Normal
        thrustVectorTransformName = thrustTransform
        exhaustDamage = False
        ignitionThreshold = 0.1
        minThrust = 0
        maxThrust = 0.01
        heatProduction = 25
        useEngineResponseTime = True
        engineAccelerationSpeed = 0.5
        engineDecelerationSpeed = 0.5
        useVelocityCurve = False
        flameoutEffectName = flameout
        powerEffectName = power_dry
        //runningEffectName = running_thrust
        engageEffectName = engage
        disengageEffectName = disengage
        spoolEffectName = running_dry
        engineSpoolIdle = 0.05
        engineSpoolTime = 2.0
        EngineType = Turbine
        exhaustDamageMultiplier = 5
        clampPropReceived = True
        PROPELLANT
        {
            name = IntakeAir
            ignoreForIsp = True
            ratio = 1
        }
        PROPELLANT
        {
            name = LiquidFuel
            resourceFlowMode = ALL_VESSEL
            ratio = 0.5
            DrawGauge = True
        }
        atmosphereCurve
        {
            key = 0 9000 0 0
        }
        // Jet params
        atmChangeFlow = True
        useVelCurve = True
        useAtmCurve = True
        flowMultCap = 1.1
        machLimit = 1.75
        machHeatMult = 20.0
        velCurve
        {
            key = 0 1 0 0
            key = 0.35 0.932 0 0
            key = 1 1.13 0.4510796 0.4510796
            key = 1.75 1.5 0 0
            key = 2 1.38 -1.126258 -1.126258
            key = 2.5 0 0 0
        }
        atmCurve
        {
            key = 0 0 1.069445 0.7244952
            key = 0.072 0.08 1.472049 1.472049
            key = 0.17 0.21 1.227685 1.227685
            key = 0.34 0.39 1.01426 1.01426
            key = 1 1 0.969697 0.969697
        }
    }
    MODULE
    {
        name = ModuleEnginesFX
        engineID = SuperCharged
        thrustVectorTransformName = thrustTransform
        exhaustDamage = False
        ignitionThreshold = 0.1
        minThrust = 0
        maxThrust = 0.01
        heatProduction = 100
        useEngineResponseTime = True
        engineAccelerationSpeed = 0.8
        engineDecelerationSpeed = 0.8
        useVelocityCurve = False
        flameoutEffectName = flameout
        //powerEffectName = running_wet
        runningEffectName = power_wet
        engageEffectName = engageSC
        disengageEffectName = disengageSC
        spoolEffectName = running_wet
        engineSpoolIdle = 0.05
        engineSpoolTime = 3.0
        EngineType = Turbine
        exhaustDamageMultiplier = 20
        clampPropReceived = True
        PROPELLANT
        {
            name = IntakeAir
            ignoreForIsp = True
            ratio = 2
        }
        PROPELLANT
        {
            name = AirPressure
            resourceFlowMode = ALL_VESSEL
            ratio = 1
            DrawGauge = True
        }
        atmosphereCurve
        {
            key = 0 4000 0 0
        }
        // Jet params
        atmChangeFlow = True
        useVelCurve = True
        useAtmCurve = True
        flowMultCap = 1.1
        machLimit = 1.75
        machHeatMult = 20.0

        velCurve
        {
            key = 0 1 0 0
            key = 0.18 0.97 0 0
            key = 0.43 1 0.202683 0.202683
            key = 1 1.42 1.280302 1.280302
            key = 2.5 3.63 0 0
            key = 3 0.58 -2.708558 -2.708558
            key = 3.35 0 -0.6150925 0
        }
        atmCurve
        {
            // less linear because AB has a big ram effect at high speed at high alt.
            key = 0 0 1.666667 1.666667
            key = 0.07066164 0.1397133 1.961396 1.961396
            key = 0.34 0.56 1.084002 1.084002
            key = 1 1 0.5302638 0.5302638
        }
    }

    MODULE
    {
        name = FXModuleAnimateThrottle
        animationName = ORIv4glo
        responseSpeed = 0.01
        layer = 1
        dependOnEngineState = True
        dependOnThrottle = True
        engineName = Normal
        weightOnOperational = True
    }
    MODULE
    {
        name = FXModuleAnimateThrottle
        animationName = ORIv4glo
        responseSpeed = 0.08
        layer = 2
        dependOnEngineState = True
        dependOnThrottle = True
        engineName = SuperCharged
        weightOnOperational = True
    }
    MODULE
    {
        name = FXModuleAnimateThrottle
        animationName = ORIv4glo
        responseSpeed = 0.2
        layer = 3
        dependOnEngineState = True
        engineName = SuperCharged
    }
    MODULE
    {
        name = ModuleAlternator
        engineName = SuperCharged
        outputName = V4 Super Charged
        RESOURCE
        {
            name = Torque
            rate = 13
        }
    }
    MODULE
    {
        name = ModuleAlternator
        engineName = SuperCharged
        outputName = V4 Super Charged
        RESOURCE
        {
            name = ElectricCharge
            rate = 1
        }
    }
    MODULE
    {
        name = ModuleAlternator
        engineName = Normal
        outputName = V4 Normal
        RESOURCE
        {
            name = Torque
            rate = 10
        }
    }
    MODULE
    {
        name = ModuleAlternator
        engineName = Normal
        outputName = V4 Normal
        RESOURCE
        {
            name = ElectricCharge
            rate = 1
        }
    }
    MODULE
    {
        name = ModuleSurfaceFX
        thrustProviderModuleIndex = 1
        fxMax = 0.6
        maxDistance = 25
        falloff = 2
        thrustTransformName = thrustTransform
    }
    MODULE
    {
        name = ModuleSurfaceFX
        thrustProviderModuleIndex = 2
        fxMax = 0.6
        maxDistance = 25
        falloff = 2
        thrustTransformName = thrustTransform
    }
    MODULE
    {
        name = ModuleTestSubject
        environments = 15
        useStaging = False
        useEvent = True
    }
    EFFECTS
    {        

        running_dry
        {
            PREFAB_PARTICLE
            {
                prefabName = fx_smokeTrail_light
                transformName = thrustTransform
                emission = 0.0 0.0
                emission = 0.05 0.0
                emission = 0.075 0.25
                emission = 1.0 1.25
                speed = 0.0 0.25
                speed = 1.0 1.0
                localOffset = 0, 0, 1
                localRotation = 1, 0, 0, -90
            }
            AUDIO
            {
                channel = Ship
                clip = ORinc/Sounds/sound_v8idle
                volume = 0.0 0.0
                volume = 0.05 0.9
                volume = 1.0 1.0
                pitch = 0.0 0.5
                pitch = 0.05 0.6
                pitch = 0.33 1.0
                pitch = 1.0 3.0
                loop = true
            }
        }

        power_dry
        {
            AUDIO
            {
                channel = Ship
                clip = ORinc/Sounds/sound_v8idle
                volume = 0.0 0.0
                volume = 0.05 0.4
                volume = 1.0 0.9
                pitch = 0.0 0.8
                pitch = 1.0 1.4
                loop = true
            }
        }
        running_wet
        {
            PREFAB_PARTICLE
            {
                prefabName = fx_smokeTrail_light
                transformName = thrustTransform
                emission = 0.0 0.0
                emission = 0.05 0.0
                emission = 0.075 0.5
                emission = 1.0 1.25
                speed = 0.0 0.25
                speed = 1.0 1.0
                localOffset = 0, 0, 1
                localRotation = 1, 0, 0, -90
            }
            AUDIO
            {
                channel = Ship
                clip = ORinc/Sounds/sound_v8idle
                volume = 0.0 0.0
                volume = 0.05 0.9
                volume = 1.0 1.0
                pitch = 0.0 0.5
                pitch = 0.05 0.6
                pitch = 0.33 1.0
                pitch = 1.0 2
                loop = true
            }
        }
        power_wet
        {

            AUDIO
            {
                channel = Ship
                clip = ORinc/Sounds/sound_turbine
                volume = 0.0 0.0
                volume = 0.1 0.1
                volume = 1.0 0.3
                pitch = 0.0 0.2
                pitch = 0.33 0.4
                pitch = 1.0 1.0
                loop = true
            }
            MODEL_MULTI_PARTICLE
            {
                modelName = Squad/FX/shockExhaust_red_small
                transformName = thrustTransform
                emission = 0.0 0.0
                emission = 0.05 0.05
                emission = 0.33 0.1
                emission = 1.0 1.0
                speed = 0.0 0.0
                speed = 0.05 0.05
                speed = 0.33 0.16
                speed = 1.0 1.0
                energy = 0.0 1.5
                energy = 0.33 1.0
                energy = 1.0 1.0
            }
        }
        engage
        {
            AUDIO
            {
                channel = Ship
                clip = ORinc/Sounds/sound_v8start
                volume = 1.0
                pitch = 2.0
                loop = false
            }
        }
        engageSC
        {
            AUDIO
            {
                channel = Ship
                clip = ORinc/Sounds/sound_turbinestart
                volume = 0.3
                pitch = 0.5
                loop = false
            }
        }
        disengage
        {
            AUDIO
            {
                channel = Ship
                clip = ORinc/Sounds/sound_v8stop
                volume = 1.0
                pitch = 2.0
                loop = false
            }
        }
        disengageSC
        {
            AUDIO
            {
                channel = Ship
                clip = ORinc/Sounds/sound_turbinestop
                volume = 0.3
                pitch = 1.0
                loop = false
            }
        }
        flameout
        {
            PREFAB_PARTICLE
            {
                prefabName = fx_exhaustSparks_flameout_2
                transformName = thrustTransform
                oneShot = true
            }
            AUDIO
            {
                channel = Ship
                clip = ORinc/Sounds/bb_fire
                volume = 1.0
                pitch = 2.0
                loop = false
            }
        }
    }
}

And this is a video of the engine in action ... pipes glow slightly redish during normal operation and when the supercharger is engaged the pipes glow a yellowish white

 

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