How to set default volume levels?

Hello! I want to set default music and sound level so the title menu won't blast players with sound. Tried to find a default parameter in the editor itself but system tab in the database lets me choose tracks. While its possible to lower the volume of intro music, it doesn't fix the problem entirely.

I checked all active plugins and none of them allows me to control default sound level just as the sound plugins I found on the forum. Tried to hardcode it, like in this post yet both editor and deployed packages for all platforms ignore values I put there. Tested it several times with various levels.

There is a package.json in the deployment pack and someone mentioned that you can put default volume level there but didn't write how to do it. I tried to improvise with this (example from Windows deployment pack):
Spoiler: Code
Code:
{
    "name": "KADOKAWA/RPGMV",
    "main": "www/index.html",
    "AudioManager._bgmVolume": "40",
    "AudioManager._bgsVolume": "40",
    "AudioManager._meVolume": "40",
    "AudioManager._seVolume": "40",
    "js-flags": "--expose-gc",
    "window": {
        "title": "",
        "toolbar": false,
        "width": 816,
        "height": 624,
        "icon": "www/icon/icon.png"
    }
}
Nothing happens and the default sound is still at 100%. This is a pretty important thing and I found it strange that RPGMaker doesn't allow to control this parameter :< Can someone give me a solution for this, please?

Thank you!
Open your playtest.
Change your volumes in Options, then return to the main menu. This creates a save\config.rpgsave file in your project folder, with your volume settings (and other Options) saved inside.
When you playtest again, the Options will be read from your config.rpgsave.

When you deploy, copy your project's save folder into the www folder of your deployed project. The game will read your config.rpgsave when the player runs the game. If they make changes to the Options, it will save their changes.
Thank you, Llareian. This is exactly how I deal with this problem at the moment, but I hoped for a more "centralized" option to do it. Something like a plugin or a built-in RPGMaker function which I didn't found. It seems odd that I can't do this out of the box.

Guess there is none?
There ought to be, because you can do it via a script call in Ace which changes the default script. Here is the one I use to set the BGS level
Code:
$game_system.volume_change(:bgs, -20)

You need to find (or be told) what the JS equivalent of that script call is.

EDIT
I did some hunting around, and it might be something like this.
ConfigManager.bgmVolume = vol

change vol to whatever you want. Full volume is 100.
No guarantees on that code - I'm not a coder, and that could be wrong.
Is there a new way of doing it?
Just wrote something really quick for our game, figured I'd drop it here:

JavaScript:
(function(configManager, storageManager, input) {
    const configFileExists = storageManager.exists(-1);
    if(!configFileExists) {
        configManager.bgmVolume = 20;
        configManager.bgsVolume = 20;
        configManager.meVolume = 20;
        configManager.seVolume = 20;
        configManager.masterVolume = 20;
        configManager.alwaysDash = true;
        configManager.keyMapper = JSON.parse(JSON.stringify(configManager.wasdMap));      
        input.keyMapper = configManager.keyMapper;
        configManager.save();
    }
})(ConfigManager, StorageManager, Input);

This sets our volumes to 20%, and boots with WASD mapped, this is using Yanfly's OptionsCore, but you can rip out parts you don't need.

This is a plugin, we dropped it in as the last one to load, we basically check if the configuration file exists on boot, and if not we set some settings and force a config file save. Otherwise we don't touch it.

This is also a handy entrypoint if you end up adding configuration settings later and need to have default upgrade paths too.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-default-volume-levels.88775/