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
-
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?
-
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.
-
Perfect... thankyou
-
Well... There is modular table with -snd extension described on the FSWiki.
Now I know why it's not working xD
-
http://www.hard-light.net/wiki/index.php/Sounds.tbl
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);".
-
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.
-
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.
-
Modular sound tables have been working since 3.6.16, by the way.
-
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.
-
It went right past me, too. I totally created my own sounds.tbl, thinking that I needed, too. *shrugs*
-
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...
-
I had no idea -snd.tbm was working.
-
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?
-
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.
-
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