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

Hello everybody,
I managed to update RPG Maker MV's PIXI version to v6.5.0. There is a flaw, but game works. I also exported the game to Android. The game is working there as well.

This guide is going to help you to update PIXI version of MV.

WARNING: Backup your files!

1- nw.js update [Required for PIXI v6+]
A. Go to https://nwjs.io/downloads/, and download (depending on your environment) Windows 64 bit SDK and NORMAL versions of nw.js'.

B1. Extract SDK to a new folder.

B2. Extract NORMAL to a new folder (different folder from SDK).

C. If you have steam version, go to YOURDRIVE:\SteamLibrary\steamapps\common\RPG Maker MV in your computer's file explorer. If you don't have steam version, go to your engine's folder where its located on your computer.

D1. In that folder (Our example: YOURDRIVE:\SteamLibrary\steamapps\common\RPG Maker MV), first go to "nwjs-win-test" folder. Copy and paste everything that you extracted as SDK before and choose "Replace the files in the destination" option. (Look B1 of this guide). After that process, find "Game.exe" and delete it in the same folder ("nwjs-win-test"). Afterwards, find "nw.exe" and rename as "Game.exe" in the same folder ("nwjs-win-test").

D2. Go back to YOURDRIVE:\SteamLibrary\steamapps\common\RPG Maker MV and go to "nwjs-win" folder. Copy and paste everything that you extracted as NORMAL before and choose "Replace the files in the destination" option. (Look B2 of this guide). After that process, find "Game.exe" and delete it in the same folder ("nwjs-win"). Afterwards, find "nw.exe" and rename as "Game.exe" in the same folder ("nwjs-win").

Congratulations. You updated nw.js.

2- PIXI v6.5.0 Update
A. Go to https://github.com/pixijs/pixijs/releases/tag/v6.5.0-rc.4 link. Download these under "Development Build" header:
a. pixi.js
b. pixi.js.map

B. Go to https://github.com/pixijs/tilemap/releases/tag/v3.2.1 link. Download "Source code (zip)" file under "Assets" header. Open downloaded "Source code (zip)" file, find "dist" folder in it. In "dist" folder, there are two files. Extract those files to your computer. Files: "pixi-tilemap.umd.js" and "pixi-tilemap.umd.js.map".

C. Go to https://github.com/pixijs/tilemap/blob/e7d26dde5b47a9ea941c50e62ad151acfc7ca57b/demo/rpgmaker.js link. Click "Raw". New page is going to open when you click the "Raw" button of GitHub. Right click on that page, click "Save As". Locate a place on your computer and click ok. You downloaded "rpgmaker.js" file.

D. After all these download actions, you have to have these files:
a. pixi.js
b. pixi.js.map
c. pixi-tilemap.umd.js
d. pixi-tilemap.umd.js.map
e. rpgmaker.js
Copy and paste these files to YOURDRIVE:\Users\YOURUSER\OneDrive\Documents\Games\YOURGAMENAME\js\libs folder and of course, choose "Replace the files in the destination" option. If your game is located different location than MV's default location, locate your game folder and go to \js\libs folder and do the same process.

E. Now, we are going to some changes on codes.
Find "index.html" file in YOURDRIVE:\Users\YOURUSER\OneDrive\Documents\Games\YOURGAMENAME folder.
a. index.html
Add this code <script type="text/javascript" src="js/libs/rpgmaker.js"></script> to under of <script type="text/javascript" src="js/libs/pixi-tilemap.js"></script>
Remove this code <script type="text/javascript" src="js/libs/pixi-picture.js"></script>

Save and close the file.

Go to YOURDRIVE:\Users\YOURUSER\OneDrive\Documents\Games\YOURGAMENAME\js\libs folder and find rpgmaker.js.
b. rpgmaker.js
Open file. Go to last blank line and add this:
requireRpgMaker();
Save and close the file.

