Bug Blurry text and window skin problems on message balloons depending on its length

While using any Window Message Popup plugin (tried with the one that comes with RPG Maker, with GALV's and Gabe's), sometimes, depending on the length, text is very blurry and there's a line on the left side of the window box.

Message working fine:
1608248691089.png

Message with the problem:

1608248673439.png



Here's an empty project using MessageWindowsPopup that shows the problem.



This keeps happening with the last CoreScript 1.1.1, also happens with the older ones.
I didn't notice before because using plugins to pixelate the game fixed this, but with 1.1.1 the problem stays.
As this is something that happens for messages while you are using a message plugin, you should assume it is a bug in the plugin rather than a bug in MZ itself. Try creating a post in Plugin/Js support section or contacting whoever created the message plugin you are using and see if they are willing to take a look at it.
As this is something that happens for messages while you are using a message plugin, you should assume it is a bug in the plugin rather than a bug in MZ itself. Try creating a post in Plugin/Js support section or contacting whoever created the message plugin you are using and see if they are willing to take a look at it.
Well, as I said, it happens with at least the 3 different plugins I tried, from different authors, including one that comes with the program. I wonder if it'd keep happening if more people make plugins with variable width message boxes.
So I'm assuming 3 different people won't make the same mistake, specially when using a "pixellated" plugin removes the problem (excluding the last version that actually breaks this "fix").
Does it happen when you're NOT using a plugin? To see, you need a window that's not the full width of the game screen. Try a few Show Choices options - one where the choices are all very short in length, and another where they're very long. Or a normal message with a name box - one where the name is very short, and another where the name is very long. Make sure there are no active plugins when you do this, just to ensure they're not altering the message window in any way. Then try the same things, but set your game window to a larger size using the Community plugin and no other.

If that gives the same results, then it's an issue with the core scripts. If it doesn't give the same results, it's an issue with the plugins, and the way they are calculating the window size for the message window.
Based on the the artifact you are getting it is likely caused by some floating point kerfuffel.
Maybe the either the x or y coordiante of the message window isn't an int or the scaling of the window not being exacly 1.0.
This kind of artifacting could even be hardware/driver dependent meaning only some people see it and why no one else has noticed it.
Were that to be the case it is not at all out of the question that 3 scipters made the same mistake (though it might be better to write a preventative measure for it in the core scipt if it is enough of an issue).
Based on the the artifact you are getting it is likely caused by some floating point kerfuffel.
Maybe the either the x or y coordiante of the message window isn't an int or the scaling of the window not being exacly 1.0.
This kind of artifacting could even be hardware/driver dependent meaning only some people see it and why no one else has noticed it.
Were that to be the case it is not at all out of the question that 3 scipters made the same mistake (though it might be better to write a preventative measure for it in the core scipt if it is enough of an issue).
Yeah the problem is probably related to any of your two first guesses. I tried, without any plugin, setting the UI area width to numbers like 531 and the problem appears again.
A friend and I have the same problem and my guess if anyone tries it is that they'll also get the same problem (the project is there on the first post so people can try it).

Does it happen when you're NOT using a plugin? To see, you need a window that's not the full width of the game screen. Try a few Show Choices options - one where the choices are all very short in length, and another where they're very long. Or a normal message with a name box - one where the name is very short, and another where the name is very long. Make sure there are no active plugins when you do this, just to ensure they're not altering the message window in any way. Then try the same things, but set your game window to a larger size using the Community plugin and no other.

If that gives the same results, then it's an issue with the core scripts. If it doesn't give the same results, it's an issue with the plugins, and the way they are calculating the window size for the message window.
I tried without any plugins, normal message window, setting the UI area width to 531, and the problem appears again. If I change it to 530 or 532, the problem disappears.

1608506339888.png


I know no one in their right mind would use such weird numbers, but the problem with the Window Popup plugins, I guess, is that all those plugins have the message boxes are positioned and created depending on the character location and the text length.
I downloaded your project and tested it.
Got the same blurriness.
So I opened up the plugin in a text editor and encased x,y coordinates in parseInt() calls randomly to make sure the coordinates are integers to avoid floating point errors, saved and tested the game again, and the blurriness as well as the black line went poof, gone.
If you want a quick fix for that plugin specifically, encasing the values that get assigned to the window's x and y coordinates at lines 1036 and 1037 in the MessageWindowPopup plugin seems to do the trick.
But I think you should contact the creators of these script and inform them of this issue so they can do an official fix, not only for you but for everyone else that use these scripts as well.

The issue is probably that they position the message box by taking position x,y and then removing half the width of the window, which in the case where window has a width that is not even, you end up with an x coordinate that is *something*.5.

Still though. Drawing UI at fractional positions is probably not something you ever wanna do, so the best fix might be to add restriction in the core script window classes that prevent window coordinates from being floats. So reporting this as a bug turned out to be correct after all.

Original thread: https://forums.rpgmakerweb.com/threads/blurry-text-and-window-skin-problems-on-message-balloons-depending-on-its-length.131122/