Automatically Set Game Window To Screen Resolution

As you read from the thread's title, I'm looking for a plugin that sets the game window to the monitor's resolution.


I know you can manually change the window size using Yanfly's Core Engine Plugin, but it can only be a set resolution. I want my game to be able to fit any resolution regardless of what it may be.
This may not be the best solution, but it'll work for PC/Mac users.


Open rpg_managers.js and goto line 1598-1601.


edit them to look like this:


SceneManager._screenWidth       = window.screen.availWidth;//816
SceneManager._screenHeight      = window.screen.availHeight;//624
SceneManager._boxWidth          = window.screen.availWidth;//816
SceneManager._boxHeight         = window.screen.availHeight;//624


Edit: Making a small plugin that aliases SceneManager and calls itself, then replaces the value of SceneManager._screenWidth, SceneManager._screenHeight, SceneManager._boxWidth, and SceneManager._boxHeight would be a better idea in order to make this compatible with other plugins that checks/uses the default values of those things.
Thanks for the tip. While it does work, I have to disable Yanfly's Core Engine plugin so it won't override the modified code, so it doesn't scale the backgrounds and all that. It serves well as a temporary solution to test it elsewhere.
I apologize if I'm necroposting, I'm still looking for this kind of plugin.


I've come up with a solution: I edited Yanfly's plugin, lines 811-814 to implement Driftwood's suggestion.

Original thread: https://forums.rpgmakerweb.com/threads/automatically-set-game-window-to-screen-resolution.69112/