MV Eli Face Window Bug- Animated Face lost after Conditional Branch/Choice

Hello and thanks for looking at this.

I have a bug with Eliaquim/Hakuen Studio's MV Face Window that I would like someone to see if there is a solution for. This can be downloaded for free as part of his collection, but terms are such that I can't post it here directly but it can be edited by others freely and put into project. Hence there's also a demo of the specific problem just including this on the below link!!

Eli Face Window (MV) is a super cool plugin that lets us show a face easily seperate from the message box and make it larger and animated; so I'm basically using it as an easy way to get busts showing above my text box, and animated in sync with the message being displayed.

The bug is that if you have an animated face used, and then there is a conditional branch or a choice, when you then drop out of it, if you have that same person/face talk once more, their face disappears.

It remains gone if you keep using the same portrait, and can only be reset by switching to a different portrait.


I have a full record of tracking the bug's behaviours on Eli's topic, including images over there, but he has said he won't fix it or support it.

This is not related to my plugins specifically, as I have tested the bug occuring in the Hakuen Studio demo and have also made a super quick demo showcasing the problem with one of my faces that you can grab here on my googledrive.
Does it work if you prevent the closing with additional condition? Seemed to work in a very quick test (you can use script to set $gameTemp._preventHide = true or $gameTemp._preventHide = false )

Alias.Game_Interpreter_executeCommand = Game_Interpreter.prototype.executeCommand
Game_Interpreter.prototype.executeCommand = function() {
const alias = Alias.Game_Interpreter_executeCommand.call(this)

if(this.isMessageInterpreter() && this.canHideFaceWindow() && !$gameTemp._preventHide){
this.hideFaceWindow()
}

return alias
}

I don't know what's causing the bug, maybe it has to do with the condition caHideFaceWindow checking certain interpreter commands (there's only 2 listed in the check). But I've never looked at those deeply at all.

EDIT: Oh yeah and in rpg maker if you want the message to show with show choices, there can't be commands between them, so you have to put the script before the message. Also, I'm not sure but it might be a good idea to set the _preventHide back to false and let the box close normally before the event ends. It does disappear after the event ends even with the _preventHide true, but I'm not sure if it's closing it or hiding it.
One further finding: It's probably the Easing that is causing problems.

If I completely disable the Easing (Duration 0), things seem to work fine. Even a 10 frame default, though, and this bug appears. Given that Easings are a thing used in many Eli plugins, I'm therefore guessing something in Eli_Book might have to do with the glitch.

Worst case scenario, I'll just go without it, it's just a bit of swish, though I'd prefer to have it if I can.


Edit: I posted this before I even saw your response RPGLord69.

Yes, with that slight modification to the plugin, it does indeed work to prevent problems, even with the Easing set back on. It doesn't seem to have issues if I don't disable it either, but we'll see I guess.
Cool.

Yeah, my pseudo-scientific guess is that it closes the window when it detects other interpreter commands than the 2 registered but then it doesn't reopen it unless it detects a change in the face graphic. So if you try and show the same dude, it doesn't open.

Original thread: https://forums.rpgmakerweb.com/threads/eli-face-window-bug-animated-face-lost-after-conditional-branch-choice.181183/