Character Creator EX face squished

Hey everyone,

Got a problem I'm running into using SRDude's Character Creator EX plugin. When the player creates their character, the face appears squished in the menu screen. This is likely due to me using SRDude Super Tools to change the window size (I lowered the width). Is there a way around this? The face appears fine everywhere else.

Attached you should find an image of what I'm talking about.

Any help would be much appreciated! 🙂
Yep, I had the same issue... Here's what I did to fix it...

In the CCEX plugin, I looked for the window that was for Menu Status, and changed the width and height to absolute numbers... so that it'd always be 144, or 256, or whatever my face graphic needed to be. worked perfectly for me. I did the same for all other menu windows that CCEX worked with... if you know what your face graphic size will be throughout the game, this will "absolutify" your face no matter the window size...
@jayray Thanks for replying!

So do you mean the Face Width/Height option under 'Size Options' int eh plugin parameters? I tried editing the Width and it didn't seem to change anything. It's currently set to 144 and I tried changing it to 160 and didn't notice a difference.
@jayray Thanks for replying!

So do you mean the Face Width/Height option under 'Size Options' int eh plugin parameters? I tried editing the Width and it didn't seem to change anything. It's currently set to 144 and I tried changing it to 160 and didn't notice a difference.
Hi Esterk,

No I mean in the actual JS for the CCEX plugin, there is a line that denotes how big the srite should be and I think it's set to something like a fourth of the window size regardless of what the window size is. By changing that number to be a flat number, like say 144 width and 144 height, you can ensure that no matter how big or small you change the window, it'll keep that image the right size. If I get a chance after I get home from work (no RMMV at work, meh) I'll look and see if there's a specific line to change.
If you could, that would be amazing! I took a look in the file, but yeah I'm not sure where it is to change it. I think I found the window_base area, which may be it? But I'm unfortunately still out of my element with JS files so I'm not totally sure what I'm looking at/for.
cool, just bare with me, cause I am in the process of moving, and unless you can get to Oklahoma with a truck, a dolly/handtruck and about two hours of your time, I might be working on that oall night. (upgrading form a 1 bd to a 2 bd apartment)
Congrats! Take your time - no rush. Trust me, I have moved A LOT so I know how it is.
Okay, finally... got settled into my new 2 bedroom apartment and got my computer set up, and after a small setback where the AC adapter didn't survive the trip, I've got power... Here's my tutorial on avoiding the face smushy thing.

Let's say your face graphic is 144x144, okay?
Well, let's go ahead and pull up the CCEX (SRD_CharacterCreatorEX.js) in either say Brackets or Notepad++ . It'd be good to go ahead and save your work and exit out of RMMV first, just to keep it from caching some previous versions. There are three distinct sections of code, so that if you know that all your face graphics are going to be this size, you can edit to ensure no more squished faces...

If using Brackets, this edit becomes a little bit easier, because the lines are numbered.

First... find this code. (In Brackets it should be around line 1812)
Code:
Window_Base.prototype.drawCustomFace = function(actor, x, y, w, h) {
    const width = Window_Base._faceWidth;
    const height = Window_Base._faceHeight;
    w = w || width;
    h = h || height;
    const bitmap = this.getCustomFace(actor);
    this.contents.blt(bitmap, 0, 0, width, height, x, y, w, h);

Now you see where it says 'const width ='? Well in this case, we'd remove Window_Base._faceWidth; and replace it with 144, or whatever size your character's faces are. This is how that section should look afterwards.

Code:
Window_Base.prototype.drawCustomFace = function(actor, x, y, w, h) {
    const width = 144;
    const height = 144;
    w = w || width;
    h = h || height;
    const bitmap = this.getCustomFace(actor);
    this.contents.blt(bitmap, 0, 0, width, height, x, y, w, h);

Next, scroll down to a new area, a little further down the code. In Brackets it's around line 1839.

Code:
_.Window_Base_drawActorFace = Window_Base.prototype.drawActorFace;
Window_Base.prototype.drawActorFace = function(actor, x, y, width, height) {
    if(actor.hasSetImage()) {
        this.drawCustomFace(actor, x, y, width, height);
    } else {
        _.Window_Base_drawActorFace.apply(this, arguments);
    }
};

Now here' we're going to be a little more direct. In the line that says this.drawCustomFace(actor, x, y, width, height); we want to change width and height to 144, so here's the edit I have for that section.

Code:
_.Window_Base_drawActorFace = Window_Base.prototype.drawActorFace;
Window_Base.prototype.drawActorFace = function(actor, x, y, width, height) {
    if(actor.hasSetImage()) {
        this.drawCustomFace(actor, x, y, 144, 144);
    } else {
        _.Window_Base_drawActorFace.apply(this, arguments);
    }
};

Finally, a little further down the plugin, you want to go to about line 1861 and look for this section:

Code:
Window_Base.prototype.drawFaceFromBitmap = function(bitmap, x, y, w, h) {
    const width = Window_Base._faceWidth;
    const height = Window_Base._faceHeight;
    w = w || width;
    h = h || height;
    if(!bitmap) {
        bitmap = _.loadImage('CustomFace', 0);
    }
    this.contents.blt(bitmap, 0, 0, width, height, x, y, w, h);
};

Once again, we'll be making a static number for our two constants, for width and height... Here's my edit here...

Code:
Window_Base.prototype.drawFaceFromBitmap = function(bitmap, x, y, w, h) {
   const width = 144;
   const height = 144;
   w = w || width;
   h = h || height;
   if(!bitmap) {
       bitmap = _.loadImage('CustomFace', 0);
   }
   this.contents.blt(bitmap, 0, 0, width, height, x, y, w, h);
};

Now, unless I really screwed that up, those three edits should allow for the smushface to go byebye... Let me know if it works for your game, and if so, we can call this here thread solved!
This worked! Thank you so much, it looks great and there is no alteration to the face size!
Great, hey admin, can we get a SOLVED over here?

Original thread: https://forums.rpgmakerweb.com/threads/character-creator-ex-face-squished.84900/