Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: torc on September 18, 2011, 07:24:29 am

Title: SOLVED!Coder attention!: adding different engine sounds for player ship cockpit
Post by: torc on September 18, 2011, 07:24:29 am
Hi. as you know,Halleck did a patch that allows you to assign different sounds at the glide on/off.

http://www.hard-light.net/forums/index.php?topic=76592.msg1524429#msg1524429

Wanna know if is possible using his patch and modify it for the cockpit engine sound ,throttle position and afterburner.
Honestly,i need it for Diaspora,but i think this should be a great improvement for FS2 too.

thanks in advance for the help.
Title: Re: Feature request: adding different engine sounds for player ship cockpit
Post by: MetalDestroyer on September 18, 2011, 08:53:45 am
The same for Fly By sound.
Title: Re: Feature request: adding different engine sounds for player ship cockpit
Post by: torc on September 18, 2011, 09:00:12 am
what do you mean? flyby for ships or for guns?
Title: Re: Feature request: adding different engine sounds for player ship cockpit
Post by: Spoon on September 18, 2011, 09:21:21 am
You can't assign different flyby sounds for guns. (I know I've requested it a few times)
Title: Re: Feature request: adding different engine sounds for player ship cockpit
Post by: MetalDestroyer on September 18, 2011, 10:19:17 am
what do you mean? flyby for ships or for guns?

for ships. You can define Engine sound for ships but not the Fly By sound. or perhaps this features has been added in recent nightly ?

I know we can set FlyBy sound by added new species and so modify it in the sounds.tbl. But I don't want to add new species for just some ships.
Title: Re: Feature request: adding different engine sounds for player ship cockpit
Post by: torc on September 18, 2011, 10:37:35 am
exactly MetalDestroyer, you cannot...hope someone fix this issue. The FS2 sound engine really show his limits :(
Title: Re: Feature request: adding different engine sounds for player ship cockpit
Post by: Commander Zane on September 18, 2011, 01:51:57 pm
I thought Inferno R1 had different ship flyby sounds.
Title: Re: Feature request: adding different engine sounds for player ship cockpit
Post by: Dragon on September 18, 2011, 02:06:16 pm
Flyby sounds are currently assigned per species.
I (and other people in this thread) would like to see them assignable on a per-ship basis.
Same goes for cockpit engine sound, AB sound and all throttle sounds.
Flyby sound for primaries on a per-weapon basis is also something that has been requested a few times and would be great to have (for WoD, for example).
Title: Re: Feature request: adding different engine sounds for player ship cockpit
Post by: torc on September 18, 2011, 03:02:57 pm
well...let's hope Halleck patch is useful as a start point for the coders.
Title: Re: Feature request: adding different engine sounds for player ship cockpit
Post by: m!m on September 20, 2011, 02:40:14 am
I have a patch that adds customizable flyby sounds on a per-ship basis:
http://pastebin.com/mJK6j9s0 (http://pastebin.com/mJK6j9s0)
It works when I tested it but can a coder take a look at the patch?

Syntax is nearly the same as in sounds.tbl (http://www.hard-light.net/wiki/index.php/Sounds.tbl#Flyby_Sounds) minus the first argument and the "$FlybySnd" option comes after the "$GlideEndSnd" entry.
Title: Re: Feature request: adding different engine sounds for player ship cockpit
Post by: m!m on October 01, 2011, 09:25:45 am
I have a patch that adds the requested features. It has been tested by torc and seems to work.
Syntax:
Added options (parsed in the specified sequence):

Those options come after $GlideEndSnd and also have the same syntax as $GlideEndSnd

I attached the patch and here is a test build: http://www.mediafire.com/?3ij4hc3aqxow4mo (http://www.mediafire.com/?3ij4hc3aqxow4mo)

Can a coder please take a look at the patch?

[attachment deleted by ninja]
Title: Re: SOLVED!Coder attention!: adding different engine sounds for player ship cockpit
Post by: JGZinv on October 01, 2011, 02:05:57 pm
This was one of the things I was going to request for FringeSpace soon. 

 :yes: :yes: :yes:
Title: Re: SOLVED!Coder attention!: adding different engine sounds for player ship cockpit
Post by: The E on October 01, 2011, 02:15:22 pm
Committed in 7841.
Title: Re: SOLVED!Coder attention!: adding different engine sounds for player ship cockpit
Post by: MetalDestroyer on October 01, 2011, 02:22:00 pm
I have a patch that adds the requested features. It has been tested by torc and seems to work.
Syntax:
Added options (parsed in the specified sequence):
  • $CockpitEngineSnd
  • $FullThrottleSnd
  • $ZeroThrottleSnd
  • $ThrottleUpSnd
  • $ThrottleDownSnd
  • $AfterbrunerSnd
  • $AfterbrunerEngageSnd
  • $AfterbrunerFailedSnd

Those options come after $GlideEndSnd and also have the same syntax as $GlideEndSnd

I attached the patch and here is a test build: http://www.mediafire.com/?3ij4hc3aqxow4mo (http://www.mediafire.com/?3ij4hc3aqxow4mo)

Can a coder please take a look at the patch?

What about FlyBySnd ?
Title: Re: SOLVED!Coder attention!: adding different engine sounds for player ship cockpit
Post by: Reprobator on October 01, 2011, 03:17:35 pm
flyby inside your own cockpit? :p

Title: Re: SOLVED!Coder attention!: adding different engine sounds for player ship cockpit
Post by: Aardwolf on October 01, 2011, 06:45:05 pm
Uh...

I hope it doesn't say "Afterbruner" in the actual code?
Title: Re: SOLVED!Coder attention!: adding different engine sounds for player ship cockpit
Post by: torc on October 01, 2011, 06:59:34 pm
i suspect yes.... :lol:

I'll ask to M!m if he can fix that.
Title: Re: SOLVED!Coder attention!: adding different engine sounds for player ship cockpit
Post by: The E on October 02, 2011, 02:15:03 am
Uh...

I hope it doesn't say "Afterbruner" in the actual code?

Of course not.