MZ VisuStella Battle Core + Eli Message Actions = blank commands?

This is an odd one, because at first glace I completely fail to see what these two plugins have to do with each other. Nevertheless....

So, this started when we ran into an issue with VisuStella's Battle Core wherein no matter what battle layout we chose, the names of the commands in the command window for both the party commands and individual actor commands all were blank.

Spoiler: Screenshot of the issue
vsvseli1.png

Full disclosure, the "This is the attack command" message is a tooltip window generated by Help Windows, the pixel font there is from Bitmap Font Pro, and (not shown in this image, but) the actor portraits are animated by Faces Reaction, all three of which are plugins by the absolutely amazing @Eliaquim . These plugins are all doing things that add or adjust things in the battle window, so at first it seemed like a very reasonable assumption that one of them was causing compatibility issues somehow.

But it wasn't them. We tried turning all of those (and more!) off, and the problem persisted.

No, when we finally isolated the problem, it turned out it was a plugin that's causing this issue when it and VisuStella Battle Core are on at the same time, but it wasn't any of those. It was... Message Actions.

Which... wait what? Seriously?? Mess-... Message Actions. Why Message Actions?? Message Actions doesn't even do anything remotely related to the battle layout. Literally all it does is add more escape codes so that one can do things like /ALIGN to left/center/right-justify text or things like that. Why would it mix with VisuStella Battle Core in a way that blanks out the commands?

