How to use the High-Resolution .DLL

The problem:
When you use a resolution with a height that is not a multiple of 32, RPG Maker will show part of the topmost row of tiles after the last row of tiles of the map:

the%20problem.png


The workaround:

Code:
class Game_Map  def width    if Graphics.width % 32 == 0      @map.width    else      @map.width - 1    end  end    def height    if Graphics.height % 32 == 0      @map.height    else      @map.height - 1    end  end  end
I'm basically making Rpg Maker think that the map is one tile smaller than it actually is. This way, instead of showing part of the topmost tile row, it will show part of this last tile row that the player can't reach.

If you are using a resolution that is a multiple of 32 pixels, nothing will change.

 

the%20workaround.png


 

 

And you can also add this to better calculate the center of the screen.

 

Code:
class Game_Player < Game_Character  def center_x    ((Graphics.width / 32).round - 1) / 2.0  end   def center_y    ((Graphics.height / 32).round - 1) / 2.0  endend 
The problem:

When you use a resolution with a height that is not a multiple of 32, RPG Maker will show part of the topmost row of tiles after the last row of tiles of the map:

The workaround:

class Game_Map  def width    if Graphics.width % 32 == 0      @map.width    else      @map.width - 1    end  end    def height    if Graphics.height % 32 == 0      @map.height    else      @map.height - 1    end  end  end 

I'm basically making Rpg Maker think that the map is one tile smaller than it actually is. This way, instead of showing part of the topmost tile row, it will show part of this last tile row that the player can't reach.

If you are using a resolution that is a multiple of 32 pixels, nothing will change.

 

 
You are the most incredible person in the universe.

EDIT: Updating main post!!
Well after changing resolutions, my battles seem to have a few minor problems for example, when I do the bow attack, the bow lands after the enemy starts attacking, is there anyway I can temporarily set the resolution to the original resolution and after the battle ends, it will go back to the set resolution? I am using Victors Animated Battlers, but if there is any battle systems that doesn't have this problem with custom resolutions please tell me!
It would be troublesome to change resolution mid-game. Do you know what happens if you keep the same window size and change the resolution to a lower one? It goes blurry. So no, aesthetically it just looks bad too. You could get around it with fullscreen++, but it would still be jarring to a player not fullscreened. Even a f++ user would see a lot of blackness. Changing screen size to compensate every time you go into a battle would be horrendous too, lol.

When you say that 'the bow lands after the enemy starts attacking' are you saying animations are delayed? Can you conform that the attack animation for the enemy is not set to a bow strike? Or is there something else? Can you provide a video?
It would be troublesome to change resolution mid-game. Do you know what happens if you keep the same window size and change the resolution to a lower one? It goes blurry. So no, aesthetically it just looks bad too. You could get around it with fullscreen++, but it would still be jarring to a player not fullscreened. Even a f++ user would see a lot of blackness. Changing screen size to compensate every time you go into a battle would be horrendous too, lol.

When you say that 'the bow lands after the enemy starts attacking' are you saying animations are delayed? Can you conform that the attack animation for the enemy is not set to a bow strike? Or is there something else? Can you provide a video?
Here you go
Oooooh, that's really simple! It's just that one of two things has to be changed: The "duration" of the attack, or the "speed" of the attack. The "duration" has to be increased, or the "speed" made faster. The quick fix is a wait X frames - the simple reason is that the arrow is travelling over a greater distance than in the small screen, so it takes longer to reach its target and looks weird. The default animation rate is only set up to account for the duration that it takes to reach the opponent.


There is another fix: Go into the animation database (if you are using animations for these attacks) and add extra frames on the end of the bow animation. Like, 30 should do. If you are not using animations, then you will have to look into the actual script itself or ask in the rgss3 support forum to find someone who can modify what I said to modify 🙂


P.S: That's a great setup! What scripts do you have going to change the res/screensize at the same time?
Oooooh, that's really simple! It's just that one of two things has to be changed: The "duration" of the attack, or the "speed" of the attack. The "duration" has to be increased, or the "speed" made faster. The quick fix is a wait X frames - the simple reason is that the arrow is travelling over a greater distance than in the small screen, so it takes longer to reach its target and looks weird. The default animation rate is only set up to account for the duration that it takes to reach the opponent.

