richk67 wrote:
Oh good. I look forward to your release of the "nobells.grf" file then.
I've already done that. OK, so it was for the news "tooter", but changing a single byte will make it disable any other sound.
And I expect I could get one that can disable any number of sound-effects given as parameters in no more than about 10KB. I haven't actually tried this, though.
Since the GRFid and meta-info need to be changed too for a conforming release, here's nobells.grf. Of course, if OTTD doesn't support sound-effect overrides, that's your problem, not mine (and definitely not Peter's), but should be fixed by implementing sound-effect overrides, not by doing a one-shot disabling of a single sound.
Do you really want 73 different switches in the config[0]:
<on/off> Instead of sound 0, use: <nothing> <sound1..72> <file>
<on/off> Instead of sound 1, use: <nothing> <sound0> <sound2..72> <file>
<on/off> Instead of sound 2, use: <nothing> <sound0..1> <sound3..72> <file>
<on/off> Instead of sound 3, use: <nothing> <sound0..2> <sound4..72> <file>
<on/off> Instead of sound 4, use: <nothing> <sound0..3> <sound5..72> <file>
<on/off> Instead of sound 5, use: <nothing> <sound0..4> <sound6..72> <file>
...
Especially since things like the JapanSet want to replace the level-crossing sound with their own (eg Japan-specific) version, and then you'll have to keep track of which set you're using at the time and which noises it is supposed to make?
[0] I assume the sounds would have more useful names, although this makes more work for the translators (especially since there's no consistent English names for the sounds.). And yes, there are seventy-three different sound effects.