[XP] Drago - Custom Resolution

Started by LiTTleDRAgo, January 18, 2014, 02:06:33 am

Previous topic - Next topic

LiTTleDRAgo

January 18, 2014, 02:06:33 am Last Edit: March 29, 2017, 01:03:43 am by LiTTleDRAgo
Drago - Custom Resolution
Authors: LiTTleDRAgo
Version: 2.16
Type: Resolution Script
Key Term: Game Utility



Introduction

~


Features




Screenshots


Click to enlarge


Script

Version I (Not Tilemap Rewrite) (Updated 2017/03/29)

Version II (Tilemap Rewrite)


Instructions

In the script

Note that ALT + Enter are disabled in this script
If you want to forcefully change the game into fullscreen/windowed, use this script call

Graphics.control_screen_size(true/false)
                     # Change game resolution at will using mouse
                     # (Will be disabled if Graphics.fullscreen or Graphics.window is used)
Graphics.fullscreen  # Change the game into fullscreen
Graphics.window      # Change into windowed
Graphics.fullscreen? # Returns true if fullscreen



Version I is not rewriting default tilemap class, so there is less lagg than Version II.
In exchange, there are less feature, such as zoom or flip map.



Compatibility

Version 1
Only for RGSS1 (default RMXP)

Version 2
Spoiler: ShowHide
All script that modified Spriteset_Map & Sprite_Character need to be edited (Rataime's Shadow, Blizz ABS, etc)
Will cause trouble for Antilag scripts
Not for RMVX



Credits and Thanks


  • LiTTleDRAgo

  • ForeverZer0  & KK20 for some methods used in this script

  • Wecoc for autotile addon (Version II only)




Author's Notes

Enjoy ~

KK20

I can't believe I never thought of that--using multiple Tilemap instances to fill in the gaps. And it's not like using more than one Tilemap instance is foreign to me; I've done that in my Advance Wars Engine for Fog of War.

I dunno how I'm not getting your FPS. I'm getting 32 without reduced screen flicker and 25 with it on. Using RGSS104E, same map, same [1024, 576] resolution. Not a huge deal, but just puzzled.

If people want only a custom resolution script, I'd recommend this one. Not sure why you are crediting F0 and me since there is nothing similar between the two scripts at all (and it's not like that was the only resolution script that exists to begin with).

And yay, using the Alt+Enter discovery~





   


   
   


   
   

Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!



Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

LiTTleDRAgo

Quote from: KK20 on January 20, 2014, 12:18:37 am
I dunno how I'm not getting your FPS. I'm getting 32 without reduced screen flicker and 25 with it on. Using RGSS104E, same map, same [1024, 576] resolution. Not a huge deal, but just puzzled.


Maybe because I used old OS (XP)? my notebook is able to play high res VN so I doubt the problem is from my machine.

