[2 Requests] Screen Stretch + Start in Full Screen

Hello, so I plan to be using MV's default resolution since making it higher
actually lowers the FPS after messing around.
 
 
First Request:
 

Spoiler
VX Ace had a script where you could stretch the screen so there wouldn't be borders
on the left and right side of the screen when in full screen.
I'd like to have this transferred/rewritten for MV if possible please.
 
 
 
Second Request:
Spoiler
I would also like another script that was made in VX/VXAce where it
will start the game in full screen. (Of course, you can still go back to Windowed by using F4.)
.
Have you thought the FPS being lowered is due to your PC?
Have you thought the FPS being lowered is due to your PC?
Yeah, I know it's my computer.

But I feel like part of it is also MV.

Even when I changed the resolution to 640x480(like Ace.)

It runs as smooth, and it still freezes sometimes.

So it's not just my PC.

Plus, another reason I prefer the default resolution, is because when I develop my games,

I think about the players who DO have low-end PC's.

So that's why I like keeping the default resolutions for maximum FPS for anyone.

That's why I'm requesting these 2 plugins to help enhance the looks of the default size by stretching them like

they were able to in VX Ace.
For screen resizing, I made a plugin that made a new call to Graphics.initialize(width, height, type); for 720p resolution, I passed in 1280, 720, 'auto'. That just handles the window/client size; for the game size in the window, you need to assign new values to SceneManager._screenWidth and SceneManager._screenHeight, mine being set to match the 720p resolution. You may also change SceneManager._boxWidth and SceneManager._boxHeight; what these control is the area of the screen (starting in the epicenter) that the UI (user interface such as menus and pop-up boxes) are allowed to be in. Any UI piece that goes over the edge will be cropped and the outlying surface image will not be rastered to the screen.

I'm currently working on the FullScreen mode being disabled from the F4 key and the game forcing starting in FullScreen mode. I currently have a redefinition of the Graphics._onKeyDown that does not contain a case for the 115 (F4) keycode, and I make a call to Graphics._switchFullScreen. This being said, it still does not function properly. F4 does not enable FullScreen, but the client still attempts it and does a quick flash, and the game is not starting in FullScreen.

I will also say, make all changes in plugins; I feel like it is good practice to not edit the default scripts themselves. The plugin manager in the client is very handy.

Working on my Computer Science Bachelor.
Update:

I got the FullScreen by default working and it can not be exited.

What I did:

Removed case 115 from Graphics._onKeyDown

Removed else statement from Graphics._switchFullScreen

Redefined Graphics._swtichFullScreen to an empty function

Made a call to Graphics._requestFullScreen

It also seems like it scales the game size to fit FullScreen mode, at least for my display it removed the black around the edges.
The OP is asking for a plugin, not for help to write one.
Bump.
Starting in fullscreen would be awesome, I'm so done with hitting F4 every single time I want to test anything. Plus I always hit F5 by accident and that resets the game and removes the controller as a usuable control method. 🙁
I'm curious about the auto-fullscreen as well, and maybe an in-game option to adjust the game's resolution.
Maybe will help http://forums.rpgmakerweb.com/index.php?/topic/48030-bodkaa-screenfit/
Nice work. First time I play tested, my task bar was still up. Every other time though it didn't. Very cool.
Nice work. First time I play tested, my task bar was still up. Every other time though it didn't. Very cool.
Ty! I thinks is something with the plugin parameters not being loaded if not setted up on first run.
I am looking for something that stretches the game screen to remove the black border, but allow me to keep my resolution dimension of 1024 x 576.
The auto full screen feature isn't really hard to do.

(function(){Graphics._switchFullScreen();})();I just discovered this thread now, so I am replying how to achieve it.
How exactly do I implement the function shown below? Do I put it in a plugin? Or call it from somewhere within RPGMaker MV?


Info on exactly what I need to do would be great. 

The auto full screen feature isn't really hard to do.



(function(){Graphics._switchFullScreen();})();


I just discovered this thread now, so I am replying how to achieve it.
Personally I've just edited Main.js. Small, simple, and easy for auto-fullscreen. It still allows the player to make to go back to windows with f4 if they prefer it as well.

Code:
//=============================================================================
// main.js
//=============================================================================

PluginManager.setup($plugins);

window.onload = function() {
	SceneManager.run(Scene_Boot);
	Graphics._requestFullScreen() // Added for auto-fullscreen
};
Does this remove the black side-bars on IOS? And should I put it above or below the yanfly plugin suite?

Personally I've just edited Main.js. Small, simple, and easy for auto-fullscreen. It still allows the player to make to go back to windows with f4 if they prefer it as well.

Code:
//=============================================================================
// main.js
//=============================================================================

PluginManager.setup($plugins);

window.onload = function() {
	SceneManager.run(Scene_Boot);
	Graphics._requestFullScreen() // Added for auto-fullscreen
};
Main.js is a default plugin(can't call it from the plugin manager or it would cause problems), so you would just edit that file, and as for the side bars it *should* remove them, but it could just be that my windows resolution matches my screens 16:9 ratio when stretched.


Not able to test atm, but I can send a pic of what file you edit.


Edit.png


Edit: Just tested real fast while the boss wasn't looking with a clean project and it DOES NOT get rid of the black bars unless your window resolution matches your monitors aspect ratio, sadly. :/


If anything it is a start though.
The auto full screen feature isn't really hard to do.



(function(){Graphics._switchFullScreen();})();


I just discovered this thread now, so I am replying how to achieve it.



Thanks for this, if anyone is wondering how to make this work, I made a file called fullscreen.js and pasted this into it, then activated it in my plugin manager. works (almost) perfectly.


The only issue I see, and I assume it's an engine issue, is when playtesting it shows the window first then after the main menu loads it goes fullscreen, but that's not an issue for me.


Here's the file:


View attachment fullscreen.js
Bit of an old thread, but if you want it to look better just add your line (I use "Graphics._requestFullScreen()" in mine) into main.js as the first thing in the window.onload function. for me it doesn't even show the window before going fullscreen.

Original thread: https://forums.rpgmakerweb.com/threads/2-requests-screen-stretch-start-in-full-screen.46455/