Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: MetalDestroyer on January 10, 2006, 02:16:10 pm

Title: Problem with sound.tbl
Post by: MetalDestroyer on January 10, 2006, 02:16:10 pm
I'm trying to put some variety of engine sound. So, I replace the "empty" by the filename of my wav file. But, during in-game, my ships doesn't have this sound. I have modified my ships.tbl to use those news one.

here the code :
Code: [Select]
$Name: 160 BT_dwn_5.wav, 0, 0.70, 2, 2000, 3000 ; BFGreen warm down
$Name: 161 BT_dwn_6.wav, 0, 0.70, 2, 2000, 3000 ; T_AntiFtr warm down
$Name: 162 Empty,                        0, 0.50, 0
$Name: 163 EngineIntAG.wav, 0, 0.90, 1, 200, 400 ; Assault Gunboat engine (3d sound)
$Name: 164 EngineIntAW.wav, 0, 0.90, 1, 200, 400 ; A wing engine (3d sound)
$Name: 165 EngineIntTi.wav, 0, 0.90, 1, 200, 400 ; Tie engine (3d sound)
$Name: 166 EngineIntXW.wav, 0, 0.90, 1, 200, 400 ; X Wing engine (3d sound)
$Name: 167 EngineIntYW.wav, 0, 0.90, 1, 200, 400 ; Y Wing engine (3d sound)
$Name: 168 Empty, 0, 0.50, 0
$Name: 169 Empty, 0, 0.50, 0

Just before the modification I've got this in the table :

Code: [Select]
$Name: 163 Empty,   0, 0.50, 0
$Name: 164 Empty, 0, 0.50, 0
$Name: 165 Empty,   0, 0.50, 0
$Name: 166 Empty, 0, 0.50, 0
$Name: 167 Empty,   0, 0.50, 0
$Name: 168 Empty, 0, 0.50, 0

 
Title: Re: Problem with sound.tbl
Post by: MetalDestroyer on January 10, 2006, 02:38:10 pm
I found just now, this :
Code: [Select]
$Name: 4 ship_p.wav, 0, 0.30, 0 ; engine sound (as heard in cockpit)
Where this sound is used ? I mean into the tables ? I want change the engine sound we heard into the cockpit. But, it depends  to the ship type (X wing, Tie Fighter, etc...).

Is it a code related ? or I could use them within some table modification ?
Title: Re: Problem with sound.tbl
Post by: Nuke on January 11, 2006, 09:45:54 am
i think the spiecies specific ship sounds override whatever sound index you use in the ships table. you want to add it to the flyby sounds section at the bottom, to do that you need to have a new spiecies set up (wich is a pita to do by the way). somone needs to do a how to add a new spiecies tutorial.
Title: Re: Problem with sound.tbl
Post by: MetalDestroyer on January 11, 2006, 11:45:14 am
i think the spiecies specific ship sounds override whatever sound index you use in the ships table. you want to add it to the flyby sounds section at the bottom, to do that you need to have a new spiecies set up (wich is a pita to do by the way). somone needs to do a how to add a new spiecies tutorial.

It's not really the flyby I would change into the table but the engine sound we (as a player) could heard into the cockpit.
AFAIK in X Wing Alliance, we heard clearly the tie engine inside the cockpit, as well for other crafts.

About the flyby I would prefer to add a new variable into the ships.tbl (like $FlyBySnd:   sample_Number ).