There is another fix: Go into the animation database (if you are using animations for these attacks) and add extra frames on the end of the bow animation. Like, 30 should do. If you are not using animations, then you will have to look into the actual script itself or ask in the rgss3 support forum to find someone who can modify what I said to modify 🙂

P.S: That's a great setup! What scripts do you have going to change the res/screensize at the same time?
I use a modified version of Vlue's Basic Options menu that I modified and even more modified by Archiea lol , Fullscreen++ and Resolution Selection Script    
Hi, can I suggest another script to add on to your collection?

Tsukihime's Battle Sprites Auto-Position :

http://himeworks.com/2013/02/battle-sprite-auto-position/

Basically, this script will calculate the ratio difference between the Troop Editor's resolution and the game's resolution, and allow you to set up battlers properly, regardless of the screen resolution.

It even works with side view battle scripts.

The only "conflict" is that it cannot be used concurrently with Yanfly's Ace Core Engine, unless you apply custom settings to it according to different screen resolutions.
Do you know the "custom settings" we have to apply to make it compatible? This is a really usefull script
Hi, SakifX9, Yanfly's script has been looked into since then.

If you are planning on using Yanfly's Ace Core Engine, you can edit lines 469-470 and replace them with the following:

      enemy.screen_x = member.x * Graphics.width / 544.0

      enemy.screen_y = member.y * Graphics.height / 416.0

 

You wouldn't need the Battle Sprites Auto-Position script then. (Although the script is still useful for people who don't use Yanfly's Ace Core Engine for various reasons).

Credit goes to Tsukihime for his script, as well as for identifying the part of Yanfly's script that could be edited. ^^
Hi, SakifX9, Yanfly's script has been looked into since then.

If you are planning on using Yanfly's Ace Core Engine, you can edit lines 469-470 and replace them with the following:

      enemy.screen_x = member.x * Graphics.width / 544.0

      enemy.screen_y = member.y * Graphics.height / 416.0
Uhh is this supposed to happen?
It should be

enemy.screen_x = member.x * (Graphics.width / 544.0)enemy.screen_y = member.y * (Graphics.height / 416.0)parenthesis is important
Actually it should not matter whether you use brackets or not in this case:


x = 2 * 3 / 12 = 6 / 12 = 0.5


x = 2 * (3 / 12) = 2 * 0.25 = 0.5


With or without brackets, the result is the same.
It should be

enemy.screen_x = member.x * (Graphics.width / 544.0)enemy.screen_y = member.y * (Graphics.height / 416.0)parenthesis is important
Still the same problem :/

Edit: Problem solved
Hello.

The The High-Resolution .DLL Link  give me a error, not sure if just me or not is longer available.

This is the error page:

Sorry, we couldn't find that!

[#10340]

You do not have permission to view this topic.
Uh-oh. Let me PM Archeia.
Since we already reached final stages of the DLL, the experimental dll is no longer required. To avoid any further problems, we're working on finalizing it and have a surprise for everyone. We are also required to hide the topic and stop the redistribution of the DLL as a result.  🙂
Since we already reached final stages of the DLL, the experimental dll is no longer required. To avoid any further problems, we're working on finalizing it and have a surprise for everyone. We are also required to hide the topic and stop the redistribution of the DLL as a result.  🙂
Thank you!!

@Mjolk: Looks like I'll be updating the topic when the new thing is out - it sounds like an actual RM update 😀 (well, here's hoping! If it is, whoop!)
So, if I have a really huge monster, they're always drawn way too high up in the screen so I can't really make use of the higher resolution in terms of bigger monsters? Unless there's a way to script them to appear lower or so. Like, I am using monster that'd be 800x660 on 1336x736 but I'm unable to align it even with the autoposition.
So, if I have a really huge monster, they're always drawn way too high up in the screen so I can't really make use of the higher resolution in terms of bigger monsters? Unless there's a way to script them to appear lower or so. Like, I am using monster that'd be 800x660 on 1336x736 but I'm unable to align it even with the autoposition.
I use Neonblack's battle script which allows me to autoposition - do any of the solutions previously mentioned not work for you?
I use Neonblack's battle script which allows me to autoposition - do any of the solutions previously mentioned not work for you?
I haven't tested Neonblack's, you suggested Tsukihime's in your starting post though so I've been using that. I have all the other scripts already mentioned. 

EDIT: If it helps, I am using Mog's ATB https://atelierrgss.wordpress.com/rgss3-active-time-battle/

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-the-high-resolution-dll.34578/