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,599
Reaction score
883
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
395
Reaction score
217
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
395
Reaction score
217
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
395
Reaction score
217
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 Profile Posts



I've been experimenting with improved memory management again, which allowed me to include items to increase player path length. These are both 44 grid spaces long, and stable. :LZSexcite:
I FINALLY DID IT! 5 years making my very first game and I just officially released it on STEAM..... OMG..... I can say I finished a game! The feelings!!!!!
Stream will be live shortly! I am going to be playing some Among Us! Feel free to drop by!
Ami
tv program always get the ratings (it's the reason why drama series has 1000+ episode),also full and nonsense of censorship (weird blur, a scene getting cut because the unconvenient viewer,but it unconvenient to me either. you never see what the original is)

i know the reason is to take cover the viewer from the negative thing,but i just laughing and mocking of them that they're always suck :guffaw:
Star Chart Idea - Just something I am working on.

Forum statistics

Threads
104,458
Messages
1,006,432
Members
135,966
Latest member
Kleik
Top