[ACE] Yami's Pop Message -> Problems with escape character

Hello everyone!

I'm using Yanflys Ace Message System and alltough my Game is coming along quite nicely, I tried to evolve the Message System a bit.

So I stumbled upon the Script from Yami which is, to be honest, a blast! But I think it's buggy:

Evertyime I use the Tag \bm[x] the pop message pops over the ID, but the Tags are treaded as it was Text. So When I just write something down like "Test\bm[3]" the messagebox is not only fitting the text "Test" but the Tag as well, so it's a bit longer and looks like [ Test      ] instead of just [ Test ].

It even gets odder when I use multiple colors:

"\c[15]Test\c[0]!\c[12]This shouldn't be this long...\c[0]\bm[3]"

Every Escape Character get's treated as it would be a character, alltough it isn't being displayed. So the text bubble looks like this

[ Test! This shouldn't be this long...                     ] instead of [ Test! This shouldn't be this long... ]

I know that there was a bug solution for another of Yamis pop Message (the older version) that got rid of the Escape characters, but that didn't really helped me and the newer version is a bit more efficient for me.

Can anyone help me out here?
bump
Ok, I realize this is kind of an old thread, but I ran into this issue yesterday and the only discussion on the subject I could find is here. I was able to find a solution to this, so I'm posting it here in the hope it might help someone.
 
I'm using Yami Engine Symphony - Pop Message - Last Updated: 2013.01.29 in RPG Maker VX Ace. This solution might not work with other versions of the script.
 
The problem is that Yami is removing his own escape characters ( \bm[x], \cbm and \cbt[name] ) before showing the text, but the other general escape characters are still included. However, they must remain there to have their effects, so the solution is only to calculate the size of the pop-up window without them.
 
This can be achieved quite simply by changing the adjust_window_size method. Replace this line (#300):
 

#--- width = cal_width_line(text) + standard_padding * 2with this:

#--- text_short = text text_short.gsub!(/\e[VNPC\|]\[(.*)\]/i) { "" } text_short.gsub!(/\e./i) { "" } width = cal_width_line(text_short) + standard_padding * 2 Note that, if you're using other escape characters from another script at the same time, you might have to adjust the filters above to include those as well.
 
Cheers,
/Badab0um11

Original thread: https://forums.rpgmakerweb.com/threads/ace-yamis-pop-message-problems-with-escape-character.17192/