Issue getting the correct face to show during a battle event

I am using Shaz's Plugin MoreEscapeCodes2.

Screenshot1 (the second one) is the event where I control variables and enter the text message.  Screenshot2 is the text message that results.

For some reason the image from my file isn't showing in the text message.  Does anyone know why?

This problem seems to only happen to me during a battle event so that might be significant. 

Screenshot1.png

Screenshot2.png
Can you show corresponding screenshots for out-of-battle messages that work correctly?


Are you using any plugins that alter battle processing?


I've moved this thread to JS Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.


(also, nobody else has access to that plugin - only you, so they can't see how it's set up)
Can you show corresponding screenshots for out-of-battle messages that work correctly?

Are you using any plugins that alter battle processing?

I've moved this thread to JS Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

(also, nobody else has access to that plugin - only you, so they can't see how it's set up)
Sure I can do that.

Screenshot 3 is the common event where I control the variables.  Screenshot 4 is the common event where I show the text.  Screenshot5 is the resulting message on the game.

I am not sure how the other Plugins I use relate to battle processing.  I use Tsukihime's BattleWeather, Modern Algebra's Global Text Codes, obviously your MoreEscapeCodes2 and a Battle Parameter Plugin Heislerdinger helped me put together.

If you think any of these might be the culprit let me know and I could post the codes for you in detail so you can check them out and see.

Thanks for moving my thread to the right place.  I thought you had added MoreEscapeCodes2 to your available list of Plugins.  So I didn't know I was the only one who had access to it.  I bet I looked like a fool asking so generally about it.  No wonder I wasn't getting any replies.  lol

As always, thanks for your time.

Screenshot3.png

Screenshot4.png

Screenshot5.png
lol!


The Global Text Codes plugin might be having some effect. If you disable that plugin, save your game, and run the battle, does it change anything?


It may just be that Show Text in battles works a bit differently and I haven't catered for it.
lol!

The Global Text Codes plugin might be having some effect. If you disable that plugin, save your game, and run the battle, does it change anything?

It may just be that Show Text in battles works a bit differently and I haven't catered for it.
Disabling the Global Text Codes Plugin didn't seem to change anything.  I included another screenshot of the text message after disabling the Global Text Codes plugin though just in case.

The Plugin works perfectly everywhere else except for inside a battle.  So I am guessing that battle probably does have something to do with it.  

Screenshot6.png
Okay, thanks for checking. I'll take a look and see what's going on.
Quick question:

The file name of the face from your "Get ON:NPC_Face" event, that is working, only contains underscores, no periods.

Could it be that you mistyped the file name for the enemies?
No. It would still do the substitution in the message (ie - it would remove the code from the message), but either just wouldn't show a face at all, or would throw an error when trying to find it.
Quick question:

The file name of the face from your "Get ON:NPC_Face" event, that is working, only contains underscores, no periods.

Could it be that you mistyped the file name for the enemies?
I suspected a misspelling at first too.  But after comparing the file name with that of my variable over a dozen times I came to the conclusion that couldn't be it.  That or it's time I went to an ophthalmologist.  Plus - as Shaz pointed out - I would expect to get an error of some kind if the program was unable to find the correct file name or I had written a command wrong.

But your question pointed out a unique possibility I hadn't considered.  The file names I was attempting to use in battle did all have periods in their names.  So I created a new file and changed file name from E.Faces1_Edited to E_Faces1_Edited.  Basically I just changed the period to an underscore.  And now it works!

Screenshot7 is the changes I made to the event where I control the variables.  Screenshot8 is the resulting text message (as you can see, the enemy's face is now showing up).

So I suppose the problem wasn't the battle at all, but instead was my use of periods inside a file name?  If that is the case I'll just refrain from using periods to describe my files for now on and see if I run into any more problems.  Thanks to you both for helping me out with this. 🙂

Screenshot7.pngScreenshot8.png
Ah, that is why, I suspect. When it looks for a file name, it looks for characters, numbers, underscores, and maybe spaces. A period probably is not one of the characters the regular expression would pick up. Nice solve, everyone 🙂

Original thread: https://forums.rpgmakerweb.com/threads/issue-getting-the-correct-face-to-show-during-a-battle-event.54182/