Forums » Community Projects
Plugins to mute sound and to disable backgrounds
I often alternate between listening to music in-game via a plugin, and listening to music outside the game (internet radio, youtube, etc.). I got tired of enabling and disabling the game's music by hand, so tonight I wrote a plugin to do it.
snd-1.1.zip
You just run /snd and it will toggle, preserving the previous setting (unless you log or ReloadInterface() while it's muted, in which case it will forget and assume it was maxed). If you'd prefer to specifically mute or unmute, you can give it "mute" and "unmute" options (or just "m" and "u"). You can also use it to set the volume level via CLI, with "set" (or "s"). If you give it two numbers, the first number will apply to the sound effects, and the second to the music. Other than that, the plugin only monkeys with the music volume.
Use /snd help for in-game reference.
------
I also occasionally want to disable the background and space junk so that I can more easily see distant objects. So as long as I figured out how to do the above with the sound, I figured I'd reuse most of the code and make a plugin to toggle those graphical effects as well.
gfx-1.0.zip
Works basically the same as snd. Using /gfx toggles the background and the space junk, preserving the settings if possible. If it forgets due to logging off while disabled, they'll come back maxed when you next toggle. Rather than "mute" and "unmute" it uses "black" and "unblack" (or "b" and "u"). No option to set the specific settings in this one.
snd-1.1.zip
You just run /snd and it will toggle, preserving the previous setting (unless you log or ReloadInterface() while it's muted, in which case it will forget and assume it was maxed). If you'd prefer to specifically mute or unmute, you can give it "mute" and "unmute" options (or just "m" and "u"). You can also use it to set the volume level via CLI, with "set" (or "s"). If you give it two numbers, the first number will apply to the sound effects, and the second to the music. Other than that, the plugin only monkeys with the music volume.
Use /snd help for in-game reference.
------
I also occasionally want to disable the background and space junk so that I can more easily see distant objects. So as long as I figured out how to do the above with the sound, I figured I'd reuse most of the code and make a plugin to toggle those graphical effects as well.
gfx-1.0.zip
Works basically the same as snd. Using /gfx toggles the background and the space junk, preserving the settings if possible. If it forgets due to logging off while disabled, they'll come back maxed when you next toggle. Rather than "mute" and "unmute" it uses "black" and "unblack" (or "b" and "u"). No option to set the specific settings in this one.
If you're curious, you can have your settings persist across logins and interface reloads by using VO's built in gkini functions that you can learn about here:
http://vo-wiki.com/racecar/index.php?title=Gkini
http://vo-wiki.com/racecar/index.php?title=Gkini
Yeah, I guess I could have it back up the initial settings. I normally keep those two maxed out when not disabled so it doesn't really make any difference for me, but that could be useful to other people. Maybe I'll do that tonight.
I have updated the snd plugin to version 1.1, which takes into consideration the new audio leveling option. Version 1.0 was causing it to be reset to "Enabled" every time you used it. Version 1.1 will leave it where it is. Version 1.1 does not have an option to change it via the plugin, however. I will add that with version 1.2 whenever I get around to it - I won't use that feature myself, but I could see it being useful to other people to be able to toggle it on and off - e.g. leave it off when doing normal combat but on when stacking swarms.