Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: LiTTleDRAgo on January 18, 2014, 02:06:33 am

Title: [XP] Drago - Custom Resolution
Post by: LiTTleDRAgo on January 18, 2014, 02:06:33 am
Drago - Custom Resolution
Authors: LiTTleDRAgo
Version: 2.16
Type: Resolution Script
Key Term: Game Utility



Introduction

~


Features




Screenshots

(http://1.bp.blogspot.com/-yTGYR1smTIQ/UtolY0B22MI/AAAAAAAAAYo/OkzMHPl-jXI/s72-c/Drago+Custom+Resolution.JPG) (http://1.bp.blogspot.com/-yTGYR1smTIQ/UtolY0B22MI/AAAAAAAAAYo/OkzMHPl-jXI/s1600/Drago+Custom+Resolution.JPG)
Click to enlarge


Script

Version I (http://littledrago.blogspot.com/2014/01/rgss-drago-custom-resolution.html) (Not Tilemap Rewrite) (Updated 2017/03/29)

Version II (http://littledrago.blogspot.com/2014/07/rgss-drago-custom-resolution-ii.html) (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




Author's Notes

Enjoy ~
Title: Re: [XP] Drago - Custom Resolution
Post by: KK20 on January 20, 2014, 12: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~
Title: Re: [XP] Drago - Custom Resolution
Post by: LiTTleDRAgo on January 20, 2014, 11:25:56 am
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
Title: Re: [XP] Drago - Custom Resolution
Post by: LiTTleDRAgo on August 10, 2014, 07:01:09 pm
*Script updated*

added zoom animation
Title: Re: [XP] Drago - Custom Resolution
Post by: 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 :)
Title: Re: [XP] Drago - Custom Resolution
Post by: LiTTleDRAgo on August 20, 2014, 01:27:57 pm
*update 2.14*

added map flip

Spoiler: ShowHide
(http://i.imgur.com/efdpFsFs.png) (http://i.imgur.com/efdpFsF.png)


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:
Title: Re: [XP] Drago - Custom Resolution
Post by: 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
Title: Re: [XP] Drago - Custom Resolution
Post by: R5GAMER on August 22, 2014, 07:47:35 pm
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)
Title: Re: [XP] Drago - Custom Resolution
Post by: 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.
Title: Re: [XP] Drago - Custom Resolution
Post by: R5GAMER on August 22, 2014, 09:35:22 pm
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 ......
Title: Re: [XP] Drago - Custom Resolution
Post by: LiTTleDRAgo on August 23, 2014, 01:37:26 am
btw for reference, what error you got when using version 2?
Title: Re: [XP] Drago - Custom Resolution
Post by: R5GAMER on August 23, 2014, 10:28:49 am
"Script is hanging."
Title: Re: [XP] Drago - Custom Resolution
Post by: LiTTleDRAgo on August 24, 2014, 09:02:56 am
*updated*

try it again now
Title: Re: [XP] Drago - Custom Resolution
Post by: R5GAMER on August 25, 2014, 02:21:17 pm
(http://gohproject.free.fr/uki.png)
Title: Re: [XP] Drago - Custom Resolution
Post by: LiTTleDRAgo on August 26, 2014, 04:08:33 am
sorry, it seems I'm unable to fix the script for RMXOS :(

* updated 2.16 *
added Wecoc's autotile addon (http://forum.chaos-project.com/index.php/topic,12742.0.html)
Title: Re: [XP] Drago - Custom Resolution
Post by: R5GAMER on August 26, 2014, 10:05:17 am
I tested in 1920x1080 because im crazy lol..

Spoiler: ShowHide
(http://gohproject.free.fr/aze.png)


and 640x480

Spoiler: ShowHide
(http://gohproject.free.fr/azb.png)
Title: Re: [XP] Drago - Custom Resolution
Post by: dullman on September 07, 2014, 11:22:49 pm
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)
Title: Re: [XP] Drago - Custom Resolution
Post by: LiTTleDRAgo on March 29, 2017, 01: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...