After this process, all changes are going to make in YOURDRIVE:\Users\YOURUSER\OneDrive\Documents\Games\YOURGAMENAME\js folder. Find related files in that folder and open them respectively.
c. rpg_core.js
// Find this code: Sprite.voidFilter = new PIXI.filters.VoidFilter(); // Change it with this: Sprite.voidFilter = new PIXI.filters.AlphaFilter(); ------------------------------------------------- // Find this code: WindowLayer.voidFilter = new PIXI.filters.VoidFilter(); // Change it with this: WindowLayer.voidFilter = new PIXI.filters.AlphaFilter(); ------------------------------------------------- // Find this code and delete it: PIXI.glCore.VertexArrayObject.FORCE_NATIVE = true; ------------------------------------------------- // Find this code: TilingSprite.prototype = Object.create(PIXI.extras.PictureTilingSprite.prototype); // Change it with this: TilingSprite.prototype = Object.create(PIXI.TilingSprite.prototype); -------------------------------------------------- // Find this code: PIXI.extras.PictureTilingSprite.call(this, texture); // Change it with this: PIXI.TilingSprite.call(this, texture); -------------------------------------------------- // Find this code: TilingSprite.prototype._renderCanvas_PIXI = PIXI.extras.PictureTilingSprite.prototype._renderCanvas; // Change it with this: TilingSprite.prototype._renderCanvas_PIXI = PIXI.TilingSprite.prototype._renderCanvas; -------------------------------------------------- // Find this code: TilingSprite.prototype._renderWebGL_PIXI = PIXI.extras.PictureTilingSprite.prototype._renderWebGL; // Change it with this: TilingSprite.prototype._renderWebGL_PIXI = PIXI.TilingSprite.prototype._renderWebGL; -------------------------------------------------- // Find this code: TilingSprite.prototype.updateTransformTS = PIXI.extras.TilingSprite.prototype.updateTransform; // Change it with this: TilingSprite.prototype.updateTransformTS = PIXI.TilingSprite.prototype.updateTransform; --------------------------------------------------- // Find this code: this._windowRect = this._windowMask.graphicsData[0].shape; // Change it with this: this._windowRect = this._windowMask.geometry.graphicsData[0].shape; --------------------------------------------------- // Find these codes: Graphics._createRenderer = function() { PIXI.dontSayHello = true; var width = this._width; var height = this._height; var options = { view: this._canvas }; try { switch (this._rendererType) { case 'canvas': this._renderer = new PIXI.CanvasRenderer(width, height, options); break; case 'webgl': this._renderer = new PIXI.WebGLRenderer(width, height, options); break; default: this._renderer = PIXI.autoDetectRenderer(width, height, options); break; } if(this._renderer && this._renderer.textureGC) this._renderer.textureGC.maxIdle = 1; } catch (e) { this._renderer = null; } }; // Change them with these: Graphics._createRenderer = function() { PIXI.dontSayHello = true; var options = { view: this._canvas, width: this._width, height: this._height, resolution: window.devicePixelRatio, autoDensity: true }; try { this._renderer = new PIXI.Renderer(options); if(this._renderer && this._renderer.textureGC) { this._renderer.textureGC.maxIdle = 1; } } catch (e) { this._renderer = null; } }; ---------------------------------------------------- // Find these codes: ShaderTilemap.prototype.renderWebGL = function(renderer) { this._hackRenderer(renderer); PIXI.Container.prototype.renderWebGL.call(this, renderer); }; // Change them with these: ShaderTilemap.prototype.render = function(renderer) { this._hackRenderer(renderer); PIXI.Container.prototype.render.call(this, renderer); }; ----------------------------------------------------

d. rpg_sprites.js
// Find these codes: Spriteset_Map.prototype.updateTilemap = function() { this._tilemap.origin.x = $gameMap.displayX() * $gameMap.tileWidth(); this._tilemap.origin.y = $gameMap.displayY() * $gameMap.tileHeight(); }; // Change them with these: Spriteset_Map.prototype.updateTilemap = function() { this._tilemap.origin.x = $gameMap.displayX() * $gameMap.tileWidth(); this._tilemap.origin.y = $gameMap.displayY() * $gameMap.tileHeight(); if (this._tilemap.bitmaps) { if (!this.isTilesetReady && this._tilemap.bitmaps.every(bitmap => bitmap.isRequestReady())) { this._tilemap.refresh(); this._tilemap.refreshTileset() this.isTilesetReady = true } } };

