[BUG] Event pictures Missplaced

Hello

I found a bug within the newest version of RPG Maker MV. If i use a high resolution (like 1600x900) Event graphics get missplaced.

Are you using plugins? Did you disable them first? Does the bug still happen? Then report here.

This bug happen with all plugins what allow you to chance the resolution(since there is no way to change the resolution without a plugin) including the Community_Basic plugin. With default resolution everything is fine (even if the plugins are still active).


Bug Explanation: With some Resolutions, event pictures get misplaced. Since pictures say more then words


with 1600x900 resolution you can see that the doors have a slightly gab to the wall.



with default resolution everything is fine (some other resolutions like 1024x768 work too)

This bug btw happened with one of the recently updates. If i use the core scripts from ~ 1/2 year ago or older everything is fine with high resolution.

Exact Steps on How to Replicate Bug:

- make a new project
- install a plugin what allows you to change resolution
- activate it in plugin manager and change the resolution to 1600x900
- setup a map like shown in the picture above to make the bug visible (map size is 30x30 tiles in this example)
- start game

or use the sample project to skip this steps

Sample Project: https://www.mediafire.com/?l75fr49rhm5746i
@Provois
The numbers you gave do not fit together, and that might be the true cause of the problem and not the engine itself.

Minimum map size has to be identical to screen size - it is known that if the map is smaller than the screen size, the engine behaves differently and repeats the map irregularly. You just don't see that if the map is of the same tile like your example pictures above.

Tile size is 48x48 pixels, with a map size of 30x30 that is only 1440x1440 pixel - lower than your 1600 screen size.

for a 1600x900 screen, minimum required map size is 34x19 tiles.
Please repeat your tests with that map size, and make sure that you have some different tiles scattered to be able to see a loop in the map.
Hello Ander

Thank you for the reply.

I tested it now with your suggested map size of 34x19 and higher like 50x50 too. The result was:

On the coordinates i spawn, if i start a new game, everything seems to be fine but if i run to the right wall the event get misplaced the time the map scrolling get interrupted by reaching the right end of the map. And if i go to the left wall after the Event get misplaced it went back to the correct position after the map scrolling get interrupted by reaching the left wall.
can you make another test with map size 33x18 and screen size 1584x864 and check if the effect is there in that case or not?
With this resolution everything is fine even with other map sizes.
Then I know where the problem comes from - it had been known for some time, but it is/was not something easy to fix, especially because there are options to prevent the effect (which reduced the priority for working on that).

MV always had a problem as soon as partial tiles are required for the display. And the solution so far has been to simply suggest using only multiples of 48x48 as the game screen size.
I don't know if there is a fix for that possible, because some tiles (the autotiles) have to be calculated instead of simply being copied, and whenever a mathematical calculation on pixels happens, it can result in wrong rounding of numbers.

With this specific description it might be possible to find the formula that creates the problem, but I don't know if there is a solution (changing the formula might result in the gap being on the other side of the event)

Original thread: https://forums.rpgmakerweb.com/threads/bug-event-pictures-missplaced.81137/