[Ultimate Guide] RPG Maker MV PIXI v6.5.0 Update And NW.JS Update Guide

chrome driver.exe is mostly for test play, the other one is be removed.

you can best download the package from the nwjs website and choose
different version and pick the you want..

from there, just save the www and package.json file, and remove the rest,
than copy the entire file into the nwjs folder and place the www and package
back in that folder.

the same thing with the test play (if you follow killer gin guide).
i followed the guide, now im getting error

EDIT:

resized images are more blurry now, like when you resize pictures to 50% of original

EDIT: Download the SDK version! and you will have no console error
1670348126607.png


and don't forget to edit the package.json file in the NewData folder with maybe notepad add the line "position": "center"
1670348535881.png
If you can manage to get rid of this problem, let me know. Thank you.
Found the solution to your (and mine) problem.

First, I didn't understand why you moved children from _windowLayer to its parent. Imo, it's quite dangerous and unnecessary change. So I skipped applying changes to rpg_scenes.js completely.

Key piece of info to resolve the problem is that webgl renderer became first-class in pixi.js v5. This means that all _renderWebGL and renderWebGL should be renamed to _render and render respectively (to be included in rendering process again). Also, I ended up removing most of complex, fragile and now-not-working code and reused original implementations, since it wasn't much relevant to me anyway (masking child mindows based on parent window frame, if I'm not mistaken).

Attached what I've changed migrating Karryn's Prison (original files added, so you can make a diff): pixi4 - before, pixi6 - after.

P.S. If you have YEP_X_CoreUpdatesOpt.js plugin, that essentially duplicates s**tload of code from engine while slightly modifying it here and there, you might have to apply all changes to it too. I love Yanfly's code so much...
Thank you @madtisa 😀 I'm running nwjs 0.91 and was only behind on pixi because of that text bug!
It didn't work here with newer versions of nwjs, I had to use 0.72. And I'm experiencing significant performance drops. :|
It didn't work here with newer versions of nwjs, I had to use 0.72. And I'm experiencing significant performance drops. :|
If you experience performance drops after updating pixijs, check if your GPU supports WebGL (download nw.js SDK, press F12 in the game to open devtools, enter
JavaScript:
open('chrome://gpu')
in console)
1728632931398.png

If you don't see WebGL: Hardware accelerated you can:
  • update you GPU drivers
  • add parameters --ignore-gpu-blacklist --ignore-gpu-blocklist to "chromium-args" in package.json file

However, if slowdown started only after updating nw.js... I won't believe until I see it.
Though you can measure performance in devtools (Performance tab) yourself to see where the bottleneck is
Found the solution to your (and mine) problem.

First, I didn't understand why you moved children from _windowLayer to its parent. Imo, it's quite dangerous and unnecessary change. So I skipped applying changes to rpg_scenes.js completely.

Key piece of info to resolve the problem is that webgl renderer became first-class in pixi.js v5. This means that all _renderWebGL and renderWebGL should be renamed to _render and render respectively (to be included in rendering process again). Also, I ended up removing most of complex, fragile and now-not-working code and reused original implementations, since it wasn't much relevant to me anyway (masking child mindows based on parent window frame, if I'm not mistaken).

Attached what I've changed migrating Karryn's Prison (original files added, so you can make a diff): pixi4 - before, pixi6 - after.

P.S. If you have YEP_X_CoreUpdatesOpt.js plugin, that essentially duplicates s**tload of code from engine while slightly modifying it here and there, you might have to apply all changes to it too. I love Yanfly's code so much...
Thank for sharing!

I tried shoving your files into my project (made backup first tho). And I'm getting serious lag and console log errors. Would you happen to have any idea of the cause, admittedly I'm kinda incompetent when it comes to pixi and such.
Spoiler: pic
pixi.png
Thank for sharing!

I tried shoving your files into my project (made backup first tho). And I'm getting serious lag and console log errors. Would you happen to have any idea of the cause, admittedly I'm kinda incompetent when it comes to pixi and such.
Spoiler: pic
I get the same errors related to tilesets, but they seem to be pretty harmless (didn't fix them, because they don't break anything). The warnings above also shouldn't cause lags. Without measuring performance (using devtools' performance tab) all I can recommend is to follow my previous post and check if webgl hardware is supported on your PC (if you experience 1-2 fps when playing).
Fixed 'The tile texture was not found in the tilemap tileset' error as well. It signifies failure of rendering of shadows on a map. My project have custom shadows, so I didn't see problems.

Attaching modified www/js/libs/rpgmaker.js file (for pixi v6). Download and replace to fix shadows rendering.
Or apply this diff (diff will work on rpgmaker.js for pixi v7 as well):

Git:
Index: www/js/libs/rpgmaker.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/www/js/libs/rpgmaker.js b/www/js/libs/rpgmaker.js
--- a/www/js/libs/rpgmaker.js    (revision Staged)
+++ b/www/js/libs/rpgmaker.js    (date 1749214480608)
@@ -1426,6 +1426,59 @@
         }
     };
 
+    const tile = PIXI.tilemap.RectTileLayer.prototype.tile;
+    PIXI.tilemap.RectTileLayer.prototype.tile = function (
+        tileTexture,
+        x,
+        y,
+        options = {}
+    ) {
+        if (tileTexture !== -1) {
+            tile.call(this, tileTexture, x, y, options);
+            return;
+        }
+
+        const {
+            u = 0,
+            v = 0,
+            tileWidth = 0,
+            tileHeight = 0,
+            animX = 0,
+            animY = 0,
+            rotate = 0,
+            animCountX = 1024,
+            animCountY = 1024,
+            animDivisor = 1,
+            alpha = 1,
+        } = options;
+
+        if (!(tileWidth > 0 && tileHeight > 0)) {
+            console.error(`Invalid shadow size (${tileWidth}x${tileHeight})`);
+            return;
+        }
+
+        const pb = this.pointsBuf;
+
+        this.hasAnimatedTile = this.hasAnimatedTile || animX > 0 || animY > 0;
+
+        pb.push(u ?? 0);
+        pb.push(v ?? 0);
+        pb.push(x);
+        pb.push(y);
+        pb.push(tileWidth);
+        pb.push(tileHeight);
+        pb.push(rotate);
+        pb.push(animX | 0);
+        pb.push(animY | 0);
+        pb.push(tileTexture);
+        pb.push(animCountX);
+        pb.push(animCountY);
+        pb.push(animDivisor);
+        pb.push(alpha);
+
+        this.tilemapBounds.addFramePad(x, y, x + tileWidth, y + tileHeight, 0, 0);
+    }
+
     function LevelLoader() {
         this.initialize.apply(this, arguments);
     }
It didn't work here with newer versions of nwjs, I had to use 0.72. And I'm experiencing significant performance drops. :|
Hey, it looks like nw.js v0.101 or newer might fix your performance drop: https://nwjs.io/downloads/

Original thread: https://forums.rpgmakerweb.com/threads/ultimate-guide-rpg-maker-mv-pixi-v6-5-0-update-and-nw-js-update-guide.149713/