Bridge Commander Central
BC Forums => BC Scripting => Topic started 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.
-
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.
-
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.
-
No it doesn't use BPCore, let alone BPSounds:
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' ],
}
} )
-
That's what I'd like to do, enable the use of BP Sounds with this bridge.
-
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/
-
Ah, now I see.
"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")
-
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". ;)