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

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
100
Reaction score
23
First Language
English
Primarily Uses
RMMV
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?
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,805
Reaction score
983
First Language
Dutch
Primarily Uses
RMMV
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)
 

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
100
Reaction score
23
First Language
English
Primarily Uses
RMMV
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
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
399
Reaction score
221
First Language
English
Primarily Uses
RMMV
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);  
};
 

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
100
Reaction score
23
First Language
English
Primarily Uses
RMMV
Gave this a try and still having the problem. Thank you anyway though!
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
399
Reaction score
221
First Language
English
Primarily Uses
RMMV
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. :)
 
Last edited:

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
100
Reaction score
23
First Language
English
Primarily Uses
RMMV
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
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
399
Reaction score
221
First Language
English
Primarily Uses
RMMV
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. :)
 

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
100
Reaction score
23
First Language
English
Primarily Uses
RMMV
That worked great! Thank you so much!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I made some sideview closets for MV!
You can find them in my MV resource thread.
People1.png & SF_People1.png added!!!!

Adventurer:
"Why your body looks like a bird?"

Stranger:
"Because I'm harpy"

Adventurer:
"Clap along if you feel like a room without a roof"

*Both dancing to Pharrell Williams song*
Stream will be live shortly with a make-up session of the Interactive Text Adventure! Feel free to drop by!

Forum statistics

Threads
105,507
Messages
1,014,276
Members
137,178
Latest member
negociant
Top