SumRndmDde's HUD Maker + Character Creator EX = custom face crash

I'm currently using both of SumRndmDde's Character Creater EX and HUD Maker plugins.

With the HUD Maker, I'm currently having the battle screen display the face of the current active battler, with the script:

Code:
BattleManager.actor().actorId()

This works fine using any of the actor faces that are loaded into the database, BUT if I use the Character Creator to give an actor a custom appearance, the game crashes when the HUD Maker attempts to display that face during the actor's turn. Here's an image of the report it gives me when this happens:

customface.png

Can anyone help me out with what's happening here?
make sure character creator EX is below hud maker (if its above)
otherwise, do you other plugins? do you have the other character creator plugin?

because character creator EX extends character creator.
if you use only some SRD plugins, you need to make sure that those in the correct order.
if you use other plugins, can you show your plugin database?

also we need a screenshot of the consol log which is on F8 (1.5.x) or F12 (1.6.x)
Character Creator EX is standalone as an upgraded version of the original. In fact, I did try to have both installed, and it told me to uninstall the original Creator in order to use Creator EX.

I did have Creator above HUD maker, so I moved it down the list, but I'm still having the same problem.

Here is my console log and plugin list!

errorlog.png

plugins.png
I remember a friend having an issue with this a while back. It may have been a different issue but seems to be related.

SRD's terms and conditions prohibit me from sending my edited version of the plugin, but try saving this as a .js file and adding it to the bottom of your plugin list.

Code:
Sprite_HUDFace.prototype.getCustomFace = function(actor) {  
    return Window_Base.prototype.getCustomFace.call(this, actor);  
};
Gave this a try and still having the problem. Thank you anyway though!
I thought that might be the case, hence why I had to edit the plugin itself. I'm certain that the absence of the function I sent is the cause of your issue as well.

If no one else has a solution I'll see about making an extension plugin that corrects the issue without violating the terms or attempt to contact SRD about redistributing my edit.

UPDATE: I think I've managed to solve the issue without editing the original. Give this a try: https://www.dropbox.com/s/fafglc0e1cddo6m/SilvaSRDHUDCCEXFix.js?dl=0

Let me know how you get on. 🙂
Hey! Thanks for DMing me, I totally didn't see the update.

Gave this script a try, and it works now! Thanks for all your help! The HUD is now loading the custom face, although there's small delay where it shows the old face for a second before switching to the custom one.

As an aside, do you have any idea how I could also load the custom face into the character icon for Yanfly's CTB Battle system?

ctbicon.png
I'm not particularly familiar with Yanfly's CTB plugin (or SRD's character creator for that matter), but I'd imagine you could probably address it by tweaking one of the functions in the CTB plugin. I don't have either of the plugins set up to test but looking at the code you could probably do something like this:

JavaScript:
var _damascus_Window_CTBIcon_redrawActorFace = Window_CTBIcon.prototype.redrawActorFace;
Window_CTBIcon.prototype.redrawActorFace = function() {
  if (Imported["SumRndmDde Character Creator EX"] && this._battler.hasSetImage()) {
    this.redrawCustomActorFace();
  } else {
    _damascus_Window_CTBIcon_redrawActorFace.call(this);
  }
};

Window_CTBIcon.prototype.redrawCustomActorFace = function() {
  var width = Window_Base._faceWidth;
  var height = Window_Base._faceHeight;
  var bitmap = this.getCustomFace(this._battler);
  var dx = 4; // padding
  var dy = 4; // padding
  var dw = this.contents.width - 8; // -8 for padding
  var dh = this.contents.height - 8; // -8 for padding
  this.contents.blt(bitmap, 0, 0, width, height, dx, dy, dw, dh);
};

Try saving it as a plugin and let me know how you get on. 🙂
That worked great! Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/sumrndmddes-hud-maker-character-creator-ex-custom-face-crash.118060/