MZ Video volume option for VisuStella's Options Core

I just realised that the core scripts define Video.setVolume, but never use it. Maybe this'll help?
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc Adds a separate in-game "video" volume option.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/164107/
 * @help Free to use and/or modify for any project, no credit required.
 */
;void (() => {
'use strict';

    /**
     * Internal symbol for new in-game option.\
     * Should contain `"Volume"` for correct command handling.
     */
    const KEY = "vidVolume";

    /** Display text for new in-game option. */
    const TXT = "Video Volume";

    /** Default value for new in-game option. */
    const DFAULT = 100;

    /** Private value repository for new option. */
    let value = DFAULT;

    /** Updates video volume based on new option. */
    const updateVideoVolume = function() {
        Video.setVolume(ConfigManager[KEY] / 100);
    };

    // Define accessor for new option.
    Object.defineProperty(ConfigManager, KEY, {
        get: function( ) { return value; },
        set: function(v) {
            if (Number.isFinite(v)) {
                value = v.clamp(0, 100);
                updateVideoVolume();
            }
        },
        configurable: true
    });

    // On play video, set its volume to the new option value.
    void (alias => {
        Video.play = function() {
            alias.apply(this, arguments);
            updateVideoVolume();
        };
    })(Video.play);

    // Add new command.
    void (alias => {
        Window_Options.prototype.addVolumeOptions = function() {
            alias.apply(this, arguments);
            this.addCommand(TXT, KEY);
        };
    })(Window_Options.prototype.addVolumeOptions);

    // Accommodate new command.
    void (alias => {
        Scene_Options.prototype.maxCommands = function() {
            return alias.apply(this, arguments) + 1;
        };
    })(Scene_Options.prototype.maxCommands);

    // Save new option.
    void (alias => {
        ConfigManager.makeData = function() {
            const res = alias.apply(this, arguments);
            res[KEY] = this[KEY];
            return res;
        };
    })(ConfigManager.makeData);

    // Load new option.
    void (alias => {
        ConfigManager.applyData = function(config) {
            alias.apply(this, arguments);
            this[KEY] = KEY in config ? config[KEY] : DFAULT;
        };
    })(ConfigManager.applyData);

})();
Moved to: Plugin Requests (from MZ Support)
Hey! So this works great for me as well, thanks a ton!
The problem I'm having its that I also use VisuStella's Options Core plugin, and when I enable that, the Video Volume setting disappears. Would anybody know of a way to make this setting show up in the Visustella options menu, or do you suppose they're incompatible?

I've split your post into a new thread.

Have you tried loading my plugin after VisuStella's?

If that doesn't help...I had a quick look at the page for VisuStella Options Core and it looks like you may need to manually define the option in that plugin's parameters (Draw Option, Process OK, etc). I'm a little busy at the moment, so if you need help with that then hopefully someone else has time~
I think you just copy VS bgmVolume settings in the Option Core option list settings, rename the symbol to vidVolume and change the name.
I think you just copy VS bgmVolume settings in the Option Core option list settings, rename the symbol to vidVolume and change the name.
Moderator note: I've split your post into a new thread. Have you tried loading my plugin after VisuStella's?

If that doesn't help...I had a quick look at the page for VisuStella Options Core and it looks like you may need to manually define the option in that plugin's parameters (Draw Option, Process OK, etc). I'm a little busy at the moment, so if you need help with that then hopefully someone else has time~
Success! I was able to make the option show up by putting the Video Volume plugin above all the VisuStella plugins, and then yeah, I copied the bgmVolume setting and simply renamed the relevant symbols to vidVolume.
Thank you both so much!
Oh nice, that works too! I was thinking you could copy the relevant parts of my plugin to VisuStella's plugin params, then remove my plugin completely.

I'll go ahead and close this~

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/video-volume-option-for-visustellas-options-core.178081/