MV Black bars when going full screen (YEP_CoreEngine)

Ok, I've seen many threads about this, but none of them helped me with my specific problem. The screen size I want is 1920x1080 and that was exactly the size I put in CoreEngine. However, I've tried every way to get rid of those black bars that insist on appearing:
Screenshot 2024-07-23 170221.png

  • I've already changed to other screen sizes that are in 16:9 resolution, but it didn't work.
  • Community_Basics and Yep_CoreEngine are not enabled at the same time. And there are no other plugins that change the resolution to be active.
  • I changed the game screen to 48x22 pixels (1920/48 and 1080/48) and I know it wouldn't be correct because 1080/48 would be 22.5, but even when I change it to a resolution of 1920x1056 (22*48) the problem still persists. As well as any other resolution close to 1920x1080.
  • There are no missing tiles in the map.
  • My monitor is 1920x1080 and have 27''
However, something interesting happens when I enter the console:
Screenshot 2024-07-23 151026.png


These 1808x1017 numbers appear, and when I change it to 1920x1080, the screen looks the way I want! But if I close the game and open it again, the changes are not saved.

Can someone please help me with that? :hsad:
Hmmm... I wonder if that's because your game is windowed the game resolution doesn't include that (from my understanding), so the top bar of your game window actually reduces the height and scales down the window. I'm able to use F4 to fully maximize my game screen and it's windowless, so no black bars for me. Have you tried that out?
Something isn't right as you describe it, because your game window is maximized.

1721770777179.png


If you were just running it and your game window size were set to the same dimensions as your monitor, it would fully fit your screen as a regular window. (note there is a difference between window size and resolution)


1721770816732.png


Are you using a desktop computer or a laptop? Is there any scaling set in your Windows?
Something isn't right as you describe it, because your game window is maximized.

View attachment 312367

If you were just running it and your game window size were set to the same dimensions as your monitor, it would fully fit your screen as a regular window. (note there is a difference between window size and resolution)


View attachment 312368

Are you using a desktop computer or a laptop? Is there any scaling set in your Windows?

Ok, so now I'm a little confuse, I'm clearly doing something wrong. When I open the game the window do not fill the screen:

Screenshot 2024-07-23 185324.png


So I always have to maximize the window. And the problem persists. Should I be using some plugin to star the game on full screen?

Hmmm... I wonder if that's because your game is windowed the game resolution doesn't include that (from my understanding), so the top bar of your game window actually reduces the height and scales down the window. I'm able to use F4 to fully maximize my game screen and it's windowless, so no black bars for me. Have you tried that out?
I don't think I fully understand what you just said... How can change this, if my game is in this mode?
I tried to use F4 just now:
Screenshot 2024-07-23 190310.png


If this is too simple, sorry guys. I'm just getting started with RM.
Ok, so now I'm a little confuse, I'm clearly doing something wrong. When I open the game the window do not fill the screen:
I strongly suspect you have more than one plugin changing the game window dimensions.

For example, the Community_Basic comes installed by default in all projects and has parameters for this. If you have both that and Yanfly's Core Engine installed and they have different values, only one will actually work.

If this is too simple, sorry guys. I'm just getting started with RM.
You might want to take a step back and not worry about doing this right now. Do tutorials, make little practice games with no plugins at all. Just learn how to use MV and events and all that stuff before you try to mod it with plugins.
Well it has nothing to do with YEP core.
It is just the style of the canvas don't stretch with your window.

You can put these in your gamefont.css:

CSS:
#GameCanvas, #GameVideo, UpperCanvas {
  width:100% !important;
  height:100% !important;
}

You know you can't get rid of the black bars without deforming the image, unless you want to leave half of the side tiles outside of the screen.


Edit* This will keep the aspect ratio, but will clip the extra tiles if the screen is not wide enough.

CSS:
#GameCanvas, #GameVideo, UpperCanvas {
  width:100% !important;
  height:100% !important;
  object-fit:cover;
}
You said there are no missing tiles in your map, but is your map actually enough tiles wide to be filling 1,920 pixels?

