Change Screen Resolution In Menu? [RMMZ]

Hey. First time poster after taking quite a few months to get into RPG Maker MZ.

So, the issue I'm having is a relatively simple one I'm sure, but I just can't figure out any way to do it. I simply want to add an option in the menu to change the screen resolution from 16:9 to 4:3 and vice versa, and have options for different resolutions. My default screen res settings are set for 1920x1080, but I want options for people who might have, say, a 1280x720 monitor, or even a smaller/bigger one than that. This is also being done in an evented title screen rather than the regular title screen.

Whether it be done through the script command or through a common event, I'm fine with either. I just know that none of the forum answers worked for me unfortunately, and I'd rather not make a separate deployment just for 4:3 if it could be avoided. I'm no expert in code by any means. Most I've done was mess around with .ini files for game mods and program a very basic webpage in high school years ago, so the simplest explanations you can give would be greatly appreciated. Thanks!

For context, I've attempted it using the following options and it just seems to do nothing for me. I also use VisuStella's Options Core, which makes the [LZ] Change Screen Resolution Ingame plugin incompatible.

1. window.screen.width 1280 window.devicePixelRatio;
window.screen.height 720 window.devicePixelRatio;

2. window.resizeBy(854, 480);
window.moveBy(0, 0);

3. SceneManager.changeGraphicResolution = function(1440, 1080) {
this._screenWidth = 1440;
this._screenHeight = 1080;
Graphics._width = 1440;
Graphics._height = 1080;
};
Bumping this!
Have you found a solution? I've been searching for a plugin that does this exact thing :0
Bumping this!
Have you found a solution? I've been searching for a plugin that does this exact thing :0
I wish. No luck on my end, unfortunately.
Maybe this?
Maybe this?
Unfortunately, that won't work for me either. I'm using the VisuStella Options Core. I forgot to mention that.
JavaScript:
Scene_Boot.prototype.resizeScreen = function() {
    const screenWidth = $dataSystem.advanced.screenWidth;
    const screenHeight = $dataSystem.advanced.screenHeight;
    Graphics.resize(screenWidth, screenHeight);
    Graphics.defaultScale = this.screenScale();
    this.adjustBoxSize();
    this.adjustWindow();
};

Scene_Boot.prototype.adjustBoxSize = function() {
    const uiAreaWidth = $dataSystem.advanced.uiAreaWidth;
    const uiAreaHeight = $dataSystem.advanced.uiAreaHeight;
    const boxMargin = 4;
    Graphics.boxWidth = uiAreaWidth - boxMargin * 2;
    Graphics.boxHeight = uiAreaHeight - boxMargin * 2;
};

Scene_Boot.prototype.adjustWindow = function() {
    if (Utils.isNwjs()) {
        const scale = this.screenScale();
        const xDelta = Graphics.width * scale - window.innerWidth;
        const yDelta = Graphics.height * scale - window.innerHeight;
        window.moveBy(-xDelta / 2, -yDelta / 2);
        window.resizeBy(xDelta, yDelta);
    }
};
Maybe you can check the code of how the game does the resize.
It is in the boot scene, but maybe you can call the function from anywhere or write your own.
The trick is calling Graphics.resize, instead of changing the values.

Graphics.resize(1440, 1080)

I'm not familiar with VS's option core, but guess you'll need to let the boot scene read from configure file instead after the game is restart.
JavaScript:
Scene_Boot.prototype.resizeScreen = function() {
    const screenWidth = $dataSystem.advanced.screenWidth;
    const screenHeight = $dataSystem.advanced.screenHeight;
    Graphics.resize(screenWidth, screenHeight);
    Graphics.defaultScale = this.screenScale();
    this.adjustBoxSize();
    this.adjustWindow();
};

Scene_Boot.prototype.adjustBoxSize = function() {
    const uiAreaWidth = $dataSystem.advanced.uiAreaWidth;
    const uiAreaHeight = $dataSystem.advanced.uiAreaHeight;
    const boxMargin = 4;
    Graphics.boxWidth = uiAreaWidth - boxMargin * 2;
    Graphics.boxHeight = uiAreaHeight - boxMargin * 2;
};

Scene_Boot.prototype.adjustWindow = function() {
    if (Utils.isNwjs()) {
        const scale = this.screenScale();
        const xDelta = Graphics.width * scale - window.innerWidth;
        const yDelta = Graphics.height * scale - window.innerHeight;
        window.moveBy(-xDelta / 2, -yDelta / 2);
        window.resizeBy(xDelta, yDelta);
    }
};
Maybe you can check the code of how the game does the resize.
It is in the boot scene, but maybe you can call the function from anywhere or write your own.
The trick is calling Graphics.resize, instead of changing the values.

Graphics.resize(1440, 1080)

I'm not familiar with VS's option core, but guess you'll need to let the boot scene read from configure file instead after the game is restart.
I'll be sure to check it out. Thanks!
Maybe you can check the code of how the game does the resize.
It is in the boot scene, but maybe you can call the function from anywhere or write your own.
The trick is calling Graphics.resize, instead of changing the values.

Graphics.resize(1440, 1080)

I'm not familiar with VS's option core, but guess you'll need to let the boot scene read from configure file instead after the game is restart.
I will need to make some adjustments for sure, but this seems to have done the trick. Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/change-screen-resolution-in-menu-rmmz.175035/