Author Topic: Sounds.TBM?  (Read 4237 times)

0 Members and 1 Guest are viewing this topic.

Offline Lt. Spanks

  • 25
  • Not A Lieutenant
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?
Teacher: "Anything is possible if you put your mind to it!"

Student: "Teacher... there is an exception to this rule."

Teacher: "And what is that student?"

Student: "Catching the Iceni"

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
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.

 

Offline Lt. Spanks

  • 25
  • Not A Lieutenant
Perfect... thankyou
Teacher: "Anything is possible if you put your mind to it!"

Student: "Teacher... there is an exception to this rule."

Teacher: "And what is that student?"

Student: "Catching the Iceni"

 

Offline Nyctaeus

  • The Slavic Engineer
  • 212
  • My "FS Ships" folder is 582gb.
    • Minecraft
    • Exile
Well... There is modular table with -snd extension described on the FSWiki.

Now I know why it's not working xD
Exile | Shadow Genesis | Inferno | Series Resurrecta  | DA Profile | P3D Profile

Proud owner of NyctiShipyards. Remember - Nyx will fix it!

All of my assets including models, textures, skyboxes, effects may be used under standard CC BY-NC 4.0 license.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
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);".
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
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.

 

Offline Axem

  • 211
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.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Modular sound tables have been working since 3.6.16, by the way.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
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.

 

Offline Cyborg17

  • 29
  • Life? Don't talk to me about life....
It went right past me, too.  I totally created my own sounds.tbl, thinking that I needed, too.  *shrugs*

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
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...
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Rheyah

  • 28
  • Will release something one day. Promise.
I had no idea -snd.tbm was working.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
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.

  

Offline Lt. Spanks

  • 25
  • Not A Lieutenant
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
Teacher: "Anything is possible if you put your mind to it!"

Student: "Teacher... there is an exception to this rule."

Teacher: "And what is that student?"

Student: "Catching the Iceni"