@utunnels I don't think that addresses the apparent issue of the game window supposedly being 1920x1080 but it doesn't fill the 1920x1080 display when the game runs.
@utunnels I don't think that addresses the apparent issue of the game window supposedly being 1920x1080 but it doesn't fill the 1920x1080 display when the game runs.
From the OP's screenshot, he said if he changed the number manually it looked correct. So I just made a css solution for that.
From the OP's screenshot, he said if he changed the number manually it looked correct. So I just made a css solution for that.
I guess I don't understand. From the screenshot he also said his supposedly 1920x1080 game window doesn't fill his supposedly 1920x1080 monitor unless he clicks maximize - so that tells me one of those two numbers is actually incorrect.

I assume from the canvas size seen in the screenshot you reference that the Yanfly Core is not sizing the window to the specified values, which is why I asked above about other plugins. If it's because of a plugin conflict, editing the css manually should be unnecessary and it may cause other problems in the project.

But it doesn't really matter without further information from the OP.
Yeah, you are correct. The mouse position for an instance, need to be recalculated which can not be done by changing css alone. Umm.
OMGGG! I think I just find the solution, thanks to @ATT_Turan

I was using 40x22 here
Screenshot 2024-07-24 005158.png


But as soon as I double those numbers (80x44) and start the playtest and hit F4 the window was perfectly adjusted.

But only when I press F4 that it worked, When the playtest window appears, it shows the black borders again. I wonder if that would cause some trouble in other screens
You seem to be misunderstanding what the black is. That's the background behind the map. Obviously if you put more tiles in, there won't be any space visible to be black.

The dimensions of your map (what you just showed) has no effect on the size of your game window. If your game window is set to 1920x1080 and your monitor is set to 1920x1080, the game should already fill your screen as soon as it's launched.

I've said that, like, three times now.

When you just hit F4 or Maximize, you are stretching your game window to fit the screen, which is going to distort your graphics. You seem to be kind of ignoring the basic issue of the game's window size, which is that you should not have to be pressing anything.

Anyway, good luck with your project.
Oh, and by the way, your window size can't be bigger than your screen size.
So if your desktop is also 1920x1080, you are expected to run the game in fullscreen.
If you run it in window mode, the operating system will reduce its size to fit your screen.
At least it is how it works in windows 10 and 11.
Oh, and by the way, your window size can't be bigger than your screen size.
So if your desktop is also 1920x1080, you are expected to run the game in fullscreen.
If you run it in window mode, the operating system will reduce its size to fit your screen.
At least it is how it works in windows 10 and 11.
My desktop resolution is set to 1920x1080.

I made a test project, used Community Basic to set the game window size to 1920x1080.

The game window fills my screen without being maximized. There's, like, a one-pixel border going down the sides, but nothing like what the OP showed in post #4.

1721823457475.png
1080 / 48 = 22.5 if its round up or down, it goes to 22 or 23.
you want it to have it either 1056 to match the 22 width though.
1721825988186.png
@ATT_Turan It should, because the window is obviously slimmer than 1920x1080, with a titlebar above and a taskbar below. Your title picture is not set to scale by the way.
the window is obviously slimmer than 1920x1080, with a titlebar above and a taskbar below.
What taskbar below? And the point I keep making it it fills the screen - there is not a visible gap like in the OP's post #4. I don't understand why you keep sort of talking sideways to that.

Your title picture is not set to scale by the way.
Of course not, I said it was a new test project - how is that germane? 🤣

I guess I just don't understand what people are discussing/asking in this thread at this point, so I'll stop replying. It seems to be going in strange, errant directions.
Your print shows exactly what was happening to my screen
View attachment 312410
@ATT_Turan It should, because the window is obviously slimmer than 1920x1080, with a titlebar above and a taskbar below. Your title picture is not set to scale by the way.
OK, I thought the OP was talking about the black bars on the left and right side. But now I see the title says "fullscreen" so he probably means the two slim black bars above and below the map. lol
------------------------------
So they are there just because your map is 22 tiles tall, while your screen height is 22.5 tiles.

Original thread: https://forums.rpgmakerweb.com/threads/black-bars-when-going-full-screen-yep_coreengine.170559/