Author Topic: [XP] Drago - Custom Resolution  (Read 6321 times)

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 831
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
[XP] Drago - Custom Resolution
« on: January 18, 2014, 09:06:33 AM »
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
Code: [Select]
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
(click to show/hide)

Credits and Thanks

  • LiTTleDRAgo
  • ForeverZer0  & KK20 for some methods used in this script
  • Wecoc for autotile addon (Version II only)

Author's Notes

Enjoy ~
« Last Edit: March 29, 2017, 07:03:43 AM by LiTTleDRAgo »

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Lexima Warrior
  • ****
  • Posts: 2954
  • LV: 368
  • Gender: Male
  • Bringer of Salt
    • View Profile
Re: [XP] Drago - Custom Resolution
« Reply #1 on: January 20, 2014, 07:18:37 AM »
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~



(click to show/hide)
NNID: KK20-CP

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 831
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago - Custom Resolution
« Reply #2 on: January 20, 2014, 06:25:56 PM »
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.

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

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 831
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago - Custom Resolution
« Reply #3 on: August 11, 2014, 01:01:09 AM »
*Script updated*

added zoom animation

Offline R5GAMER

  • Nobody?
  • Transcended Spirit
  • ***
  • Posts: 128
  • LV: 0
  • Gender: Male
    • View Profile
Re: [XP] Drago - Custom Resolution
« Reply #4 on: August 18, 2014, 04:56:35 PM »
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

God Hunter Online [PC] => 25% (Paused) => gohproject.free.fr
God Hunter (Offline) [PC] => 30% (In Work) => Site in work
God Hunter (Offline) [Android Edition] => 30% (In Work) => Site in work

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 831
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago - Custom Resolution
« Reply #5 on: August 20, 2014, 07:27:57 PM »
*update 2.14*

added map flip

(click to show/hide)

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:

Offline R5GAMER

  • Nobody?
  • Transcended Spirit
  • ***
  • Posts: 128
  • LV: 0
  • Gender: Male
    • View Profile
Re: [XP] Drago - Custom Resolution
« Reply #6 on: August 22, 2014, 08: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
« Last Edit: August 23, 2014, 01:29:07 AM by R5GAMER »
..........________
....'/,-Y"............."~-.
..l.Y.......................^.
./\............................_\
i.................... ___/"...."\
|.................../"...."\ .....o!
l..................].......o !__../
.\..._..._.........\..___./......"~\
..X...\/...\.....................___./
.(. \.___......_.....--~~".....~`-.           
....`.Z,--........./.....................\
.......\__....(......../.........._____)
...........\.........l......../---~~" /
............Y.......\................../
............|........"x_____.^
............|.....................\
............j.....................Y

God Hunter Online [PC] => 25% (Paused) => gohproject.free.fr
God Hunter (Offline) [PC] => 30% (In Work) => Site in work
God Hunter (Offline) [Android Edition] => 30% (In Work) => Site in work

Offline R5GAMER

  • Nobody?
  • Transcended Spirit
  • ***
  • Posts: 128
  • LV: 0
  • Gender: Male
    • View Profile
Re: [XP] Drago - Custom Resolution
« Reply #7 on: August 23, 2014, 01:47:35 AM »
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

God Hunter Online [PC] => 25% (Paused) => gohproject.free.fr
God Hunter (Offline) [PC] => 30% (In Work) => Site in work
God Hunter (Offline) [Android Edition] => 30% (In Work) => Site in work

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 831
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago - Custom Resolution
« Reply #8 on: August 23, 2014, 02:24:59 AM »
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.

Offline R5GAMER

  • Nobody?
  • Transcended Spirit
  • ***
  • Posts: 128
  • LV: 0
  • Gender: Male
    • View Profile
Re: [XP] Drago - Custom Resolution
« Reply #9 on: August 23, 2014, 03:35:22 AM »
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

God Hunter Online [PC] => 25% (Paused) => gohproject.free.fr
God Hunter (Offline) [PC] => 30% (In Work) => Site in work
God Hunter (Offline) [Android Edition] => 30% (In Work) => Site in work

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 831
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago - Custom Resolution
« Reply #10 on: August 23, 2014, 07:37:26 AM »
btw for reference, what error you got when using version 2?

Offline R5GAMER

  • Nobody?
  • Transcended Spirit
  • ***
  • Posts: 128
  • LV: 0
  • Gender: Male
    • View Profile
Re: [XP] Drago - Custom Resolution
« Reply #11 on: August 23, 2014, 04:28:49 PM »
"Script is hanging."
..........________
....'/,-Y"............."~-.
..l.Y.......................^.
./\............................_\
i.................... ___/"...."\
|.................../"...."\ .....o!
l..................].......o !__../
.\..._..._.........\..___./......"~\
..X...\/...\.....................___./
.(. \.___......_.....--~~".....~`-.           
....`.Z,--........./.....................\
.......\__....(......../.........._____)
...........\.........l......../---~~" /
............Y.......\................../
............|........"x_____.^
............|.....................\
............j.....................Y

God Hunter Online [PC] => 25% (Paused) => gohproject.free.fr
God Hunter (Offline) [PC] => 30% (In Work) => Site in work
God Hunter (Offline) [Android Edition] => 30% (In Work) => Site in work

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 831
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago - Custom Resolution
« Reply #12 on: August 24, 2014, 03:02:56 PM »
*updated*

try it again now

Offline R5GAMER

  • Nobody?
  • Transcended Spirit
  • ***
  • Posts: 128
  • LV: 0
  • Gender: Male
    • View Profile
Re: [XP] Drago - Custom Resolution
« Reply #13 on: August 25, 2014, 08:21:17 PM »
..........________
....'/,-Y"............."~-.
..l.Y.......................^.
./\............................_\
i.................... ___/"...."\
|.................../"...."\ .....o!
l..................].......o !__../
.\..._..._.........\..___./......"~\
..X...\/...\.....................___./
.(. \.___......_.....--~~".....~`-.           
....`.Z,--........./.....................\
.......\__....(......../.........._____)
...........\.........l......../---~~" /
............Y.......\................../
............|........"x_____.^
............|.....................\
............j.....................Y

God Hunter Online [PC] => 25% (Paused) => gohproject.free.fr
God Hunter (Offline) [PC] => 30% (In Work) => Site in work
God Hunter (Offline) [Android Edition] => 30% (In Work) => Site in work

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 831
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago - Custom Resolution
« Reply #14 on: August 26, 2014, 10:08:33 AM »
sorry, it seems I'm unable to fix the script for RMXOS :(

* updated 2.16 *
added Wecoc's autotile addon

Offline R5GAMER

  • Nobody?
  • Transcended Spirit
  • ***
  • Posts: 128
  • LV: 0
  • Gender: Male
    • View Profile
Re: [XP] Drago - Custom Resolution
« Reply #15 on: August 26, 2014, 04:05:17 PM »
I tested in 1920x1080 because im crazy lol..

(click to show/hide)

and 640x480

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

God Hunter Online [PC] => 25% (Paused) => gohproject.free.fr
God Hunter (Offline) [PC] => 30% (In Work) => Site in work
God Hunter (Offline) [Android Edition] => 30% (In Work) => Site in work

Offline dullman

  • Trained Member
  • *
  • Posts: 38
  • LV: 0
    • View Profile
Re: [XP] Drago - Custom Resolution
« Reply #16 on: September 08, 2014, 05:22:49 AM »
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)

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 831
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Drago - Custom Resolution
« Reply #17 on: March 29, 2017, 07:13:27 AM »
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...