Resolution Changer v0.1

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

Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,966
Reaction score
13,603
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
506
Reaction score
421
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
506
Reaction score
421
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

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,966
Reaction score
13,603
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
506
Reaction score
421
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
124
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
506
Reaction score
421
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
124
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:

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

Latest Threads

Latest Profile Posts

This video really speaks to me...

Stream will be live shortly with a session of the interactive text adenture! Feel free to drop by!
I worked a lot more today and I am thinking about Youtube videos to make to my channel, but I am still looking for some content :D

But I am happy to be back at work :D
Update... no scam calls all day. I think they learned their lesson. And I'm working on a fake anti-piracy video, featuring a fan game I'm making in MV. If I had the permission to make the game a licensed game that I could sell (rather than having it totally free like fan games are required to be), I'd use a really cool anti-piracy screen...

Forum statistics

Threads
104,363
Messages
1,005,853
Members
135,880
Latest member
Sleepycap
Top