Jump to content

My Mod Engine Has No Effect?!?


robot_rover

Recommended Posts

Hi, I've been working on this modded engine for a while now, and I finally got it into the game and finished the .cfg file. It loaded in the game and it works fine. It consumes fuel and electricity like it is supposed to, and it says its making 60kn of thrust, but the problem is it doesn't actually do anything (change the speed). It really annoyed me because I finally got this thing to work (my first mod) and KSP says its working but ITS NOT. If someone could help me find my error or even just tell me what could be causing this I would appreciate it.

Screenshot:

Spoiler

RqOGC7N.png

Config File:

PART
{
	name = PlasmaEngine
	module = Part
	author = robot_rover
	mesh = model.mu
	scale = 0.1
	node_stack_top = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1
	node_stack_bottom = 0.0, -1, 0.0, 0.0, -1.0, 0.0, 1
	sound_vent_medium = engage
	sound_rocket_hard = running
	sound_vent_soft = disengage
	sound_explosion_low = flameout
	TechRequired = ionPropulsion
	entryCost = 50000
	cost = 20000
	category = Engine
	subcategory = 0
	title = RR-7426 "Dusk" Plasmatic Propulsion Engine
	manufacturer = RR Industries Corp.
	description = Mod Testing, meaningful description to come.
	attachRules = 1,0,1,0,0
	mass = 0.5
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 7
	maxTemp = 2000 // = 3600
	bulkheadProfiles = size1
	MODULE
	{
		name = ModuleEngines
		//thrustVectorTransformName = thrustTransform
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 60
		heatProduction = 0
		fxOffset = 0, 0, 0.21
		EngineType = Electric
		PROPELLANT
		{
			name = ElectricCharge
			ratio = 1.5
			DrawGauge = True
		}
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.1
		}
		atmosphereCurve
		{
			key = 0 2000
			key = 1 100
			key = 3 0.1
		}
	}
	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = thrustTransform
		gimbalRange = 5
	}
	MODULE
	{
		name = ModuleTestSubject
		environments = 15
		useStaging = True
		useEvent = False
	}
}

 

Link to comment
Share on other sites

Well lol you just have sounds ? don't see any FX's in your cfg  not sure if it will work or how stock is using it but might try

PART
{
	name = PlasmaEngine
	module = Part
	author = robot_rover
	mesh = model.mu
	scale = 0.1
	node_stack_top = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1
	node_stack_bottom = 0.0, -1, 0.0, 0.0, -1.0, 0.0, 1
	sound_vent_medium = engage
	sound_rocket_hard = running
	sound_vent_soft = disengage
	sound_explosion_low = flameout
	TechRequired = ionPropulsion
	entryCost = 50000
	cost = 20000
	category = Engine
	subcategory = 0
	title = RR-7426 "Dusk" Plasmatic Propulsion Engine
	manufacturer = RR Industries Corp.
	description = Mod Testing, meaningful description to come.
	attachRules = 1,0,1,0,0
	mass = 0.5
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 7
	maxTemp = 2000 // = 3600
	bulkheadProfiles = size1
	MODULE
	{
		name = ModuleEngines
		thrustVectorTransformName = thrustTransform
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 60
		heatProduction = 0
		fxOffset = 0, 0, 0.21
		EngineType = Electric
		PROPELLANT
		{
			name = ElectricCharge
			ratio = 1.5
			DrawGauge = True
		}
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.1
		}
		atmosphereCurve
		{
			key = 0 2000
			key = 1 100
			key = 3 0.1
		}
	}
	MODULE
	{
		name = FXModuleAnimateThrottle
		animationName = colorAnimation
		dependOnEngineState = True
		responseSpeed = 0.5
		engineName = Ion
		dependOnThrottle = True
	}
	EFFECTS
	{		
		IonPlume
		{
			AUDIO
			{
				channel = Ship
				clip = sound_IonEngine
				volume = 0.0 0.0
				volume = 0.05 0.20
				volume = 1.0 0.25
				pitch = 0.0 0.2
				pitch = 1.0 0.8
				loop = true
			}
			MODEL_MULTI_PARTICLE
			{
				modelName = Squad/FX/IonPlume
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.25 0.5			
				emission = 1.0 1.0
				//speed = 0.0 0.0
				//speed = 1.0 1.0
			}
		}
	}
	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = thrustTransform
		gimbalRange = 5
	}
	MODULE
	{
		name = ModuleTestSubject
		environments = 15
		useStaging = True
		useEvent = False
	}
}

not sure where there animationName = colorAnimation is pointing to in there model, I missed the    name = ModuleEnginesFX

