VXAce Game resolution weirdness

Hey y'all, hoping somebody might be able to help me with an issue I'm having.

So, while testing, I've been noticing some weirdness with how the game screen displays certain elements -- namely how the camera centers on the player. I've narrowed it down to an issue with the Graphics.resize_screen function called from Yanfly's Ace Engine Core.

My game's resolution in those settings is set to 640×360, and I'm using pictures to create a letterbox on the sides of the screen to simulate a 480×360 screen size (for reasons). However, with the actual game window being set to 640px wide, I've noticed that the player character is slightly off-center. This isn't a huge deal, but I've recently tried implementing Zeus81's Map Effects script to add some extra flair like camera zooms, and when it zooms in it becomes *very* noticeable.

I've tried fiddling with these settings, and setting it lower that 600 seems to at least make it less noticeable, but then that messes with the letterboxing and also causes artifacting when putting the game into fullscreen.

I've tried commenting out the part of the code that says:

Ruby:
Graphics.resize_screen(YEA::CORE::RESIZE_WIDTH,YEA::CORE::RESIZE_HEIGHT)

And replacing it with:

Ruby:
Graphics.resize_screen(640,360)

But I run into the same issue, so I'm thinking it's definitely an issue with the Graphics.resize_screen function itself. That said, I have also noticed that some other elements are also off-center, specifically on my current laptop. For example, on my old PC, I never ran into any alignment issues, but on my current laptop some pictures set to Graphics.width/2 are off-center, so I'm not sure if it's a problem with the script call or an issue with my display.

Is there an alternative function call I could try instead?
Is this how you intend your game to look? So far it is centered for me. (My test project only has Yanfly and the Map Effects though.)
1773197743212.png


1773197710311.png
That is how I'm trying to get it to look, and I'm fairly certain I attempted to just plug those two into a fresh project on their own as well, and I'm pretty sure the alignment wasn't as bad as my main project but still was slightly off. The thing is, I've tried commenting out more or less every script in my main project one at a time to see what else could be causing the issue, and no matter what I removed or changed the order of, it was still off-center. Literally the only thing I could find that made a difference when changed was the Graphics.resize_screen function.

I'll try and grab some screen recordings when I get home to my laptop to further show what the issue is I'm having.
Yeah try a fresh project and start adding all scripts over time to see what's causing the problem, because I don't think it's these two if it looks like this on a base project.
Okay I fixed it! Sorry for the trouble, turns out it wasn't a script issue at all. My splash screen map and game initialization map were both kept at the default 17×13 tiles, and when I went back to look at an older build I noticed that those maps in that version were changed to 20×15. I changed the maps in my current build to the proper sizes and it works now! Not totally sure why they broke like that but I'm not gonna complain, lol.

Thank you Solita for reaching out to help regardless!
Okay I fixed it! Sorry for the trouble, turns out it wasn't a script issue at all. My splash screen map and game initialization map were both kept at the default 17×13 tiles, and when I went back to look at an older build I noticed that those maps in that version were changed to 20×15. I changed the maps in my current build to the proper sizes and it works now! Not totally sure why they broke like that but I'm not gonna complain, lol.

Thank you Solita for reaching out to help regardless!
You're welcome ^^ Glad to know you got it figured out and wasn't a huge script issue.

Original thread: https://forums.rpgmakerweb.com/threads/game-resolution-weirdness.182796/