Quote from: KK20 on January 20, 2014, 12:18:37 am
Not sure why you are crediting F0 and me since there is nothing similar between the two scripts at all (and it's not like that was the only resolution script that exists to begin with).


I did use few method from F0's Custom Resolution (Graphics.transition, Game_Map, Game_Player) so I should give some respect by adding to the credits
Not to mention the one discovered ALT + Enter solution was yourself

LiTTleDRAgo

*Script updated*

added zoom animation

R5GAMER

I love this script, but it's a shame it doesn't work with RMX-OS! Otherwise congratulations :)
..........________
....'/,-Y"............."~-.
..l.Y.......................^.
./\............................_\
i.................... ___/"...."\
|.................../"...."\ .....o!
l..................].......o !__../
.\..._..._.........\..___./......"~\
..X...\/...\.....................___./
.(. \.___......_.....--~~".....~`-.           
....`.Z,--........./.....................\
.......\__....(......../.........._____)
...........\.........l......../---~~" /
............Y.......\................../
............|........"x_____.^
............|.....................\
............j.....................Y

LiTTleDRAgo

*update 2.14*

added map flip

Spoiler: ShowHide


Quote from: R5GAMER on August 18, 2014, 10:56:35 am
I love this script, but it's a shame it doesn't work with RMX-OS! Otherwise congratulations :)


too bad that I didn't use RMXOS so I can't help you with your problem :sorry:

R5GAMER

August 22, 2014, 02:44:55 pm #6 Last Edit: August 22, 2014, 07:29:07 pm by R5GAMER
Quote
too bad that I didn't use RMXOS so I can't help you with your problem :sorry:


No problem :D! It will not change what I still love this script ^^

EDIT : I tested the version I, is work, but i have 5 FPS lol :p
..........________
....'/,-Y"............."~-.
..l.Y.......................^.
./\............................_\
i.................... ___/"...."\
|.................../"...."\ .....o!
l..................].......o !__../
.\..._..._.........\..___./......"~\
..X...\/...\.....................___./
.(. \.___......_.....--~~".....~`-.           
....`.Z,--........./.....................\
.......\__....(......../.........._____)
...........\.........l......../---~~" /
............Y.......\................../
............|........"x_____.^
............|.....................\
............j.....................Y

R5GAMER

Quote from: R5GAMER on August 22, 2014, 02:44:55 pm
Quote
too bad that I didn't use RMXOS so I can't help you with your problem :sorry:


No problem :D! It will not change what I still love this script ^^

EDIT : I tested the version I, is work, but i have 5 FPS lol :p


If you to accept my help or in case, if have people is interested ^^
I tested with a 50x50 map with nothing => 40 fps.
I tested with the big city or there are several events => 5fps ~
Maybe this can help you get an idea about this lag? (Otherwise, I'll shut up :x)
..........________
....'/,-Y"............."~-.
..l.Y.......................^.
./\............................_\
i.................... ___/"...."\
|.................../"...."\ .....o!
l..................].......o !__../
.\..._..._.........\..___./......"~\
..X...\/...\.....................___./
.(. \.___......_.....--~~".....~`-.           
....`.Z,--........./.....................\
.......\__....(......../.........._____)
...........\.........l......../---~~" /
............Y.......\................../
............|........"x_____.^
............|.....................\
............j.....................Y

LiTTleDRAgo

about version 1, it creates multiple instance of everything in Spriteset_Map because default Tilemap class has viewport glitch when used for resolution above 640x480

example:

if you have 10 event in 1024x576, it equals 40 sprite event

=> 10 * ((1024.0 / 640).ceil + (576.0 / 480).ceil)
=> 10 * (2 + 2)
=> 10 * 4
=> 40

as far as I know, there is no fix for this problem.

R5GAMER

Quote from: LiTTleDRAgo on August 22, 2014, 08:24:59 pm
about version 1, it creates multiple instance of everything in Spriteset_Map because default Tilemap class has viewport glitch when used for resolution above 640x480

example:

if you have 10 event in 1024x576, it equals 40 sprite event

=> 10 * ((1024.0 / 640).ceil + (576.0 / 480).ceil)
=> 10 * (2 + 2)
=> 10 * 4
=> 40

as far as I know, there is no fix for this problem.



I did not want to bother you, I thought it might help ......
..........________
....'/,-Y"............."~-.
..l.Y.......................^.
./\............................_\
i.................... ___/"...."\
|.................../"...."\ .....o!
l..................].......o !__../
.\..._..._.........\..___./......"~\
..X...\/...\.....................___./
.(. \.___......_.....--~~".....~`-.           
....`.Z,--........./.....................\
.......\__....(......../.........._____)
...........\.........l......../---~~" /
............Y.......\................../
............|........"x_____.^
............|.....................\
............j.....................Y

LiTTleDRAgo

btw for reference, what error you got when using version 2?

R5GAMER

..........________
....'/,-Y"............."~-.
..l.Y.......................^.
./\............................_\
i.................... ___/"...."\
|.................../"...."\ .....o!
l..................].......o !__../
.\..._..._.........\..___./......"~\
..X...\/...\.....................___./
.(. \.___......_.....--~~".....~`-.           
....`.Z,--........./.....................\
.......\__....(......../.........._____)
...........\.........l......../---~~" /
............Y.......\................../
............|........"x_____.^
............|.....................\
............j.....................Y

LiTTleDRAgo


R5GAMER

..........________
....'/,-Y"............."~-.
..l.Y.......................^.
./\............................_\
i.................... ___/"...."\
|.................../"...."\ .....o!
l..................].......o !__../
.\..._..._.........\..___./......"~\
..X...\/...\.....................___./
.(. \.___......_.....--~~".....~`-.           
....`.Z,--........./.....................\
.......\__....(......../.........._____)
...........\.........l......../---~~" /
............Y.......\................../
............|........"x_____.^
............|.....................\
............j.....................Y

LiTTleDRAgo

sorry, it seems I'm unable to fix the script for RMXOS :(

* updated 2.16 *
added Wecoc's autotile addon

R5GAMER

I tested in 1920x1080 because im crazy lol..

Spoiler: ShowHide


and 640x480

Spoiler: ShowHide
..........________
....'/,-Y"............."~-.
..l.Y.......................^.
./\............................_\
i.................... ___/"...."\
|.................../"...."\ .....o!
l..................].......o !__../
.\..._..._.........\..___./......"~\
..X...\/...\.....................___./
.(. \.___......_.....--~~".....~`-.           
....`.Z,--........./.....................\
.......\__....(......../.........._____)
...........\.........l......../---~~" /
............Y.......\................../
............|........"x_____.^
............|.....................\
............j.....................Y

dullman

I get an error using your script (Script is Hanging) meaning it's loads map more then 10 sec, is possible to fix it or add anti hang solutions to script (I want to test if in this version works Map Zooming in right way if yes then i consider changing my res script if if it doesn't support fullscreen)

LiTTleDRAgo

Grave digging again. :P

Update version I (not tilemap rewrite)
- Revamped.
- Reduce most of the lagg in the script.

https://pastebin.com/3MEBNjUZ


Tried same thing to ver2 hoping to similar result without using .dll but failed miserably...