Text Message Window Resize Issue

Hey guys,

I am having an issue with the textbox resizing each time I activate a text event (pictured below) - forgive my snipping skills it's the width that is only changing. Wondering if anyone has had a similar issue or a possible work around?

First event trigger
index.php

Second event trigger
1655001976364.png

Third event trigger
1655001990807.png


I am using the below plugin to centre the text as well as Yanfly’s message core. The issue began to occur after using the centre text plugin (using the command <CENTER>)

https://github.com/biud436/MV/blob/master/RS_MessageAlign.js

The exact event I’m using is as per below
1655002023515.png


And if it’s at all relevant these are my window settings on YanflyMessageCore
1655002038457.png

I’ve tried setting a default width but it still seems to resize (though less obviously then the example I’ve given).

I've also tried using spaces to manually centre the text, but the spaces trigger the text sound effects and causes a brief delay before the next line.

Let me know if there's any other info you might need.

Thank you!

Hrktu

I've moved this thread to Javascript/Plugin Support. Thank you.

I don't know for the MV version, but in the VXAce version Yanfly had a variable assigned for the text width. Which means that whenever that variable got a number assigned, the text window was set to that size.

and THAT is why you are required to configure any script or plugin the moment you install it, NEVER trusting that the default values fit to your project:
a lot of the plugins do the same and configure variables for use, and if the default configuration has a variable used that you already used somewhere else, you'll always end up with strange effects due to that variable suddenly pulling double duty without your knowledge.

it's either that or your yanfly plugins are in the wrong order, something that is also known to cause issues with them.
so please give a complete screenshot of the plugin configuration (not limiting it to a part of the window) as well as screenshots of your main plugin manager where we can see all plugins and their order.
Thank you, both those possible issues make a lot of sense.

This is my list of plugins

1655012222317.png


Attached below is my plugin configurations for:

Yep_MessageCore
1655012301353.png

1655012320691.png


TextAlignment (which appears to have no parameters

1655012355953.png



The text alignment plugin specifies that it needs to be below YEP_MessageCore.

I have tried putting text alignment at the bottom and the same issue occurs.

The issue only occurs once I turn on ‘TextAlignment’, so I think you might be right that they are configuring the same variable. Do you have any recommendations about which area to edit in the TextAlignment script that might fix the issue?

Cheers for the help!
your yanfly plugins are in the wrong order - you need to correct that.
I can't say if that is the cause of the problem, but it will cause other problems sooner or later.

yanfly's list on yanfly.moe give the correct order, top to bottom, for all plugins. they have to be in exactly this order to function correctly.


Additionally, please avoid filenames that break the networking rules for everything from plugins to pictures to whatever.
in your case "font size" breaks those rules by having a space in the filename - there is a reason why other plugins use _ instead of spaces...

changing all this will make any existing savefiles incompatible, so after you changed all that please start a new game for your next test if that solved the issues.
I’ve re-ordered my yanfly plugins as per below:

Category:Yanfly Engine Plugins - Yanfly.moe Wiki

1655016675675.png


I’ve also fixed the name for font_size.

Thank you, I’m sure you’ve saved me from a few headaches in the future.

Unfortunately the same issue is occurring. I’ve done some troubleshooting and found the following:

-----------------------------------------------------------------------------------------------------
Aligning left causes no textbox width issue
1655016702131.png

Aligning centre causes the textbox to change size the more you interact with it

[as per image on original post]

Aligning to the right causes the textbox to look as per below, and does not change the more you interact with the event
1655016736062.png


-----------------------------------------------------------------------------------------------------

I’ve found the below code from TextAlignment (seems to be at least partly responsible) for generating the text window (left text, centre text, and right text respectively)

1655016787925.png


I’ve had a few go changing some variables, for example:

Removing ‘- tx / 2’ in the Window_Base.prototype.setAlignCentre function leads to the image below (note: it still ends up resizing on interaction. This is the size it settles on after 3-4 interactions)

1655016820775.png


I’m still struggling to pinpoint what’s causing the centre alignment command to recalculate the box size.

Thanks again for all the help!

If anything doesn’t make sense or requires further information just let me know.

Original thread: https://forums.rpgmakerweb.com/threads/text-message-window-resize-issue.148455/