Jump to content

[QUESTION] To anyone familiar with ModuleRCSFX API


Recommended Posts

I've been reading through the ModuleRCSFX thread but couldn't figure out how to implement sounds for all my RCS parts.

I compiled a .cfg file from different posts, would you anyone tell me please where I made a mistake:

@PART

[*]:HAS[@MODULE[ModuleRCS]]

{

MODULE[ModuleRCSFX]

{

runningEffectName = running

engageEfffectName = engage

flameoutEffectName = flameout

EFFECTS

{

running

{

AUDIO

{

channel = Ship

clip = Squad/Sounds/sound_rocket_mini

volume = 0.0 0.0

volume = 1.0 1.0

pitch = 0.5 0.8

pitch = 1.2 1.4

loop = true

}

MODEL_MULTI_PARTICLE

{

modelName = Squad/FX/LES_Thruster

transformName = thrustTransform

emission = 0.0 0.0

emission = 0.01 0.3

emission = 0.075 1

emission = 1.0 2

speed = 0.0 0.5

speed = 1.0 1.0

}

}

engage

{

AUDIO

{

channel = Ship

clip = sound_vent_soft

volume = 3.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 = 0.5

pitch = 2.0

loop = false

}

}

}

}

}

Link to comment
Share on other sites

EFFECTS needs to be at the same level as MODULE, i.e.

EFFECTS {}

MODULE {}

You have it inside the MODULE which means KSP won't see it.

Also, you want @MODULE[Foo]

@ tells MM to modify a node where its name = whatever's in []

But if the part doesn't already have a MODULE { name = ModuleRCSFX } node then it won't do anything. Did you maybe mean this?

@MODULE[ModuleRCS]

{

@name = ModuleRCSFX

// and then the effect names

}

That will change a ModuleRCS to a ModuleRCSFX.

Link to comment
Share on other sites

Thank you Nathan, I tried to correct mistakes according to your instructions.

@PART

[*]:HAS[@MODULE[ModuleRCS]]

{

@MODULE[ModuleRCS]

{

@name = ModuleRCSFX

runningEffectName = running

engageEfffectName = engage

flameoutEffectName = flameout

}

EFFECTS

{

running

{

AUDIO

{

channel = Ship

clip = Squad/Sounds/sound_rocket_mini

volume = 0.0 0.0

volume = 1.0 1.0

pitch = 0.5 0.8

pitch = 1.2 1.4

loop = true

}

MODEL_MULTI_PARTICLE

{

modelName = Squad/FX/LES_Thruster

transformName = thrustTransform

emission = 0.0 0.0

emission = 0.01 0.3

emission = 0.075 1

emission = 1.0 2

speed = 0.0 0.5

speed = 1.0 1.0

}

}

engage

{

AUDIO

{

channel = Ship

clip = sound_vent_soft

volume = 3.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 = 0.5

pitch = 2.0

loop = false

}

}

}

}

It produced these results: https://www.dropbox.com/s/lfofeenktlank1s/ModuleManagerConfigCache.rar?dl=0

But no RCS sounds yet.

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