Bridge Commander Central

BC Forums => BC Scripting => Topic started by: Kirk on June 23, 2008, 03:55:39 PM

Title: BP Sounds Tutorial
Post by: Kirk on June 23, 2008, 03:55:39 PM
Is there a BP Sounds tutorial? I've downloaded a few bridges from BCF and their custom sounds aren't working properly and I would like them work.
Title: Re: BP Sounds Tutorial
Post by: MLeo on June 23, 2008, 05:15:48 PM
What exactly (or rather, on what bridges) do you want to know, it's not that hard, in fact, BPSounds is basicly the sound version of the texture features of BPCore.
Title: Re: BP Sounds Tutorial
Post by: Kirk on June 23, 2008, 05:31:40 PM
Well, here's (http://bridgecommander.filefront.com/file/USS_Artemis_Bridge;60748) one. It has it's pwn sounds included, they just don't work.
Title: Re: BP Sounds Tutorial
Post by: MLeo on June 23, 2008, 05:41:14 PM
No it doesn't use BPCore, let alone BPSounds:

Code: [Select]
Foundation.BridgeDef('Artemis', 'ArtemisBridge', dict = {
'modes': [ Foundation.MutatorDef.Stock ],
'locations': {
'AmbHelm': [ 'data/animations/Amb_stand_h_m.nif', 'Amb_stand_h_m' ],
'AmbTactical': [ 'data/animations/Amb_stand_t_l.nif', 'Amb_stand_t_l' ],
'AmbCommander': [ 'data/animations/Amb_stand_c_m.nif', 'Amb_stand_c_m' ],
'AmbScience': [ 'data/animations/Amb_stand_S_S.nif', 'Amb_stand_s_s' ],
'AmbEngineer': [ 'data/animations/Amb_stand_e_s.nif', 'Amb_stand_e_s' ],
'AmbGuest': [ 'data/animations/Amb_stand_X_m.nif', 'Amb_stand_X_m' ],
}
} )
Title: Re: BP Sounds Tutorial
Post by: Kirk on June 23, 2008, 05:54:05 PM
That's what I'd like to do, enable the use of BP Sounds with this bridge.
Title: Re: BP Sounds Tutorial
Post by: MLeo on June 23, 2008, 05:56:34 PM
Ah, I got the impression you thought it already did this.



Well, I suggest you look at the other, existing, bridge plugins that use this, for example, "Galaxy Bridge Advanced.py" and "Sovereign Bridge Advanced.py" both are included (I believe) in the default BPCore package. And you will find them under scripts/Custom/Autoload/
Title: Re: BP Sounds Tutorial
Post by: Kirk on June 23, 2008, 06:09:31 PM
Ah, now I see.
Code: [Select]
"bridgeSound": {
"LiftDoor": {"volume": 1.0,"file": "sfx/dbridge/dbdoor.wav", "group": "BridgeGeneric"},
"AmbBridge": {"volume": 0.3,"file": "sfx/dbridge/dbamb.wav", "group": "BridgeGeneric"},
"RedAlertSound": {"volume": 1.0,"file": "sfx/dbridge/dbklaxton.wav", "group": "BridgeGeneric"},
"GreenAlertSound": {"volume": 1.0,"file": "sfx/dbridge/dbgreen.wav", "group": "BridgeGeneric"},
"ViewOn": {"volume": 1.0,"file": "sfx/dbridge/dbviewscreenon.wav", "group": "BridgeGeneric"},
"ViewOff": {"volume": 1.0,"file": "sfx/dbridge/dbviewscreenoff.wav", "group": "BridgeGeneric"}
},
The first value (ex, "LiftDoor") is the one being changed to the file specified (ex, "sfx/dbridge/dbdoor.wav")
Title: Re: BP Sounds Tutorial
Post by: MLeo on June 24, 2008, 03:10:08 AM
Yeah.

Before these are applied, the normal bridge sounds, that are applied to every bridge, are added, and then these are applied over those.


I must tell you that the volume and the group have default values of respectively 1.0 and "BridgeGeneric". ;)