Automatically Set Game Window To Screen Resolution

sbloom85

Veteran
Veteran
Joined
Nov 28, 2014
Messages
59
Reaction score
13
First Language
English
Primarily Uses
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.
 

Driftwood Gaming

For just $1 a day you can prevent forest fires...
Veteran
Joined
Nov 11, 2015
Messages
119
Reaction score
306
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

sbloom85

Veteran
Veteran
Joined
Nov 28, 2014
Messages
59
Reaction score
13
First Language
English
Primarily Uses
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.
 

sbloom85

Veteran
Veteran
Joined
Nov 28, 2014
Messages
59
Reaction score
13
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top