A way to break the 640x480 resolution limit?

I'm aware of the RGD engine mod and have tried to use it, but it caused a lot of game crashing incompatibilities with the scripts I use for my games. As well as these issues:
* Broke color codes for text
* More than halved framerate

I was wondering if there was another engine replacement that allows me to break the 640x480 resolution limit for VX Ace.
Long before RGD was introduced, I broke the resolution using someone's script here.


I'm not sure if the original post still exists (I haven't looked further). But, you can take the script here, link in the description, and it should be unencrypted.

Do note that using more than 640x480 could impact the performance, just simply by going bigger. In the first place, the RGSS engine wasn't meant for higher resolution.
Long before RGD was introduced, I broke the resolution using someone's script here.


I'm not sure if the original post still exists (I haven't looked further). But, you can take the script here, link in the description, and it should be unencrypted.

Do note that using more than 640x480 could impact the performance, just simply by going bigger. In the first place, the RGSS engine wasn't meant for higher resolution.


... Ah. Thanks Theo, but I think you're right. It doesn't break anything like RGD but there's still some oddities and the game's performance tanks a bit.

It also clashes with the fullscreen script I was already using, where it'll revert back to 640x480 for some reason. Maybe I should just stick to the resolution I already have for now.
there once was a betatest dll of an unlimited graphics library for Ace, but that was revoced several months before MV came out. Only those who have the original download are still allowed to use it legally.
On my phone currently, so can't check myself, but was the script Unlimited Resolution by Hime, the one that has the assembly hack?
I'm not sure if the original post still exists (I haven't looked further). But, you can take the script here, link in the description, and it should be unencrypted.
I went to youtube, clicked the link, downloaded the file, extracted it and ran game.exe.
1666189364352.png


Is it something with the project or does that script have an issue.
It gives the same error on a blank project.

I just tested the RGD with Hime's unlimited resolution script and they work well.
But like you said RGD has incompatibilities.
Here worked just fine.
You need a backtracer to see which line actually has an issue because that line is pointed in a lambda function, which isn't helpful.

EDIT:
On my phone currently, so can't check myself, but was the script Unlimited Resolution by Hime, the one that has the assembly hack?
IIRC I also tried this, it comes with a weird quirk such as the graphics screen transition won't cover the entire screen (only up to 640x480), especially if you are using a black-white picture (Idk what's the term of it). It was fine if it's just fadeout/fadein.
Didn't take a look at the thing linked above, here's something I'm using in some experiments:

The following code (or very close to this) was posted somewhere a very long time ago, I can't figure out anymore who made this. It manipulates some values in the engine's RAM directly (afaik it MUST use RGSS301.dll or will crash) to support a higher resolution (max-values are defined at the top).

[WARNING] Using this script breaks everything related to displaying a graphic that utilizes the Plane-class, it will completely stop working. Sprite-class-stuff will show up completely normal.

Ruby:
unless $@ || $MKXP
  max_width = 1280
  max_height = 960
  wt, ht = max_width.divmod(32), max_height.divmod(32)
  wt.last + ht.last == 0 || fail('Incorrect width or height')
  wh = -> w, h, off = 0 { [w + off, h + off].pack('l2').scan /.{4}/ }
  w, h = wh.(max_width, max_height)
  ww, hh = wh.(max_width, max_height, 32)
  www, hhh = wh.(wt.first.succ, ht.first.succ)
  base = 0x10000000
  mod = -> adr, val { DL::CPtr.new(base + adr)[0, val.size] = val }
  mod.(0x195F, "\x90" * 5)
  mod.(0x19A4, h)
  mod.(0x19A9, w)
  mod.(0x1A56, h)
  mod.(0x1A5B, w)
  mod.(0x20F6, w)
  mod.(0x20FF, w)
  mod.(0x2106, h)
  mod.(0x210F, h)
  zero = [0].pack ?l
  mod.(0x1C5E3, zero)
  mod.(0x1C5E8, zero)
  mod.(0x1F477, h)
  mod.(0x1F47C, w)
  mod.(0x211FF, hh)
  mod.(0x21204, ww)
  mod.(0x21D7D, hhh[0])
  mod.(0x21E01, www[0])
  mod.(0x10DEA8, h)
  mod.(0x10DEAD, w)
  mod.(0x10DEDF, h)
  mod.(0x10DEF0, w)
  mod.(0x10DF14, h)
  mod.(0x10DF18, w)
  mod.(0x10DF48, h)
  mod.(0x10DF4C, w)
  mod.(0x10E6A7, w)
  mod.(0x10E6C3, h)
  mod.(0x10EEA9, w)
  mod.(0x10EEB9, h)
  GC.start
end

And... oh my gah. There's a project where I also wanted to use RGD, too. But that nice-looking beast absolutely never works with anything I'm creating, very close to all the problems MKXP has with handling my stuff. Always. It's frustrating.

~炬燵あ
Didn't take a look at the thing linked above, here's something I'm using in some experiments:

The following code (or very close to this) was posted somewhere a very long time ago, I can't figure out anymore who made this.
In fact, the link I provided uses a similar code to this, they credited it to this Pastebin link. But it also adds some fixes to it.
Didn't take a look at the thing linked above, here's something I'm using in some experiments:

The following code (or very close to this) was posted somewhere a very long time ago, I can't figure out anymore who made this. It manipulates some values in the engine's RAM directly (afaik it MUST use RGSS301.dll or will crash) to support a higher resolution (max-values are defined at the top).

[WARNING] Using this script breaks everything related to displaying a graphic that utilizes the Plane-class, it will completely stop working. Sprite-class-stuff will show up completely normal.

Ruby:
unless $@ || $MKXP
  max_width = 1280
  max_height = 960
  wt, ht = max_width.divmod(32), max_height.divmod(32)
  wt.last + ht.last == 0 || fail('Incorrect width or height')
  wh = -> w, h, off = 0 { [w + off, h + off].pack('l2').scan /.{4}/ }
  w, h = wh.(max_width, max_height)
  ww, hh = wh.(max_width, max_height, 32)
  www, hhh = wh.(wt.first.succ, ht.first.succ)
  base = 0x10000000
  mod = -> adr, val { DL::CPtr.new(base + adr)[0, val.size] = val }
  mod.(0x195F, "\x90" * 5)
  mod.(0x19A4, h)
  mod.(0x19A9, w)
  mod.(0x1A56, h)
  mod.(0x1A5B, w)
  mod.(0x20F6, w)
  mod.(0x20FF, w)
  mod.(0x2106, h)
  mod.(0x210F, h)
  zero = [0].pack ?l
  mod.(0x1C5E3, zero)
  mod.(0x1C5E8, zero)
  mod.(0x1F477, h)
  mod.(0x1F47C, w)
  mod.(0x211FF, hh)
  mod.(0x21204, ww)
  mod.(0x21D7D, hhh[0])
  mod.(0x21E01, www[0])
  mod.(0x10DEA8, h)
  mod.(0x10DEAD, w)
  mod.(0x10DEDF, h)
  mod.(0x10DEF0, w)
  mod.(0x10DF14, h)
  mod.(0x10DF18, w)
  mod.(0x10DF48, h)
  mod.(0x10DF4C, w)
  mod.(0x10E6A7, w)
  mod.(0x10E6C3, h)
  mod.(0x10EEA9, w)
  mod.(0x10EEB9, h)
  GC.start
end

And... oh my gah. There's a project where I also wanted to use RGD, too. But that nice-looking beast absolutely never works with anything I'm creating, very close to all the problems MKXP has with handling my stuff. Always. It's frustrating.

~炬燵あ
Well, it wouldn't run because it doesn't know what DL or CPtr are supposed to be.
Well, it wouldn't run because it doesn't know what DL or CPtr are supposed to be.
But it does.
Go randomly insert p DL::CPtr anywhere in the script editor, it won't crash.
You need a backtracer to see which line actually has an issue because that line is pointed in a lambda function, which isn't helpful.
The only thing that comes up is my screen resolution, So maybe the script is not able to handle the high resolution?
2560x1440
So maybe the script is not able to handle the high resolution?
I'm pretty sure you could investigate it yourself simply by changing numbers, then reporting your finding, right?
I'm pretty sure you could investigate it yourself simply by changing numbers, then reporting your finding, right?
Well I didn't change numbers, but yes some testing helped.
Ruby:
      width = 1920 if width >= 2000
      height = 1080 if height >= 1100
The screen size is still set to Graphics.resize_screen(1300, 640)

But adding those two lines to set the max screen size worked.
Now it's just a matter of knowing what the actual limit is.

And I believe the limit is 2527. setting the width to 2528 makes the error but 2527 works.
I did 30 tests gradually increasing the number, first by 100 then 50 then 10 then 1.
also working from the top down a bit as well. so this seems to be the hard limit for the script or maybe the program.

Using a calculator 32 x 80 = 2528. So if you used the script remember the max resolution should be set to 79 tiles in width. 32 x 79 = 2496
IIRC I also tried this, it comes with a weird quirk
Hime's Unlimited Resolution uses the address manipulation code already shared in this thread. What you describe is the community effort that went alongside it as being the problem.
The following code (or very close to this) was posted somewhere a very long time ago, I can't figure out anymore who made this.

Context: there was a bounty for creating a resolution breaker for the project XP Ace (spearheaded by Terv, later adopted by me). No one truly knows the original author.
But it also adds some fixes to it.
You missed an important fix that I provided: https://forums.rpgmakerweb.com/index.php?threads/triple-triad-hi-res.107832/#post-960384
Well, it wouldn't run because it doesn't know what DL or CPtr are supposed to be.
DL was deprecated in later versions of Ruby. Try using the vanilla RPG Maker engine instead of one of your custom/MKXP-modified ones.
This custom launcher provides unlimited resolution, among other things:
This custom launcher provides unlimited resolution, among other things:
This has already been mentioned in the opening post.

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-break-the-640x480-resolution-limit.152073/