Possible YEP_MessageCore bug: restricting to 3 rows and enabling line wrap cuts fourth row of origin

There appears to be a possible YEP_MessageCore bug:


When setting the rows down to 3, then enabling line wrap, and then entering a text in the editor over 4 lines, the text will be cut off to 3 lines ingame even if with the wrapping it would have fitted into 3 lines.


Why can't I simply write text in 3 rows in the editor to fit the 3 rows ingame you ask?


The reason is that my font ingame is much denser (small character width) than in the editor,


so what I can just about fit into the editor in 4 rows (without exceeding the width of the text input) will show up ingame in just 3 lines after word wrapping - so everything would be fine if only message core hadn't decided to cut away the 4th row without any need before wrapping and fitting the input to the actual ingame window...
I found a workaround:


Search the beginning of the "command101" function in YEP_MessageCore.js:


Game_Interpreter.prototype.command101 = function() {


Inside the function, replace the following condition:


if ($gameMessage._texts.length >= $gameSystem.messageRows())) break;


with this:


if ($gameMessage._texts.length >=
Math.max(4, $gameSystem.messageRows())) break;


Obviously this is a hack, and I'm sure there is a better way to deal with this.. but for now it seems to do the job for me
I want you to know that your sheer philanthropy and courtesy has saved my life. The fact you chose to, in spite of not receiving even a single reply for your obscure issue, extensively document your tribulations and how you resolved them so that those with lesser knowledge, were they ever in the same sorry shoes you once had to fill, could learn from your suffering, to change and grow from it.
You saved me from otherwise making drastic changes on my project, enduring hours of suffering.
Thank you.
Necro-post notice: @Feli0_TheWriter

Original thread: https://forums.rpgmakerweb.com/threads/possible-yep_messagecore-bug-restricting-to-3-rows-and-enabling-line-wrap-cuts-fourth-row-of-origin.62722/