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!