Author Topic: Bridge sounds  (Read 3408 times)

Freakydude

  • Guest
Bridge sounds
« on: November 09, 2008, 12:12:59 PM »
Hi everyone,

I was thinking of modding the SP version of my game and I came upon bridge sounds. Having the same red alert sound from the Galaxy for the Sovereign just doesn't seem right.

However, after looking through various scripts, I couldn't find the script that changes the bridge sounds ingame. Does anyone know where these are? I know that it is possible in KM but I don't know where to look.

Thanks.

Offline Kirk

  • Posts: 1438
  • Cookies: 139
    • My Released Mods
Re: Bridge sounds
« Reply #1 on: November 09, 2008, 12:30:10 PM »
BP Sounds, a part of BP Core, allows you to have different sounds for a bridge. In the bridge plugin, in scripts/Custom/Autoload, the sounds are defined.

Offline Technerd89

  • Posts: 175
  • Cookies: 2
Re: Bridge sounds
« Reply #2 on: November 09, 2008, 01:32:41 PM »
ofcourse if a more simple method is required, you could simply rename, copy, and paste.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Bridge sounds
« Reply #3 on: November 09, 2008, 01:37:49 PM »
ofcourse if a more simple method is required, you could simply rename, copy, and paste.
Not if the scripts refer to the same sound file. ;)
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Freakydude

  • Guest
Re: Bridge sounds
« Reply #4 on: November 09, 2008, 01:41:20 PM »
Awesome, thanks.  :D

Edit: Looks like I found another way to do it. Since I'm modding the SP version of the bridge, it doesn't look I can use the QB bridges.

There's a line in the SovereignBridge.py script in the Bridges directory. I added another line in the LoadSounds() function to replace the default red alert sound and that seems to work. However, it also means I have to change the other bridges in that directory to use a different red alert sound or it will just keep using the Sovereign red alert. But it's not a big deal. I only have 4 bridges so far and SP only uses two bridges.  8)

Offline Kirk

  • Posts: 1438
  • Cookies: 139
    • My Released Mods
Re: Bridge sounds
« Reply #5 on: November 09, 2008, 04:11:36 PM »
The stock SP and QB bridges are the same thing.

Freakydude

  • Guest
Re: Bridge sounds
« Reply #6 on: November 09, 2008, 04:21:43 PM »
Heh yeah, I found that out just now and I smacked myself upside the head a few times when I also realized there was also an UnloadSounds() function right below LoadSounds().

Soooo, I simply reset the the red alert sound in this function to the default sound so everything goes back to normal once I load a new bridge. I'm not sure where UnloadSounds() is called but when I switched between my Sovereign, Galaxy, and Excelsior bridge (which I also have a new sound file for now), everything ran smoothly.

So I guess I don't have to waste my time changing all the other *bridge.py files.  8)

Right now, I only have to change the Sovereign and Excelsior bridge scripts, while keeping the Galaxy script untouched since it already uses the default sound. This works out for the best.  :)

Thanks guys!

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Bridge sounds
« Reply #7 on: November 09, 2008, 05:47:14 PM »
that is the oldschool way of doing it, directly in the bridge's script itself  :)

now that we have BP Core, you can do it a little easier...
for example (assuming you have KM1 installed) go to scripts\custom\autoload folder, you'll see bridge plugins there...
using the Enterprise-A bridge as an example, open the EnterpriseAbridge script and youll see a section

Code: [Select]
"bridgeSound": {
"LiftDoor": {"volume": 1.0,"file": "sfx/EnterpriseA/TMP-door.wav", "group": "BridgeGeneric"},
"AmbBridge": {"volume": 0.3,"file": "sfx/EnterpriseA/TMP-ambient.wav", "group": "BridgeGeneric"},
"RedAlertSound": {"volume": 1.0,"file": "sfx/EnterpriseA/TMP-redalert.wav", "group": "BridgeGeneric"},
"YellowAlertSound": {"volume": 1.0,"file": "sfx/EnterpriseA/TMP-yellowalert.wav", "group": "BridgeGeneric"},
"ViewOn": {"volume": 1.0,"file": "sfx/EnterpriseA/TMP-hail.wav", "group": "BridgeGeneric"},
"ViewOff": {"volume": 1.0,"file": "sfx/EnterpriseA/TMP-hail.wav", "group": "BridgeGeneric"}},

Freakydude

  • Guest
Re: Bridge sounds
« Reply #8 on: November 09, 2008, 07:31:04 PM »
Yeah, I had KM 1.0 installed on my old computer. I think I'll move it over to the new one as well since there's a much bigger choice of bridges in that one. Right now, I'm only modding a hybrid of Supermod and my own mod.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Bridge sounds
« Reply #9 on: November 10, 2008, 11:09:09 AM »
Yeah, I had KM 1.0 installed on my old computer. I think I'll port it over to the new one as well since there's a much bigger choice of bridges in that one. Right now, I'm only modding a hybrid of Supermod and my own mod.
Why would it require porting?
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Freakydude

  • Guest
Re: Bridge sounds
« Reply #10 on: November 10, 2008, 09:16:47 PM »
Heh, wrong choice of words. I should "move" it over to the new one. My old computer's a macbook that can dual boot to XP and I guess I got confused for a second there. Too bad my new one uses Vista, and that UAC is a pain when I want to mod anything, but I won't get into details.  :)

Offline limey BSc.

  • JL Studios - Co-Founder
  • Posts: 1152
  • Cookies: 421
  • JL Studios - Co-Founder
Re: Bridge sounds
« Reply #11 on: November 11, 2008, 03:03:03 AM »
Disable it then. I did as soon as I got my computer!
MUSE!!!


Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Bridge sounds
« Reply #12 on: November 11, 2008, 08:09:30 AM »
(i'm gonna move this thread over to the Bridge forum...  i didnt think to do it earlier, but i think it would be better there :))

Freakydude

  • Guest
Re: Bridge sounds
« Reply #13 on: November 11, 2008, 01:47:59 PM »
Disable it then. I did as soon as I got my computer!
Yeah, I probably should.

Edit: Wow, I just experimented with disabling and re-enabling UAC. Guess what happened? After re-enabling UAC, i found out Vista could no longer determine the publisher of IE 7 so it restricted me access!
But, it's no biggie, I use Firefox anyways and I'll just keep UAC disabled. This lovely emoticon conveys my message nicely.  #loveFFX# Just another Vista bashing story already piling up on my list.  :lol:

Anyways..., I'm finally experimenting with KM again. So far, it hasn't screwed up on Vista yet so that's a good sign. It looks like someone already went through the time of changing all the ships in SP, so I think I'll just play around with that for now.