e. rpg_scenes.js
// Find these codes: Scene_Base.prototype.addWindow = function(window) { this._windowLayer.addChild(window); }; // Change them with these: Scene_Base.prototype.addWindow = function(window) { this.addChild(window); }; --------------------------------------------------------- // Find these codes: Scene_Base.prototype.createWindowLayer = function() { var width = Graphics.boxWidth; var height = Graphics.boxHeight; var x = (Graphics.width - width) / 2; var y = (Graphics.height - height) / 2; this._windowLayer = new WindowLayer(); this._windowLayer.move(x, y, width, height); this.addChild(this._windowLayer); }; // Change them with these: Scene_Base.prototype.createWindowLayer = function() { var width = Graphics.boxWidth; var height = Graphics.boxHeight; var x = (Graphics.width - width) / 2; var y = (Graphics.height - height) / 2; this._windowLayer = new PIXI.Container(); this.addChild(this._windowLayer); }; ---------------------------------------------------------

Congratulations. You updated PIXI to version 6.5.0.

END OF GUIDE.

Yeah. But...
There is a problem. "Show Text" doesn't work properly. Texts are not writing to screen. It just shows some letters and stops showing rest of texts, but game runs. Some texts are disappeared (included "Show Text" and "Name Input" texts). Here is the example:
showtext.PNG

nameinput.PNG

As you can see, texts are disappeared.

And there are these warnings in Developer Tools (I think deprecated PIXI utilities affect texts). Here:
warnings1.PNG

warnings2.PNG


If you can manage to get rid of this problem, let me know. Thank you.
Well, I'm not a specialist with JS/PIXI or WebGL rendering at all, but after some time experimenting with different versions of PIXI, nwjs and so on I concluded that the latest update (not only PIXI, but any kind of software) is not always the best option to pick. Sometimes the older version is better than the most recent.

However I appreciate your effort in writing this guide, but some words of advise, before you post something, make sure it won't cause any trouble, in the case of RPG games, the text is one of the primary factors making the game interesting. I doubt that anyone will try to update PIXI that way if it breaks one of the most important aspects of RPG maker.
pixi behind 4.8.9 can break potentional plugins and need restructed,
as for nwJS, best is to use 4.8.4 (same that MZ uses) or not above 4.9.2
if using steam achievements (some reported 5.1.0 is working on nwjs).

but changing pixi and core files is something you really want to avoid
as some more core files or plugins need to restructure to make them
to work (as in your example, message, name input etc) that involve
text strings.

so I doublt many people even go behind pixi 5.4.0 though.
everything behind is mostly on your own risk.
but changing pixi and core files is something you really want to avoid
as some more core files or plugins need to restructure to make them
to work (as in your example, message, name input etc) that involve
text strings.
Yeah but it is a shame that our dev overlords who own the default rmmz code aren't keeping up to date.

pixi.js came out with v6.5.1 a couple of weeks ago (at time of writing), while the version I think I've got in my project out of the box is v5.2.4, which literally came out in may of 2020.

nw.js came out with v67.1 literally yesterday (at time of writing), while the version I think ships with RMMZ is ... v49? v50? the version that came out coincidentally around the same time as the release used for pixi.js.

These types of version upgrades, while requiring effort to integrate, usually bring some pretty significant performance improvements. While I haven't been successful at upgrading pixi.js because that requires the most effort to update the native code, I have upgraded nw.js without issue and it all by itself is a tremendous upgrade (where I was suffering before).

I commend OP's effort in trying, but this shouldn't be something we have to do. These are dependencies of the product sold by degica and co, and should really be managed by them (or whoever they contract out these efforts to).
Okay, I got a problem, when i start the game, i get the following problem
1662095816254.png
Okay, I got a problem, when i start the game, i get the following problemView attachment 239413
I have the same thing, that's how I ended up here 🙂
problem I have, my game runs fine from the rpg maker mv 1.51. with all the plugins etc, though after updating the nw.js to get the steam archievements going, it goes haywire... (like a screenshot is captured but underneath the (frozen screen) everything is still working, without errors from the console).