Edited by Mecripp2
Link to comment
Share on other sites

@robot_rover You have two problems here.

  • No effects

You didn't define any. You need lines like these (lifted from the LVT45):

    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_exhaustSparks_flameout = 0.0, -5.74338, 0.0, 0.0, 1.0, 0.0, flameout

Alternatively you can use the EFFECTS module, but it's a touch more complicated and requires ModuleEnginesFX

Spoiler

    EFFECTS
    {
        running_closed
        {
            AUDIO
            {
                channel = Ship
                clip = sound_rocket_hard
                volume = 0.0 0.0
                volume = 1.0 1.5
                pitch = 0.0 0.2
                pitch = 1.0 0.9
                loop = true
            }
            PREFAB_PARTICLE
            {
                prefabName = fx_smokeTrail_veryLarge
                transformName = smokepoint
                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
                localPosition = 0, 0, 5
                
            }
            MODEL_MULTI_PARTICLE
            {
                modelName = Squad/FX/ks25_Exhaust
                transformName = thrustTransform
                emission = 0.0 0.0
                emission = 0.05 0.0
                emission = 0.075 0.25
                emission = 1.0 1.0
                speed = 0.0 0.5
                speed = 1.0 1.2
                localPosition = 0, 0, 0.3
            }
        }
        engage
        {
            AUDIO
            {
                channel = Ship
                clip = sound_vent_soft
                volume = 1.0
                pitch = 2.0
                loop = false
            }
        }
        flameout
        {
            PREFAB_PARTICLE
            {
                prefabName = fx_exhaustSparks_flameout_2
                transformName = thrustTransform
                oneShot = true
            }
            AUDIO
            {
                channel = Ship
                clip = sound_explosion_low
                volume = 1.0
                pitch = 2.0
                loop = false
            }
        }
    }

  • No thrust produced

You set up the config to skip the thrustTransform definition which is necessary for the engine to provide any directional thrust. Without it, the game has no idea which way it's supposed to push. You need to change this:

//thrustVectorTransformName = thrustTransform

To this:

thrustVectorTransformName = thrustTransform

The // in the config tells the game to ignore that line.

Edited by Randazzo
Link to comment
Share on other sites

yeah i added the effects and un// the thrust transform but it still doesn't work

PART
{
	name = PlasmaEngine
	module = Part
	author = robot_rover
	mesh = model.mu
	scale = 0.1
	node_stack_top = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1
	node_stack_bottom = 0.0, -1, 0.0, 0.0, -1.0, 0.0, 1
	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_exhaustSparks_flameout = 0.0, -5.74338, 0.0, 0.0, 1.0, 0.0, flameout
	sound_vent_medium = engage
	sound_rocket_hard = running
	sound_vent_soft = disengage
	sound_explosion_low = flameout
	TechRequired = ionPropulsion
	entryCost = 50000
	cost = 20000
	category = Engine
	subcategory = 0
	title = RR-7426 "Dusk" Plasmatic Propulsion Engine
	manufacturer = RR Industries Corp.
	description = Mod Testing, meaningful description to come.
	attachRules = 1,0,1,0,0
	mass = 0.5
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 7
	maxTemp = 2000 // = 3600
	bulkheadProfiles = size1
	MODULE
	{
		name = ModuleEngines
		thrustVectorTransformName = thrustTransform
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 60
		heatProduction = 0
		fxOffset = 0, 0, 0.21
		EngineType = Electric
		PROPELLANT
		{
			name = ElectricCharge
			ratio = 1.5
			DrawGauge = True
		}
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.1
		}
		atmosphereCurve
		{
			key = 0 2000
			key = 1 100
			key = 3 0.1
		}
	}
	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = thrustTransform
		gimbalRange = 5
	}
	MODULE
	{
		name = ModuleTestSubject
		environments = 15
		useStaging = True
		useEvent = False
	}
}

 

Link to comment
Share on other sites

4 minutes ago, robot_rover said:

u can just make an empty game object in unity too right cuz that would be easier right now. Just point the empty object down and put it in the center.

I try not to fiddle with the model inside unity, but it should work in theory.

Link to comment
Share on other sites

@Randazzo thx for the steady support I had almost given up

@wasml Thank you so much I have been looking for the modding tutorials for months now I always thought they would be in a wiki or something I never thought to look in the forums.

Link to comment
Share on other sites

7 minutes ago, robot_rover said:

@Randazzo thx for the steady support I had almost given up

@wasml Thank you so much I have been looking for the modding tutorials for months now I always thought they would be in a wiki or something I never thought to look in the forums.

 

Quite welcome. Is it working now?

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