Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: boewolf on March 07, 2008, 03:22:24 am

Title: Adding to the sound table
Post by: boewolf on March 07, 2008, 03:22:24 am
After looking at the sound table, the Wiki and searching the forums, i am not sure if i can add entries to the sound table...   Is this possible?  I am looking to add 7 sounds at this point.  I may need to add a few more.  depending on if this is possible at all.
Title: Re: Adding to the sound table
Post by: Darius on March 07, 2008, 03:28:11 am
You can replace the empty sound entries in the table, or overwrite existing ones that you don't use.

However, I too would like to know if you can add sounds to the table as I've used all of my spare entries up.
Title: Re: Adding to the sound table
Post by: boewolf on March 07, 2008, 03:42:26 am
I have found 11 empty slots.  Under the beam sounds.  can i place sounds that would usually go in the weapon sounds section?
Title: Re: Adding to the sound table
Post by: chief1983 on March 07, 2008, 11:36:03 am
The commented sections don't matter, as long as their in the right # section, #Game sounds, interface, or flyby.  And I'm pretty sure you can just add to the end of the list, so since the retail file's game sounds section stops at 191, you can just start adding onto that with 192+.  Just keep them in order.

http://www.hard-light.net/wiki/index.php/Sounds.tbl (http://www.hard-light.net/wiki/index.php/Sounds.tbl)
Title: Re: Adding to the sound table
Post by: Wanderer on March 07, 2008, 01:34:30 pm
Quote from: FSwiki
...
# Defines the game sounds by means of an index. Indexing must remain intact, so removing entries is not recommended. However adding new ones or altering existing ones is possible
...
Title: Re: Adding to the sound table
Post by: Retsof on March 07, 2008, 07:21:36 pm
... huh. I tried adding a sound at 192, it didn't work.  All I did was extract a normal beam sound and slow it down, so I don't think it's the format.
Title: Re: Adding to the sound table
Post by: Wanderer on March 08, 2008, 02:33:27 am
Well i added following to sounds.tbl
Code: [Select]
$Name:   192   BT_dwn_6.wav,     0, 0.55, 2, 2000, 3000
And then made following -wep.tbm
Code: [Select]
#Primary Weapons

$Name:                                 @Subach HL-7
   +nocreate
$LaunchSnd:                            192

#End

And done.. I got a 'new' (well recycled) effect for the weapon.
Title: Re: Adding to the sound table
Post by: boewolf on March 08, 2008, 07:13:12 am
Score
Title: Re: Adding to the sound table
Post by: WMCoolmon on March 08, 2008, 01:50:49 pm
Code: [Select]
$LaunchSnd: BT_dwn_6
That should work, too.
Title: Re: Adding to the sound table
Post by: chief1983 on March 08, 2008, 03:15:18 pm
Wait so does a sound even need to be in the sounds.tbl to work with the SCP?
Title: Re: Adding to the sound table
Post by: WMCoolmon on March 08, 2008, 03:36:09 pm
Yes, it should still be in sounds.tbl, but you don't have to use the numerical index to refer to it.
Title: Re: Adding to the sound table
Post by: Wanderer on March 09, 2008, 11:31:05 am
Hmm.. What happens if there are several instances of a sound in the sounds.tbl (probably chooses the first one)? All with different settings that is..