Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Lt. Spanks on March 15, 2015, 01:40:36 pm

Title: Sounds.TBM?
Post by: Lt. Spanks on March 15, 2015, 01:40:36 pm
I want to add custom sounds to my weapons and I know that to add a suitable for a new ship or weapon in a mod you use a Name-web/shp.tbm
How do I do this with a new sound for instance?
Or do i just copy over the sounds.tbl and add to it?
Title: Re: Sounds.TBM?
Post by: Dragon on March 15, 2015, 02:06:44 pm
Sound table lacks modularity, which is often a problem. You need to copy the table over and make your own changes. Once in a while there's talk of modularizing the sound table, but it hasn't been done so far for some reason, despite the usefulness of such idea.
Title: Re: Sounds.TBM?
Post by: Lt. Spanks on March 15, 2015, 02:30:19 pm
Perfect... thankyou
Title: Re: Sounds.TBM?
Post by: Nyctaeus on March 15, 2015, 02:44:57 pm
Well... There is modular table with -snd extension described on the FSWiki.

Now I know why it's not working xD
Title: Re: Sounds.TBM?
Post by: AdmiralRalwood on March 15, 2015, 02:57:56 pm
http://www.hard-light.net/wiki/index.php/Sounds.tbl

Quote
This table is one of the Modular Tables and can be extended with xxx-snd.tbm

It's not an "it was planned and never implemented" thing, either; the code calls "parse_modular_table("*-snd.tbm", parse_sound_table);".
Title: Re: Sounds.TBM?
Post by: Dragon on March 15, 2015, 04:08:58 pm
So, does it work now? And if it doesn't (my experience with it so far), why? It's been a while since I touched FS modding, so if it's a very recent change, I might've missed it.
Title: Re: Sounds.TBM?
Post by: Axem on March 15, 2015, 04:31:23 pm
Modular sound tables do indeed work, they just work a little differently than the original. Just follow the SCP syntax from the link that AdmiralRalwood linked to and you'll be fine. In the weapon table entry just use the name you've given it instead of a number index.
Title: Re: Sounds.TBM?
Post by: AdmiralRalwood on March 15, 2015, 04:33:40 pm
Modular sound tables have been working since 3.6.16, by the way.
Title: Re: Sounds.TBM?
Post by: Dragon on March 15, 2015, 06:09:36 pm
That's a surprise. I remember 3.6.16, and I think I was quite active back then. This must've slipped past me, or it'd have saved me a lot of headaches. This certainly needs to be a better known fact.
Title: Re: Sounds.TBM?
Post by: Cyborg17 on March 15, 2015, 06:33:09 pm
It went right past me, too.  I totally created my own sounds.tbl, thinking that I needed, too.  *shrugs*
Title: Re: Sounds.TBM?
Post by: mjn.mixael on March 15, 2015, 06:58:29 pm
That's a surprise. I remember 3.6.16, and I think I was quite active back then. This must've slipped past me, or it'd have saved me a lot of headaches. This certainly needs to be a better known fact.

Like maybe someone should put it on the Wiki and document it? Oh wait...
Title: Re: Sounds.TBM?
Post by: Rheyah on March 16, 2015, 04:48:11 am
I had no idea -snd.tbm was working.
Title: Re: Sounds.TBM?
Post by: Dragon on March 16, 2015, 09:40:09 am
Like maybe someone should put it on the Wiki and document it? Oh wait...
Try again. It seems to have been insufficient so far. Could it be that wiki isn't being read as much as you assume?
Title: Re: Sounds.TBM?
Post by: X3N0-Life-Form on March 16, 2015, 09:43:51 am
For what it's worth, I've always assumed that the modular table was working ever since I first saw it on the wiki a little while ago.
Title: Re: Sounds.TBM?
Post by: Lt. Spanks on March 16, 2015, 02:02:10 pm
FFFFFANTASTIC!
I couldn't get the moving sound.tbl into the new mod folder to work so with these new fangled sound modular tables I'm all set to go!
Thanks