And yet, that's what's happening. We confirmed this by disabling Message Actions and leaving every other plugin in our loadout on... it works fine. Tried running only VisuStella Battle Core and Message Commands with every single other plugin except for their respective cores (VisuStella's tier 0 Core Engine and Eli Book) disabled... just those four alone made the command blanking happen again. Reordering them hasn't fixed anything, at least in any of the order configurations we've tried.

The only thing I can figure is maybe one of the default names for one of the escape codes Message Actions creates collides with one of the variable names somewhere in Battle Core somewhere... because if it's not that, then I'm at a complete loss what any of these plugins (or their prerequisite cores) have to do with each other, and why they would be causing this issue when mixed together. Especially when the ones you would think are standing closer to what Battle Core actually does and thus might cause a collision of some sort (Help Windows, Bitmap Font Pro, Faces Reaction, etc.) all work just fine.

Much thanks and appreciation for any help or ideas anyone can suggest!
I'm not sure I know how to fix this, but it's possible the issue exists because the message plugin reworks the way text is drawn, which would include the text inside command windows? What is supposed to be in the command windows though, are you trying to make it draw icons or something? 😅
Of course it can affect that - all text outputs, no matter what, are routed through the same functions to ccheck for escape codes - because yes, you can use some (although not all) escape codes even in the database text fields.

and it seems that the two plugins conflict, probably because visustella expects you to use its own message plugin.
you can try reordering, or use their message plugin - anything else is difficult because visustella obfuscates their code
Hi there 🙂

Thanks for tag me! Well, let's try some things out to see if we manage to fix the issue!
On my understanding, you manage to isolate the problem, by letting only four plugins enabled:
  • Visu Core Engine
  • Visu Battle Core
  • Eli Book
  • Message Actions
If that is right, here are some things you can try do:

Change the plugin order. Put my plugins above Visu or below and see what will happen. Play with their orders. You can even try to do a order like that for example:
  • Eli Book
  • Visu Core Engine
  • Message Actions
  • Visu Battle Core
If that not changes, I believe maybe the conflict can be with the Visu Engine Core. Just for the sake of elimination, try disabling the battle core, and go to the battle again to see if it works.

If that still not work, you can build a sample project replicating the issue, and send me the link on PM here on the forum, so I can take a look for you.
A kind of a project that I would open up, click on a event and go to the battle and see the issue happening.
Thank you so much for the responses and the help, everyone!

I'm not sure I know how to fix this, but it's possible the issue exists because the message plugin reworks the way text is drawn, which would include the text inside command windows? What is supposed to be in the command windows though, are you trying to make it draw icons or something? 😅
Oh my heck, you're a genius. I never in a million years would have figured that connection out, but...

The Battle Core gives you your choice of options regarding how to display the battle commands. They can be text-only or they can have icons attached. And the text-only version... works, actually! Attempting to display the icons causes the blanking issue, though. I never would have guessed it was that, but...

Spoiler: More screenshots
vsvseli2.png

Battle Core set to display the commands via text only. Message Actions is enabled in this screenshot--everything is all up and working perfectly together.

vsvseli3.png

What the commands look like with the icons drawn, for reference. Message Actions had to be disabled for this screenshot to be taken--if Message Actions and Visu Battle Core are on at the same time and the latter tries to put icons here, it causes the blanking issue as seen in the original post.

Hi there 🙂

Thanks for tag me! Well, let's try some things out to see if we manage to fix the issue!
On my understanding, you manage to isolate the problem, by letting only four plugins enabled:
  • Visu Core Engine
  • Visu Battle Core
  • Eli Book
  • Message Actions
If that is right, here are some things you can try do:

Change the plugin order. Put my plugins above Visu or below and see what will happen. Play with their orders. You can even try to do a order like that for example:
  • Eli Book
  • Visu Core Engine
  • Message Actions
  • Visu Battle Core
If that not changes, I believe maybe the conflict can be with the Visu Engine Core. Just for the sake of elimination, try disabling the battle core, and go to the battle again to see if it works.

If that still not work, you can build a sample project replicating the issue, and send me the link on PM here on the forum, so I can take a look for you.
A kind of a project that I would open up, click on a event and go to the battle and see the issue happening.
Confirmed that disabling Battle Core gets things working just the same way that disabling Message Actions does--one or the other works, but it's just getting those two to get along together that's the problem. Then again, without Battle Core, there's no way to get the battle commands to have icons by default, and (as shown above) that seems to be the real root of the problem. Can't really test if Message Actions can handle icon commands without Battle Core because Battle Core is what gives us the icon commands. ^^;

Playing around with the order as suggested does not resolve the issue. I want to provide a project for you to look at, but I tried to just start a whole fresh brand new sample project with nothing done to it except for installing those for plugins, and... now it works.😔 So something else in our main project is apparently a factor, too, and goodness knows what... we already tried disabling every plugin except those four....

The icon set file, maybe..? It is rather excessive, I'll admit, but that's.. still rather peculiar, given how absurdly specific the rest of this puzzle is (the combination of those exact two/four plugins while everything else still works, etc.)
So something else in our main project is apparently a factor, too, and goodness knows what...
Check the versions of everything. If the new test project is running a newer version of the MZ core scripts than your old one.

If you added a different version of the VS plugins to test. Etc.
I hope you can figure this out because Eli Message Actions is unironically one of my favorite plugins since you can use it to toggle switches and run common events indirectly or directly in places you normally can't like certain sequences in the battle scene, menus and when you're talking to NPCs
Check the versions of everything. If the new test project is running a newer version of the MZ core scripts than your old one.

If you added a different version of the VS plugins to test. Etc.
Excellent point and catch, and I definitely could be wrong, but I think everything matches. I literally copy/pasted the .js files from our main project's plugin folder to the new test one, and those four plugins ate the only ones the new one even has. So, the plugin situation between the two should be identical... right? Hence me suspecting some sort of database change (maybe the main one doesn't like how I configured that fox gal you see there instead of default Reid's party or... something) or one of the system files, like the IconSet.png file or something. Those are all I can think of that's different.

I hope you can figure this out because Eli Message Actions is unironically one of my favorite plugins since you can use it to toggle switches and run common events indirectly or directly in places you normally can't like certain sequences in the battle scene, menus and when you're talking to NPCs
Good heavens, same. We use Eli Bitmap Font Pro for that pixel font you see there, and the ability to change the outline color as well as the color of the font itself alone makes Message Actions absolutely essential.

Not to mention Eli is one of the sweetest, most above-and-beyond extra-mile responsive content creators we've ever met. Have we mentioned that time we asked out of curiosity if his Info Book plugin could do a particular thing we wanted to do, and his response was basically "... not yet but that's a cool idea and I'll put it in the next version update if you can wait a bit?" He really didn't owe us anything more than a "no, sorry 🙁" to answer the question, but he's going to just... hecking... add an entirely new feature, just because we asked about it. That's just unreal. O_O
Well, if it works in one project but not another, it must be something in that project.

Your plugin parameter settings are not copied with the plugin files, so go through all of those with a fine toothed comb.
Thank you so much for the responses and the help, everyone!


Oh my heck, you're a genius. I never in a million years would have figured that connection out, but...

The Battle Core gives you your choice of options regarding how to display the battle commands. They can be text-only or they can have icons attached. And the text-only version... works, actually! Attempting to display the icons causes the blanking issue, though. I never would have guessed it was that, but...

Spoiler: More screenshots
View attachment 270489
Battle Core set to display the commands via text only. Message Actions is enabled in this screenshot--everything is all up and working perfectly together.

View attachment 270490
What the commands look like with the icons drawn, for reference. Message Actions had to be disabled for this screenshot to be taken--if Message Actions and Visu Battle Core are on at the same time and the latter tries to put icons here, it causes the blanking issue as seen in the original post.


Confirmed that disabling Battle Core gets things working just the same way that disabling Message Actions does--one or the other works, but it's just getting those two to get along together that's the problem. Then again, without Battle Core, there's no way to get the battle commands to have icons by default, and (as shown above) that seems to be the real root of the problem. Can't really test if Message Actions can handle icon commands without Battle Core because Battle Core is what gives us the icon commands. ^^;

Playing around with the order as suggested does not resolve the issue. I want to provide a project for you to look at, but I tried to just start a whole fresh brand new sample project with nothing done to it except for installing those for plugins, and... now it works.😔 So something else in our main project is apparently a factor, too, and goodness knows what... we already tried disabling every plugin except those four....

The icon set file, maybe..? It is rather excessive, I'll admit, but that's.. still rather peculiar, given how absurdly specific the rest of this puzzle is (the combination of those exact two/four plugins while everything else still works, etc.)
Hmm!!

So, what I can think of about what you said, is that by default command windows has their text align centered. I believe maybe(since I cannot know for sure on the code) when Visu plugin tries to draw the icon, he changes the alignment to "left".

While my plugin forces the alignment to center (unless you change the alignment with \Align escape code). Maybe that change is causing the text to be drawn on a wrong coordinate.

But, if it work on a project and not on another, I think the issue should be on some plugin parameter configuration. I know that Visu plugins has a lot of parameters to setup. So maybe there is something there.

If you find no solution by messing with the plugin parameters, a workaround, could be using my Global Text plugin (Let's you draw escape codes on any window), and use it to draw the icons on the battle command:

\Align[Left]\i[ID]Attack
1690233126192.png
Don't the VS plugins (core/battle at least) themselves offer to place icons/center text on some, if not all commands though? Like this (there may be more sections that control this):

1690256557907.png
Don't the VS plugins (core/battle at least) themselves offer to place icons/center text on some, if not all commands though? Like this (there may be more sections that control this):

View attachment 270613
Yeah, I guess so. But I suggested that workaround with Global Text plugin, because the OP said that using only the text versions on the commands(without icons) everything worked:
The Battle Core gives you your choice of options regarding how to display the battle commands. They can be text-only or they can have icons attached. And the text-only version... works, actually!

So maybe just applying the icons another way could be an alternative to avoid the issue.
Hello and thank you for the suggestions, everyone! We've been doing some testing and trying things out, and while the issue sadly persists, we've uncovered a lot of interesting new clues that could help pinpoint exactly what's going on!

Well, if it works in one project but not another, it must be something in that project.

Your plugin parameter settings are not copied with the plugin files, so go through all of those with a fine toothed comb.

Hmm!!

So, what I can think of about what you said, is that by default command windows has their text align centered. I believe maybe(since I cannot know for sure on the code) when Visu plugin tries to draw the icon, he changes the alignment to "left".

While my plugin forces the alignment to center (unless you change the alignment with \Align escape code). Maybe that change is causing the text to be drawn on a wrong coordinate.

Thank you so much for this--these were both great catches that we wouldn't have thought of! And... it was a long and exhausting odyssey, but after trying to integrate those suggestions, having things go bonkers in all new and exiting ways, and ironing out... everything, I believe we've finally managed to crack the case! This is going to be a long explanation, because there are a lot of factors at play. Before we get into this, we really must thank you from the bottom of our hearts... we just unraveled an entire conspiracy of things that came together for this issue to happen, and we wouldn't have found half of them without trying your advice.

So. First off, we have confirmed that yes, when the boxes appear blank, that indeed is an alignment issue. The boxes appear blank because the text is being printed far off the edge of the screen somewhere. For now, it appears the issue can be fixed (or at least worked around) by changing the name of the first action in the menu (so the default "Attack" skill for the actor command menu, mostly) to add that \Align(Left) to it.

While that particular part seems open and shut now, I really feel the need to get into the entire web of circumstances in which this becomes an issue in the first place, though--again, it wasn't misaligned when Message Actions or Battle Core was disabled, only when they were working together, and only when Battle Core was trying to draw icons!

And in addition to that, we traced the reason why our freshly-created battle test project wasn't experiencing the issue when our main project was to a particular setting in Eli Message Actions. Specifically, the one for escape codes from other plugins.

Spoiler: Screenshot
vsvseli4.png

When this plugin is first installed, that field is blank. Like, not just that the ChangeMessageSE parameter is set to "" or "[]" or something instead of "CSE;" I mean that entire field is just 100% not there. This is a very unstable property; once you open the edit window for this parameter and click OK to dismiss it again, even without making any actual changes whatsoever, it will automatically become the default settings you see here, and it will remain so from that point forward. The only way to get it back to the way it was is to go to the raw "Text" tab and just delete the entire field.

So. When we created that brand new Battle Test project, this field hadn't been initialized yet. The Visu Battle Core stuff worked perfectly, drawing the icons and all. As soon as we went through all the settings at @ATT_Turan 's suggestion, doing so initialized this field, and suddenly the Battle Test project looks like this instead of being blank there, and suddenly now the Battle Test project is experiencing the same problems the main one had (the "Attack"/"Guard"/"Etc." commands are blank when Message Actions and Visu Battle Core are both running at the same time.)

Spoiler: Screenshot
vsvseli5.png

We suspected this meant that one of the default escape codes in that particular section (either \CSC or \FNT) was to blame, but changing them to \TESTONE and \TESTTWO and even changing them to nothing at all (just erasing and leaving the value fields blank) failed to fix the issue; the only solution was to remove the entire field, either by making sure it had never been initialized in the first place or, if it had, then deleting the entire string from the "Text" tab.

From that point, things remained broken until we disabled one plugin or the other, changed the command display to text only... or tried the \Align trick. The latter now has everything working together as intended, finally, both in the battle test and (at long last) in our main project!

In other words, with your help, we have uncovered a very particular edge case scenario where
  • If a project is running both VisuStella Battle Core and Eli Message Actions (and their respective prerequisite core engine plugins)
  • If VisuStella Battle Core's "Command Window" -> "Style" options in the "Party Command Window" and/or "Actor Command Window" parameters are set to "Icon + Text" (all the other options appear to work)
  • AND if Eli Message Actions has had its "From Other Plugins" -> "Extension Plugins" parameter initialized (i.e., it's not completely blank)
Then, and only then, the text will become misaligned, printing it in what is probably supposed to be "Center" but is actually far off the edge of the screen somewhere, leaving the message boxes blank.

It should be noted, by the way, that VisuStella Battle Core has a text alignment option in both the Party and Actor Command Window settings (it's literally the very next one right under the aforementioned "Style" option) but setting them to left in these fields does not appear to work; the issue still persists as long as all of the above conditions are met. Changing the order of the plugins does not appear to change anything, from our experimentation attempts.

This issue can be fixed (or at least you can get it working with something of a workaround?) by adding \Align to the name of the basic "Attack" skill (by default Database -> Skills -> 0001) and to the default "Fight" command in the overall party commands (Database -> Terms -> Fight). However, this issue only arises if all of the above conditions are met, meaning you can also solve it by disabling Battle Core or Message Actions, by changing Battle Core's command display options to anything other than "Icon + Text," or by making sure Message Actions' "From Other Plugins" parameter has not been initialized and is completely blank.

This raises a lot of questions not only about this particular chain of interactions, but why the alignment is so off to begin with (why are "center" and "right" off on the moon somewhere, rather than the actual center and right of those boxes there?) But... while you all chew on those, the good news is at least the mystery is solved and our project is once again in working order. :yhappy:

Spoiler: Screenshot
vsvseli6.png
(Apologies for the actor names looking mismatched compared to the rest of the text; we now have a new probably-unrelated mystery where Visu Core Engine + Eli Bitmap Font Pro seems to just make the actor names gigantic like that witihout converting them to the bitmap font. ^^; But at least the battle commands work!)

I/we really cannot thank you all enough for your help... this was a tough one, and piecing together a puzzle that intricate feels almost miraculous. We most definitely would never have been able to do it without your advice and suggestions and insight. Thank you all so, so much!! 🙏
It should be noted, by the way, that VisuStella Battle Core has a text alignment option in both the Party and Actor Command Window settings (it's literally the very next one right under the aforementioned "Style" option) but setting them to left in these fields does not appear to work; the issue still persists as long as all of the above conditions are met. Changing the order of the plugins does not appear to change anything, from our experimentation attempts.
- I did some tests here, by setting the Extension Plugin parameter to blank(on the Message Actions) and as I suspected, it does trigger a silent error, regardless the Plugin Parameter:
1690391736211.png


This means, although your game is running, this plugin is not working at all. And I believe, that is why the Battle commands are porperly drawn. I believe if you leave this parameter blank, and remove the \Align of the battle commands, they will work anyway.

Now, I presume not only on the Battle Commands, but some other Window Commands around the code, Visustella has an option to change the alignment and add icons(Like on the main menu for example, or on some custom windows they made).

For that reason, I created a little patch on my plugin, to detect if any Visu plugins are present, and if they are, my plugin will "disable" the alignment feature for any Window Command, leaving the path free for Visu codes do their thing.

I will be glad if you could do this test for me on your project, one more time. But this time, do not leave the parameter blank. Fill the Message Actions parameter. And then, test it with the Battle Core Text + Icons parameter and see if it will fix the issue.

The download is on the attachment. If it works, I will update on Itch io. Let me know.
I will be glad if you could do this test for me on your project, one more time. But this time, do not leave the parameter blank. Fill the Message Actions parameter. And then, test it with the Battle Core Text + Icons parameter and see if it will fix the issue.

The download is on the attachment. If it works, I will update on Itch io. Let me know.
Of course--after all you've done for us, we are more than happy to test anything you like. ^^

Results of test below... very encouraging, I think you fixed it! 😂

Spoiler: Full account, with screenshots
vsvseli7.png

Going back to our original main project, the one that started this whole thread. Turned off every plugin except Visu Core Engine and Visu Battle Core + Eli Book and Message Actions. Took out the /Align escape codes in the Attack and Fight commands so those weren't saving us anymore. And, sure enough, the issue is recreated. Okay, we're ready to start the test!

vsvseli8.png

You mentioned to make sure the Extension Plugins variable was properly initialized and not blank for this test. We completely deleted and removed the old version of the plugin and this is what the new version you just attached looks like immediately off of a fresh install, before we touched anything at all--if the fact that the Extension Plugins variable was starting off uninitalized/blank was a bug or error or something, then it looks like you fixed that, too. :yhappy:

vsvseli9.png

Test running again, with the same four plugins only, but Message Actions is the new version (and that variable is initialized--it had to be; it came that way now.) The commands work! Your fix works!!

vsvseli10.png

Just to be ambitious and really push our luck, I tried turning all of our plugins back on. This is the test with all of the ones we bought from you, the entire VisuStella Wave 1 Cores library, a couple other things on the side... everything! Just throw the entire stack of plugins at the problem, all at once, to see if anything still rattles it... nope, everything's working fine, even all together!

(The only issue we can see between any plugins is that the name of the actor, "Red" in this case, reacts to the presence of Eli Bitmap Font Pro by becoming noticeably much larger than it used to be in the previous image, but without changing to the bitmap font as expected... so you just get this huge version of the default font instead. That is completely unrelated to the whole blank commands/alignment thing with Message Actions, though. Unsure what's causing that; maybe investigating that will be our next project....)

So, in conclusion... you fixed it! Well done!! 😂

Once again, thank you thank you thank you, everyone in this thread for all your help and advice, Eli for your amazing responsiveness and expertise in sorting the problem out once it was identified... this entire community is lovely and amazing and we wouldn't be anywhere without each and every one of you. Keep on being awesome, you all. :yhappy:
Of course--after all you've done for us, we are more than happy to test anything you like. ^^

Results of test below... very encouraging, I think you fixed it! 😂

Spoiler: Full account, with screenshots
View attachment 270871
Going back to our original main project, the one that started this whole thread. Turned off every plugin except Visu Core Engine and Visu Battle Core + Eli Book and Message Actions. Took out the /Align escape codes in the Attack and Fight commands so those weren't saving us anymore. And, sure enough, the issue is recreated. Okay, we're ready to start the test!

View attachment 270872
You mentioned to make sure the Extension Plugins variable was properly initialized and not blank for this test. We completely deleted and removed the old version of the plugin and this is what the new version you just attached looks like immediately off of a fresh install, before we touched anything at all--if the fact that the Extension Plugins variable was starting off uninitalized/blank was a bug or error or something, then it looks like you fixed that, too. :yhappy:

View attachment 270873
Test running again, with the same four plugins only, but Message Actions is the new version (and that variable is initialized--it had to be; it came that way now.) The commands work! Your fix works!!

View attachment 270874
Just to be ambitious and really push our luck, I tried turning all of our plugins back on. This is the test with all of the ones we bought from you, the entire VisuStella Wave 1 Cores library, a couple other things on the side... everything! Just throw the entire stack of plugins at the problem, all at once, to see if anything still rattles it... nope, everything's working fine, even all together!

(The only issue we can see between any plugins is that the name of the actor, "Red" in this case, reacts to the presence of Eli Bitmap Font Pro by becoming noticeably much larger than it used to be in the previous image, but without changing to the bitmap font as expected... so you just get this huge version of the default font instead. That is completely unrelated to the whole blank commands/alignment thing with Message Actions, though. Unsure what's causing that; maybe investigating that will be our next project....)

So, in conclusion... you fixed it! Well done!! 😂

Once again, thank you thank you thank you, everyone in this thread for all your help and advice, Eli for your amazing responsiveness and expertise in sorting the problem out once it was identified... this entire community is lovely and amazing and we wouldn't be anywhere without each and every one of you. Keep on being awesome, you all. :yhappy:
Yes, nice it worked! Will update it on itch io as soon as I can.
If you manage to do mroe tests on the bitmap issue, feel free to open a new thread and tag me there. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/visustella-battle-core-eli-message-actions-blank-commands.159649/