Is it possible to align text or adjust its outline without using a plugin?

hi.

I adjusted the text's center alignment and outline thickness using the VisuMZ_1_MessageCore plugin.
But I don't know why, the frame drops become so severe that the game freezes at certain sections.
If you remove the above plugin, the frame will work normally.
I searched and tested all other MZ plugins, but for some unknown reason, they did not work.
Is it possible to center the text or thicken the outline in MZ itself?
Or can I simply create a plugin by adding the above functionality?
Text alignment is determined via an argument sent to the drawText function, so you could call that manually and provide the "center" argument yourself to get centered text without a plugin.

Outline thickness is a little more complicated, as that's determined during the function Bitmap.prototype._drawTextOuline, which is called halfway through the drawText function at the bitmap level. So to override it, you'd basically have to create a copy of drawText that uses your custom outline values instead. The other option is to alias _drawTextOutline so that it returns a different value based on a condition you set, and then meet that condition in order to change the thickness.
Text alignment is determined via an argument sent to the drawText function, so you could call that manually and provide the "center" argument yourself to get centered text without a plugin.

Outline thickness is a little more complicated, as that's determined during the function Bitmap.prototype._drawTextOuline, which is called halfway through the drawText function at the bitmap level. So to override it, you'd basically have to create a copy of drawText that uses your custom outline values instead. The other option is to alias _drawTextOutline so that it returns a different value based on a condition you set, and then meet that condition in order to change the thickness.
What do you mean by calling it manually?
Do you mean General Script Calls?

The second answer is... sorry, I didn't understand.
Is drawText a plugin name?
What do you mean by calling it manually?
Do you mean General Script Calls?

The second answer is... sorry, I didn't understand.
Is drawText a plugin name?
Yes, I mean calling drawText in a script call instead of using the "show message" command, though you'd also have to show the message window in order to draw something on it.

And it's the name of the Javascript function that lies under the UI of the editor. Every event command runs some Javascript code under the hood when it's processed; drawText is a function that windows have which actually places the text you input onto the window. This in turn calls the drawText method on Bitmap, which is the base class the window contents use.
Yes, I mean calling drawText in a script call instead of using the "show message" command, though you'd also have to show the message window in order to draw something on it.

And it's the name of the Javascript function that lies under the UI of the editor. Every event command runs some Javascript code under the hood when it's processed; drawText is a function that windows have which actually places the text you input onto the window. This in turn calls the drawText method on Bitmap, which is the base class the window contents use.
hmm...
Thanks for your answer, but I don't know of any script.
This is where I refer to.



But when I searched for "drawText" I didn't find anything.
It was probably considered too low-level for the script call list as it's a bit more complex than those.
It was probably considered too low-level for the script call list as it's a bit more complex than those.

So is there no way I can do it?
So is there no way I can do it?
I mean you can do it via the method I described. Unfortunately I don't have the time right now to walk you through every step of that, so if you're unable to work it out at present you may need to wait until I'm less busy.
I mean you can do it via the method I described. Unfortunately I don't have the time right now to walk you through every step of that, so if you're unable to work it out at present you may need to wait until I'm less busy.
Since I am not a programmer, I cannot write scripts or create code.
This is because there is no relevant knowledge.
I am very sorry.
Since I am not a programmer, I cannot write scripts or create code.
This is because there is no relevant knowledge.
I am very sorry.
There's no need to apologise for that! I wasn't saying I don't have the time to admonish you; just to set your expectations that I'm unable to provide step-by-step instructions right now. ^_^
I think you've confused the issue a bit with the title to the thread.

You seem to be asking whether it's possible to do this without any plugin, so @Trihan is trying to guide you toward how you would do that.

Really, from reading your post you are simply trying to do it without specifically the VisuStella Message Core.

Then there's this weird part:
I searched and tested all other MZ plugins, but for some unknown reason, they did not work.
That's kind of meaningless. All computer code works or doesn't work for a reason - which plugins did you try, and what help did you ask for when they didn't work?

There doesn't seem to be a good reason for someone to look up all the code you'd need for this to make a little plugin when you've had problems getting other plugins to work. You might still have the same problem if you never got help with it.
I think you've confused the issue a bit with the title to the thread.

You seem to be asking whether it's possible to do this without any plugin, so @Trihan is trying to guide you toward how you would do that.

Really, from reading your post you are simply trying to do it without specifically the VisuStella Message Core.

Then there's this weird part:

That's kind of meaningless. All computer code works or doesn't work for a reason - which plugins did you try, and what help did you ask for when they didn't work?

There doesn't seem to be a good reason for someone to look up all the code you'd need for this to make a little plugin when you've had problems getting other plugins to work. You might still have the same problem if you never got help with it.
You are right.
This is not a problem at all if the VisuMZ_1_MessageCore plugin operates normally.
I thought of another alternative to remove this plugin.

Of course, I would still use the plugin if it didn't cause frame drops.
Since I have no programming knowledge, it is difficult for me to solve the problem on my own.

As you can see from the attached screenshot, when the tileset is changed, an image is added, or a switch is turned on or off, the frame rate drops significantly and the screen freezes. (In severe cases, the game freezes completely, and even the F5 key does not work)
When I open the developer console, the frame drop section is filled with something yellow.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-align-text-or-adjust-its-outline-without-using-a-plugin.165503/