I updated the core-files to 1.6.1 It is a pain to get the steam archievements going, finding the right versions that works with each other: Steam SDk, greenworks, NW.jS etc...
I started updating pixi because of the freezing and follow this guide, but at the end I read it doesn't work well with the naming 🙂 and also the above error shows up...
It's kinda sad they don't care about update the engine to get a better performance (Even with the latest nw.js I still have to cap the fps to 30 to don't have framedrops) I hope someone find a way to get this working because the RM developers seems to dont care about the community.
It's kinda sad they don't care about update the engine to get a better performance (Even with the latest nw.js I still have to cap the fps to 30 to don't have framedrops) I hope someone find a way to get this working because the RM developers seems to dont care about the community.
A lot of companies are like that unfortunately. If you look at say, Bethesda with their Skyrim and Fallout franchises it was the modders who did a lot of the heavy lifting. It's one of the reasons why I go back to older versions of their games due to the dedicated modders who are innovative and add things that should have been part of the games release.

Worked in IT for years and I'd see companies who only focused on getting the latest and greatest product out (even if it was really only an iteration on previous products.) The budgets would sometimes be huge for development but maintenance budgets to fix bugs, add features were woefully inadequate as they already had the customers money.

Provided support for one financial institution and they had a system that made them millions each year but they still ran it on old hardware and hadn't upgraded the back end application for years. It was so bad that I ended up getting tasked with trying to set up a fix for the underlying service/daemon randomly stopping as the original coders were long gone. It would look like it was still running when it wasn't and their only way of knowing if the app failed was when customers called or someone was actively monitoring. I ended up putting in scripts that would check the state of the service/logs and it would restart it/kill/start depending on the conditions. The developers didn't care because all they were tasked with was keeping the system up and they didn't want to maintain code that been developed 10 years earlier (not that there was a budget for them to do anything on that app.)

Even with DevOps and CI I have seen much the same, the main difference is that there is more of an impetus on F**k it, Ship it as they can have the customers report bugs and fix it later. With the subscription model widely adopted it can be worse - I had subscriptions for products that only had minor updates/fixes where before the previous versions had major updates/changes every 12-18 months.
A lot of companies are like that unfortunately. If you look at say, Bethesda with their Skyrim and Fallout franchises it was the modders who did a lot of the heavy lifting. It's one of the reasons why I go back to older versions of their games due to the dedicated modders who are innovative and add things that should have been part of the games release.

Worked in IT for years and I'd see companies who only focused on getting the latest and greatest product out (even if it was really only an iteration on previous products.) The budgets would sometimes be huge for development but maintenance budgets to fix bugs, add features were woefully inadequate as they already had the customers money.

Provided support for one financial institution and they had a system that made them millions each year but they still ran it on old hardware and hadn't upgraded the back end application for years. It was so bad that I ended up getting tasked with trying to set up a fix for the underlying service/daemon randomly stopping as the original coders were long gone. It would look like it was still running when it wasn't and their only way of knowing if the app failed was when customers called or someone was actively monitoring. I ended up putting in scripts that would check the state of the service/logs and it would restart it/kill/start depending on the conditions. The developers didn't care because all they were tasked with was keeping the system up and they didn't want to maintain code that been developed 10 years earlier (not that there was a budget for them to do anything on that app.)

Even with DevOps and CI I have seen much the same, the main difference is that there is more of an impetus on F**k it, Ship it as they can have the customers report bugs and fix it later. With the subscription model widely adopted it can be worse - I had subscriptions for products that only had minor updates/fixes where before the previous versions had major updates/changes every 12-18 months.
But what this company does is even worse. They copy and paste an engine and sell it as something new. After they sell it to you they leave the software obsolete to later release another engine that works with a completely different language, it is a really disastrous practice.
hmm so still not worth updating the njws and pixi.. im stil at pxijs 4.5.4 mv 1.6.2 and default nwjs
my current stable version of pixi for mv is 4.8.8, with correct configured console and rpg maker plugins on version v1.6.1 (community-1.3b).
thats the version i woud currently recommend, my srpg demo uses it

i also archieved PIXI 5.3.0, with MV but that broke some displayed imgs

(i mean srd menubackround, the imgs were split into 4 pieces)

.. what i am trying to say is:
alsong your solution is not fully bugfree, its not a final solution which should be posted as guide..
You could post it as:

"can somebody help me make this bugfree"

edit
i forgot to mention:
my nw.js is upgraded to v0.49.2

The guide which i would recommend to upgrade your pixi and nw.js is this one:
hmm so still not worth updating the njws and pixi.
While updating PIXI beyond version 4 does break things, updating nwjs generally doesn't, and just gives you a nice free performance upgrade.
hmm so still not worth updating the njws and pixi.. im stil at pxijs 4.5.4 mv 1.6.2 and default nwjs
You can update nw.js to the latest version without any problems (it should improve the performance a lot) but not pixi which latest version is 7.0 and the engine is still using 5.2.
But what this company does is even worse. They copy and paste an engine and sell it as something new. After they sell it to you they leave the software obsolete to later release another engine that works with a completely different language, it is a really disastrous practice.
So if they release an engine that is similar to a previous engine, it's bad. But if they release an engine that is completely different from a previous engine, it's also bad? It kinda sounds like there's nothing they could do that would make you happy, no?


.. what i am trying to say is:
alsong your solution is not fully bugfree, its not a final solution which should be posted as guide..
You could post it as:
"can somebody help me make this bugfree"
I agree. The OP should not have labeled this as a guide, let alone an "ultimate guide", considering that they didn't actually post a working solution.


Yeah but it is a shame that our dev overlords who own the default rmmz code aren't keeping up to date.

pixi.js came out with v6.5.1 a couple of weeks ago (at time of writing), while the version I think I've got in my project out of the box is v5.2.4, which literally came out in may of 2020.
I don't fully disagree, but at the same time, I think it's important to bear in mind that they don't want to make any changes that are likely to break a lot of plugins. Since you're a programmer, you probably wouldn't have too many dramas getting your game back in working order after they release breaking changes... but that's not true for the majority of RPG Maker users. I think that the overall impact on the userbase would be a negative one, if the devs were frequently releasing updates that break existing plugins.

It's also important to note that there are limitations to what is fair to expect from a company, in terms of continual upgrades to a product that they're only charging a one-time fee for.
But what this company does is even worse.
No it's not 😅
First, I think @Enigman was talking about a financial institution. Sorry to say that people's finances are more important than people's hobbies.

That being said, I've used some hobby software with even more trash support. First of all, RM is cheap. Dirt cheap. It's normal MSRP is affordable, but it also very often goes on sale for like...half price. They can't just support legacy software for eternity on those kind of margins, it just doesn't make practical sense for a successful business.
Mixcraft, a hobbiest digital audio workstation, also has a similar price to RM, however doesn't go on sale nearly as often. Their support model I do think is bad; only a few updates on the old spaghetti code of past iterations, then they move on to the next version, where the next version patches software breaking bugs from the previous version but you, the customer, are going to have to pay for the "upgrade" to get those bugs fixed. But hey, they added in a bunch of new features right? Sure, and those are all buggy and won't be fixed until the next version, creating a vicious cycle, except with the feature creep it almost felt like with each version the software became slower and slower.
Honestly, I just assumed all music software was unstable, slow, unoptimized chugging messes until I finally got fed up and moved to Reaper (praise be!) and realized: "Holy , software can be fast AND not crash all the time!?!"

In my opinion, RM gets a lot of support from the devs, and honestly, even without the optimized up-to-date libraries, the software itself runs smoothly and is mostly bug free. Not to mention, anyone is welcome to download the updated libraries and install them themselves (the whole point of this thread, right?) which is pretty nice. A lot of software closes off access to the back-end stuff like that, meaning you're stuck with whatever you get, and if you want updated libraries, tough tits, better pony up the cash for the latest version.
so i checked nw.js latest stable is 0.70.1.. anyone updated to this version or it's still 0.49 best?
1670334475076.png


edit.
so i updated to 0.70.1 now i cant open console, i already added Game.exe renamed nw.js file to my antivirus windows defender to controlled access and folder exclusion.
you can try, but I wont go over 49.2 if you use steam and achievements,
5.2.4 latest like MZ users I think.

but you can try if you want too and see if it's running nicely, I have 49.2 for
nwjs and 4.8.x for pixi I believe, need to check that one on the x part.

and it's run nicely in MV, and I dont go over that one either.

as everything above may break potentional plugins in MV, for MZ it's probably
a slightly different, but just becarefull on that part.
so i checked nw.js latest stable is 0.70.1.. anyone updated to this version or it's still 0.49 best?View attachment 246872

edit.
so i updated to 0.70.1 now i cant open console, i already added Game.exe renamed nw.js file to my antivirus windows defender to controlled access and folder exclusion.
I've been using 0.68.1, which was the lastest stable back when I upgraded, and it generally worked fine for me.
I did use this guide to do so; it seems to contain a few more steps than this thread, so you might want to follow that if you're having problems.
so from 0.70.1 to 0.49.2 ... im comparing the zip file i downloaded, from killer gin youtube he got 22 files, while i got 17 files.. so these 5 files are they important?
1670337785674.png

now i can acess console with F8 but i get this error
1670337863752.png
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).

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