Found something strange when I updated from 1.1 to 1.2.1.
Got strange lens/flower pattern on my window background.
(Left 1.1.1, Right 1.2.1 Doesn't show unless 100% in size.)
Thinking something must have been changed in Window.png, I went and copied it from another old project.
Now, 3 hours later, I still can't find how to remove the strange pattern, neither can I find where in the patch notes it says this was suposed to happen.
Am I missing something? Is it a bug? Is there a Window_Layer2.png somewhere?
Here is another example using a custom window.png to highlight the issue, note that the area containing the background:
(Once again seen better in 100% size)
Window file used:
The question I have is quite simple: How do I make the strange pattern go away?
(Do note that I even made a brand new project trying to find the source of the problem. I also googled the problem, but seeing that I really didn't know what to call the Flares/lens effects/blooms/flower patterns... I googled and found nothing really of use.)
(Edit: I posted here in tech-support since it there isn't a bug or a maker-specific for Mz. If it is wrongly placed I ask the mods to move it to the right place.)
Edit 2: After another 5 or so hours trying to find the reason for this (copy pasting file by file trying to see which one brought about the change) I found that the change was brought about by rmmz_core.js.
After another hour, going through line by line I found this:
Window.prototype._refreshBack = function() {
const m = this._margin;
const w = Math.max(0, this._width - m * 2);
const h = Math.max(0, this._height - m * 2);
const sprite = this._backSprite;
const tilingSprite = sprite.children[0];
// [Note] We use 95 instead of 96 here to avoid blurring edges.
sprite.bitmap = this._windowskin;
sprite.setFrame(0, 0, 96, 96);
sprite.move(m, m);
sprite.scale.x = w / 96;
sprite.scale.y = h / 96;
tilingSprite.bitmap = this._windowskin;
tilingSprite.setFrame(0, 96, 96, 96);
tilingSprite.move(0, 0, w, h);
tilingSprite.scale.x = 96 / w;
tilingSprite.scale.y = 96 / h;
sprite.setColorTone(this._colorTone);
};
And wouldn't you know. The [Note]:ed line, looks like the bad guy. By changing it from:
sprite.setFrame(0, 0, 96, 96); to sprite.setFrame(0, 0, 95, 95); The strange image effect goes away.
The question now is... Can you just do this and go around like nothing happend? Or will this break the whole thing?
[Note]. I have no clue what I am doing, or what blured edges the original writer is refering too, all I know is that changing it back to 95 instead of the new 96, removes the strange looping effect found on the background of all windows.
Therefor I would not recommend this fix, untill someone, that knows what they are talking about, can say what the change in number was meant to fix in the first place.
Got strange lens/flower pattern on my window background.
(Left 1.1.1, Right 1.2.1 Doesn't show unless 100% in size.)
Thinking something must have been changed in Window.png, I went and copied it from another old project.
Now, 3 hours later, I still can't find how to remove the strange pattern, neither can I find where in the patch notes it says this was suposed to happen.
Am I missing something? Is it a bug? Is there a Window_Layer2.png somewhere?
Here is another example using a custom window.png to highlight the issue, note that the area containing the background:
(Once again seen better in 100% size)
Window file used:
The question I have is quite simple: How do I make the strange pattern go away?
(Do note that I even made a brand new project trying to find the source of the problem. I also googled the problem, but seeing that I really didn't know what to call the Flares/lens effects/blooms/flower patterns... I googled and found nothing really of use.)
(Edit: I posted here in tech-support since it there isn't a bug or a maker-specific for Mz. If it is wrongly placed I ask the mods to move it to the right place.)
Edit 2: After another 5 or so hours trying to find the reason for this (copy pasting file by file trying to see which one brought about the change) I found that the change was brought about by rmmz_core.js.
After another hour, going through line by line I found this:
Window.prototype._refreshBack = function() {
const m = this._margin;
const w = Math.max(0, this._width - m * 2);
const h = Math.max(0, this._height - m * 2);
const sprite = this._backSprite;
const tilingSprite = sprite.children[0];
// [Note] We use 95 instead of 96 here to avoid blurring edges.
sprite.bitmap = this._windowskin;
sprite.setFrame(0, 0, 96, 96);
sprite.move(m, m);
sprite.scale.x = w / 96;
sprite.scale.y = h / 96;
tilingSprite.bitmap = this._windowskin;
tilingSprite.setFrame(0, 96, 96, 96);
tilingSprite.move(0, 0, w, h);
tilingSprite.scale.x = 96 / w;
tilingSprite.scale.y = 96 / h;
sprite.setColorTone(this._colorTone);
};
And wouldn't you know. The [Note]:ed line, looks like the bad guy. By changing it from:
sprite.setFrame(0, 0, 96, 96); to sprite.setFrame(0, 0, 95, 95); The strange image effect goes away.
The question now is... Can you just do this and go around like nothing happend? Or will this break the whole thing?
[Note]. I have no clue what I am doing, or what blured edges the original writer is refering too, all I know is that changing it back to 95 instead of the new 96, removes the strange looping effect found on the background of all windows.
Therefor I would not recommend this fix, untill someone, that knows what they are talking about, can say what the change in number was meant to fix in the first place.