Bridge Commander Central

BC Forums => BC Scripting => Topic started by: AdmiralKathryn on November 29, 2006, 05:48:20 PM

Title: Adding Sound to Distress Call
Post by: AdmiralKathryn on November 29, 2006, 05:48:20 PM

 Hi Im not new here just never posted before, I am needing a little help with a small request (dont we all)

 I am wanting to add a sound  when using the distress call mod, I want the sound to play a couple pf seconds after the button is pressed and i have been trying to write the code for this. Its for my own personal use but my scripting skills are rusty and where never great to start with, any help is appreciated thanks for your time
Title: Re: Adding Sound to Distress Call
Post by: JimmyB76 on November 29, 2006, 06:33:49 PM
which mod?  and, if it is in wav format, you can easily edit it... 
Title: Re: Adding Sound to Distress Call
Post by: AdmiralKathryn on November 30, 2006, 02:19:12 PM


 Its the Distress Call mod by Defiant, It comes with either Km or BCS:TNG, the one that actually brings ships in to help you. My version doesnt play any sounds at the mo, was wanting to add a sound which is in wav format

thanks
Title: Re: Adding Sound to Distress Call
Post by: Mario on November 30, 2006, 02:53:50 PM
So let me see you want 5-10 sec delay?!

If so post the script and the sound and I'll do it in 2 mins lol
Title: Re: Adding Sound to Distress Call
Post by: AdmiralKathryn on November 30, 2006, 05:57:31 PM
I appreciate your quick responce and your offer  :D



   say a two sec delay that would be great thanks for your help!!!
i am not able to post the sound file but it is just called distress to replace one in the sfx main directory, if you need it i can email it to you later

thanks again

Title: Re: Adding Sound to Distress Call
Post by: Mario on November 30, 2006, 06:45:26 PM
I do need the sound file, or at least it's full filename, extension and path info. I have to 'tell' the script which sound to play, where to find it!
Title: Re: Adding Sound to Distress Call
Post by: JimmyB76 on November 30, 2006, 09:06:32 PM
if i'm not mistaken, it is included with KM, under sfx/Distress...
Title: Re: Adding Sound to Distress Call
Post by: AdmiralKathryn on December 01, 2006, 02:49:42 PM


  Thanks again for your help guys!

 This is the path of the file C:\Program Files\Activision\BridgeCommander\sfx

and i have included the file sound file as a .pyc, i changed the extension with irfanview. It plays fine if you just change it to wav again by renaming the file lol

 Thanks again everyone for you help   :D