Bridge Commander Central

BC Forums => BC Scripting => Topic started by: WileyCoyote on May 22, 2010, 03:37:07 PM

Title: Help needed creating custom warp entry/ exit sound script for ships
Post by: WileyCoyote on May 22, 2010, 03:37:07 PM
I was also thinking about creating a custom Warp Entry/Exit sound for JJ Federation ships. How can I do this?

I read the tutorial and it said that adding a custom warp sound for a ship is race specific. So I'll create a new race called JJ Universe and put my new ship inside of that. Am I right?
Title: Re: Help needed creating custom warp entry/ exit sound script for ships
Post by: Shadowknight1 on May 22, 2010, 03:49:05 PM
That pretty much is what you do.  YOu can do that even while keeping the ship under the Federation heading.
Title: Re: Help needed creating custom warp entry/ exit sound script for ships
Post by: WileyCoyote on May 22, 2010, 04:07:41 PM
This is the script for the Custom/ships:

Code: [Select]
##### Created by:
##### Bridge Commander Ship Menu Creator v2.1



import App
import Foundation



abbrev = 'WCJJConnie'
iconName = 'WCJJConnie'
longName = 'WC JJ USS Enterprise mk3'
shipFile = 'WCJJConnie'
species = App.SPECIES_AMBASSADOR
SubMenu = 'JJ Enterprise Class'
menuGroup = 'Fed Ships'
playerMenuGroup = 'Fed Ships'


Foundation.ShipDef.WCJJConnie = Foundation.FedShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile, 'SubMenu': SubMenu })


# Foundation.ShipDef.WCJJConnie.fMaxWarp
# Foundation.ShipDef.WCJJConnie.fCruiseWarp
Foundation.ShipDef.WCJJConnie.desc = "WC JJ USS Enterprise mk3"
Foundation.ShipDef.WCJJConnie.dTechs = {
# Here comes the AdonisTMPWarmUp script config
# The sequence describes the warm up, and it's reversed (timed correctly) on cool off
# The numbers are moments in time
# 2 requirements, the first moment is the normal texture, and the last moment
# On the other hand, you can also use startTrack and stopTrack, with the same config, but you can time it differently, and use different textures (if you want)
"AdonisTMPWarpStartUp": {
"track": {
"warpglows_glow": {
0.0: "data/Models/Ships/WCJJConnie/warpglows_glow.tga",
1.0: "data/Models/Ships/WCJJConnie/warpglows2_glow.tga",
}
}
}

}
if menuGroup:           Foundation.ShipDef.WCJJConnie.RegisterQBShipMenu(menuGroup)
if playerMenuGroup:     Foundation.ShipDef.WCJJConnie.RegisterQBPlayerShipMenu(playerMenuGroup)


if Foundation.shipList._keyList.has_key(longName):
      Foundation.ShipDef.__dict__[longName].friendlyDetails[2] = Foundation.shipList[longName].friendlyDetails[2]
      Foundation.ShipDef.__dict__[longName].enemyDetails[2] = Foundation.shipList[longName].enemyDetails[2]

Where in this would I add the script? What would it look like?
Title: Re: Help needed creating custom warp entry/ exit sound script for ships
Post by: baz1701 on May 22, 2010, 06:30:12 PM
take a look at my jjpack. It has its own sounds using race def.
Title: Re: Help needed creating custom warp entry/ exit sound script for ships
Post by: WileyCoyote on May 22, 2010, 11:47:12 PM
I've tried your ships and your warp sounds do not work. I think it might be the sound format. And it's not the sound format.
Title: Re: Help needed creating custom warp entry/ exit sound script for ships
Post by: baz1701 on May 23, 2010, 05:05:40 AM
I've tried your ships and your warp sounds do not work. I think it might be the sound format. And it's not the sound format.

It works in the new KM beta but not the old.
Title: Re: Help needed creating custom warp entry/ exit sound script for ships
Post by: King Class Scout on May 23, 2010, 05:18:45 AM
I can confirm that. it also didn't work outside of KM either.  it only seems to work with 1.0 for me.
Title: Re: Help needed creating custom warp entry/ exit sound script for ships
Post by: Mario on May 23, 2010, 05:28:49 AM
In short:
1. Create a new race, let's name it myRace
2. NanoFX now looks for a registered sound called myRaceEnterWarp and myRaceExitWarp
3. Create a sound plugin just like for weapons sounds using BCUT and name i.e. enterwarp.mp3 as myRaceEnterWarp and exitwarp.mp3 as myRaceExitWarp
4. Done
Title: Re: Help needed creating custom warp entry/ exit sound script for ships
Post by: baz1701 on May 23, 2010, 05:33:10 AM
In short:
1. Create a new race, let's name it myRace
2. NanoFX now looks for a registered sound called myRaceEnterWarp and myRaceExitWarp
3. Create a sound plugin just like for weapons sounds using BCUT and name i.e. enterwarp.mp3 as myRaceEnterWarp and exitwarp.mp3 as myRaceExitWarp
4. Done

I did not have to create a sound plugin for the warp sounds for my race.

Once I have the race def working I only had to drop my work enter/exit fx into a folder called the race name in the nanoFX warpfx sub folder in the scripts directory. This also worked for the Narada and the TMP connie updates I'm working on as well.
Title: Re: Help needed creating custom warp entry/ exit sound script for ships
Post by: Mario on May 23, 2010, 05:56:30 AM
In short:
1. Create a new race, let's name it myRace
2. NanoFX now looks for a registered sound called myRaceEnterWarp and myRaceExitWarp
3. Create a sound plugin just like for weapons sounds using BCUT and name i.e. enterwarp.mp3 as myRaceEnterWarp and exitwarp.mp3 as myRaceExitWarp
4. Done

I did not have to create a sound plugin for the warp sounds for my race.

Once I have the race def working I only had to drop my work enter/exit fx into a folder called the race name in the nanoFX warpfx sub folder in the scripts directory. This also worked for the Narada and the TMP connie updates I'm working on as well.

Then I recommend you add a note to your readmes:

"Warp Sounds only work in Kobayashi Maru installs"--I'm not sure is it 1.0 or above. I wonder when support for something like this was added in there.

People never listen to me lol

edit: You might consider rephrasing my earlier suggestion: "Warp sounds work only on installs with GC 2.0"
Title: Re: Help needed creating custom warp entry/ exit sound script for ships
Post by: King Class Scout on May 23, 2010, 07:12:53 AM
hey, baz, the TMP ones never worked for me, just the JJ's.  I did check the sound files to hear what they sounded like.
Title: Re: Help needed creating custom warp entry/ exit sound script for ships
Post by: baz1701 on May 24, 2010, 05:04:16 AM
The TMP sounds were only a beta so still needs work.