superrogin

Warper
Member
Joined
Oct 24, 2015
Messages
4
Reaction score
6
First Language
Korean
First of all, i'm not good at english, please understand it :)

I made a simple resolution changer plugin for RPG MV.

There might be some bugs, but still it works well!

Any opinions please  :)

//=============================================================================// ResolutionChanger.js//=============================================================================/*: * @plugindesc Changing game resolution easily. * @author superrogin * * @param Width * @desc Width of the game screen. * @default 816 * * @param Height * @desc Height of the game screen. * @default 624 * * @help Ask superrogin@gmail.com *//*:ko * @plugindesc ê²ì í´ìë를 ì½ê² ë°ê¿ ì ììµëë¤. * @author superrogin * * @param Width * @desc ê²ì ê°ë¡ í´ìë * @default 816 * * @param Height * @desc ê²ì ì¸ë¡ í´ìë * @default 624 * * @help ì§ë¬¸ : superrogin@gmail.com */(function() { var parameters = PluginManager.parameters('ResolutionChanger'); var wdth = Number(parameters['Width'] || 816); var hght = Number(parameters['Height'] || 624); var _Scene_Base_create = Scene_Base.prototype.create; Scene_Base.prototype.create = function() { _Scene_Base_create.call(this); Graphics.width = wdth; Graphics.height = hght; };})();ResolutionChanger.zip
 

Attachments

  • ResolutionChanger.zip
    604 bytes · Views: 249
Last edited by a moderator:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,672
Reaction score
15,291
First Language
English
Primarily Uses
RMMV
Hi, for such a small script, could you please remove the zip file and just put the text into code tags so people don't have to download it? Thanks :)
 

superrogin

Warper
Member
Joined
Oct 24, 2015
Messages
4
Reaction score
6
First Language
Korean
Hi, for such a small script, could you please remove the zip file and just put the text into code tags so people don't have to download it? Thanks :)
My mistake. I'll follow your words, thank you :D
 

Prescott

argggghhh
Veteran
Joined
Aug 28, 2014
Messages
521
Reaction score
465
First Language
English
Primarily Uses
RMMV
Are you able to change the resolution of the game in a plugin command with this?
 

superrogin

Warper
Member
Joined
Oct 24, 2015
Messages
4
Reaction score
6
First Language
Korean
Are you able to change the resolution of the game in a plugin command with this?
Just use the script i wrote below, it will be more simple :) but i'll add that function in the next time.Graphics.width = 1280;

Graphics.height = 720;

You can change the numbers as you wish.
 
Last edited by a moderator:

Prescott

argggghhh
Veteran
Joined
Aug 28, 2014
Messages
521
Reaction score
465
First Language
English
Primarily Uses
RMMV
THANK YOU SO MUCH THIS IS SO IMPORTANT XD

EDIT: One question though, if I'm using this and the Yanfly core engine, there will probably be some conflicts, right? How would I go about using the other features of the core engine but still using this to change the resolution? Think I could merge the plugins, maybe? Override the core engine resolution segment with this?
 
Last edited by a moderator:
Joined
May 29, 2012
Messages
3
Reaction score
0
First Language
English, Danish
Yanfly's Core Engine allows you to change the resolution of the game already, actually. But try placing this one *after* Yanfly's plugin, if you have any issues.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,672
Reaction score
15,291
First Language
English
Primarily Uses
RMMV
They may not want to add a whole core script JUST to get a resolution change.
 

Prescott

argggghhh
Veteran
Joined
Aug 28, 2014
Messages
521
Reaction score
465
First Language
English
Primarily Uses
RMMV
My question is about changing the resolution of the game if the player wants to, like give them an option to play in 720p or 1080p. Or maybe set it up someway so that it is normally 720p and then goes automatically 1080p when it reads the game is full screen.

Can Yanfly's already do this using the same method that this one can? Or is it different?
 

KisaiTenshi

Veteran
Veteran
Joined
Oct 24, 2015
Messages
310
Reaction score
127
My question is about changing the resolution of the game if the player wants to, like give them an option to play in 720p or 1080p. Or maybe set it up someway so that it is normally 720p and then goes automatically 1080p when it reads the game is full screen.

Can Yanfly's already do this using the same method that this one can? Or is it different?
It is, but isn't.

Basically the script above only changes the canvas "stage" size. Since the html document says "scale to window" it will never actually run at the resolution stated. If you change the size while the game is running, it will only rescale the stage. So when you first load the game windowed it will be at "100%" of whatever resolution is stated.

If you think far enough ahead, you actually need to ask the player if they want to play full screen and prompt them to restart the game in full screen to get the maximum resolution. However to do this, the game has to be launched full screen which requires setting the package.json file to have

"fullscreen": true;set, otherwise it will stretch the canvas from the initial size.
 

Prescott

argggghhh
Veteran
Joined
Aug 28, 2014
Messages
521
Reaction score
465
First Language
English
Primarily Uses
RMMV
It is, but isn't.

Basically the script above only changes the canvas "stage" size. Since the html document says "scale to window" it will never actually run at the resolution stated. If you change the size while the game is running, it will only rescale the stage. So when you first load the game windowed it will be at "100%" of whatever resolution is stated.

If you think far enough ahead, you actually need to ask the player if they want to play full screen and prompt them to restart the game in full screen to get the maximum resolution. However to do this, the game has to be launched full screen which requires setting the package.json file to have

"fullscreen": true;set, otherwise it will stretch the canvas from the initial size.
Okay. So it is basically impossible for the user to change their resolution in game, correct? That's a shame.

If I set the resolution to 1080p and they play it in full screen with a 720p monitor/device, it will automatically downsample it though, correct?
 

KisaiTenshi

Veteran
Veteran
Joined
Oct 24, 2015
Messages
310
Reaction score
127
Okay. So it is basically impossible for the user to change their resolution in game, correct? That's a shame.

If I set the resolution to 1080p and they play it in full screen with a 720p monitor/device, it will automatically downsample it though, correct?
Correct as long as their device is aware of it. It likely won't feel playable though.

I'd suggest trying to develop a game around 720p or 540p (1/4HD) and using 16:9 ratio to scale up, or design the stage to be adaptable to 4:3 and 16:9 and just crop the game differently around the "common" space.
 

Jecht

Veteran
Veteran
Joined
Jul 15, 2015
Messages
44
Reaction score
24
First Language
Italian
Primarily Uses
Correct as long as their device is aware of it. It likely won't feel playable though.

I'd suggest trying to develop a game around 720p or 540p (1/4HD) and using 16:9 ratio to scale up, or design the stage to be adaptable to 4:3 and 16:9 and just crop the game differently around the "common" space.
I'm working on a script that resize the screen to the resolution monitor and it's feel playable

http://forums.rpgmakerweb.com/index.php?/topic/48030-bodkaa-screenfit/
 
Last edited by a moderator:

Latest Threads

Latest Profile Posts

I'm having toooo much fun designing the new MP (Mental Psyche) system. I've only worked it out for enemies so far, but it's fun to stun them, then go after their MP and delete them instead to farm for better item drops.
anyone know of a place I can promote my game? sorta like game awards but for indie devs, like a place where I can drop a trailer and like stir up some hype
Doing RPG Maker News for 17th October 2021

That moment when you came up with a very good game title, but when you searched it, it has already been used... T.T
Crazy week. My anxiety decides to go nutz. Worse thing about it is that it causes me to lose focus on my work. I was able to leave early one day and take a nap. Seemed to help. How is everyone? Boosters coming soon here. Get my life back on track again.

Forum statistics

Threads
115,874
Messages
1,093,661
Members
151,120
Latest member
ekizdehd
Top