MV Guide to Upgrade MV to PIXI v5

Good work, though I swear TheUnpropro had a fully working version somewhere, odd.



The core script files for MV are MIT License.
Here you go, I assume you have probably figured things out or eventually found this on your own but it can still be helpful to many people out there it seems...
https://theunpropro.itch.io/rmmv-auto-pixi-530-updater
I tried, out of curiosity, and went against this error using the GradientWipe script with crash


"texture.castToBaseTexture"


Incredibly, however, the particles-emitter works.

However, i see that pixi 6.0 has even been released. LOL we are already overtaken XD
I tried, out of curiosity, and went against this error using the GradientWipe script with crash


"texture.castToBaseTexture"


Incredibly, however, the particles-emitter works.

However, i see that pixi 6.0 has even been released. LOL we are already overtaken XD
6.0 is still a release candidate, not released yet. I wouldn't use it for production, nor should anyone else yet.

Once it has had time to settle, then maybe.

Also, I've updated my repo to PixiJS 5.3.7 as well as fixing JOIPlay compatibility. Someone contacted me about memory usage, I'm still looking into their changes.
6.0 is still a release candidate, not released yet. I wouldn't use it for production, nor should anyone else yet.

Once it has had time to settle, then maybe.

Also, I've updated my repo to PixiJS 5.3.7 as well as fixing JOIPlay compatibility. Someone contacted me about memory usage, I'm still looking into their changes.


Yeah, of course... however with 5.X there are too much things to check... on Rpg maker MV core and all engine, and the scripts...
Hello and thank you for this plugin 🙂

I have performance problems with a light plugin (ocram), I plan to use the pixi update "4.5.4" to "5.xx", however I will have a question,

I just have to install the plugin and start it or do I have to follow the complete transformation guide in addition? To avoid doing the same thing twice, sorry I have a little trouble understanding
.


Thanks 🙂
Hello and thank you for this plugin 🙂

I have performance problems with a light plugin (ocram), I plan to use the pixi update "4.5.4" to "5.xx", however I will have a question,

I just have to install the plugin and start it or do I have to follow the complete transformation guide in addition? To avoid doing the same thing twice, sorry I have a little trouble understanding
.


Thanks 🙂
What I would do, instead of a plug in, is simply replace the files in www/js and www/js/lib with the ones I have on GitHub. You should be keeping your project in Git anyways, so backing those changes out if they don't work properly should be trivial.
What I would do, instead of a plug in, is simply replace the files in www/js and www/js/lib with the ones I have on GitHub. You should be keeping your project in Git anyways, so backing those changes out if they don't work properly should be trivial.
Tried this and it seems to have destroyed the built-in layering
eHZuf9k.png


Here's a minimal test project

I hope it's just something obvious that I messed up.


EDIT: 5.3.0 (this version: https://fenixenginemv.gitlab.io/guides/pixi5-upgrade.html ) works for layering, though it still has the singleletter textbox bug. I think there's a bug in the 5.3.3 build on your github
I'm having the same layering issue when using @Abitkin library :/

Haven't tried LTN Games' update yet. What is that "singleletter textbox bug" you are talking about?
First of all @Abitkin thank you for the time that you give to us. This is helping me too much on the project, but I have a problem xD I don't know how to apply the Patch I even tried to use the guide on moodle but still nothing. Do you have a GitHub or somewhere to download all the rpg_core, rpg_manager, etc updated with the patch?. Thank you so much and wish you a wonderful day╰(*°▽°*)╯
Okay I think I fixed up the layer issues.

As to how to apply this, assuming you have bash:
Bash:
git clone https://git.kins.dev/rpgmaker-mv-pixi5
GAME_FOLDER="<path to game folder>"
cp -r "${GAME_FOLDER}/www/js" "${GAME_FOLDER}/www/js.bak"
# or use git instead to keep track of changes to your game
cd rpgmaker-mv-pixi5
cp js/rpg_*.js "${GAME_FOLDER}/www/js/."
cp js/libs/pixi-tilemap.js "${GAME_FOLDER}/www/js/libs/."
cp js/libs/pixi-picture.js "${GAME_FOLDER}/www/js/libs/."
cp js/libs/pixi.min.js "${GAME_FOLDER}/www/js/libs/pixi.js"

And it should be good to go.
Okay I think I fixed up the layer issues.

Latest patch seems to fix the layering issues, though it seems like the updated pixi causes some serious performance loss when YEP_GridFree Doodads is added as a plugin (even on maps with no doodads). I have a 144 Hz monitor so the refresh hovers around 144ish when idling in a map with nothing happening (using the f2 fps meter) however when I have the new pixi + doodads it drops down to high 70s low 80s on my full project, and high 80s/low 90s on an empty test project.

I also see corresponding performance drops on other maps (including seemingly random lag spikes) which were previously very smooth (I have one area with about 100 moving events, which before the update had no issues - after the update it was down to single digits). That's a lot harder to have quantified numbers for, so hopefully the idle fps change comes from the same underlying problem.

I'd upload a minimal test case but doodads is a paid plugin now, so here's screenshots of me adding the doodads plugin to the previous test case I uploaded. Given that doodads was the only active plugin, this should be fairly isolated as an issue.

Doodads plugin disabled:
s8ThVQ4.png


Doodads plugin enabled:
K3VPPWP.png


Notably, no doodads exist anywhere on the map - merely having YEP_doodads enabled is enough for this big drop.
Latest patch seems to fix the layering issues, though it seems like the updated pixi causes some serious performance loss when YEP_GridFree Doodads is added as a plugin (even on maps with no doodads). I have a 144 Hz monitor so the refresh hovers around 144ish when idling in a map with nothing happening (using the f2 fps meter) however when I have the new pixi + doodads it drops down to high 70s low 80s on my full project, and high 80s/low 90s on an empty test project.

I also see corresponding performance drops on other maps (including seemingly random lag spikes) which were previously very smooth (I have one area with about 100 moving events, which before the update had no issues - after the update it was down to single digits). That's a lot harder to have quantified numbers for, so hopefully the idle fps change comes from the same underlying problem.

I'd upload a minimal test case but doodads is a paid plugin now, so here's screenshots of me adding the doodads plugin to the previous test case I uploaded. Given that doodads was the only active plugin, this should be fairly isolated as an issue.

Doodads plugin disabled:
s8ThVQ4.png


Doodads plugin enabled:
K3VPPWP.png


Notably, no doodads exist anywhere on the map - merely having YEP_doodads enabled is enough for this big drop.

I happen to have a copy (1.09) from a different game.

So based on that, and assuming this is not a playtest (the playtest enables a lot of extra code that could cause problems) we would need to restrict ourselves to what APIs YEP_GFD is overloading.

It looks like the two functions are:
JavaScript:
Tilemap.prototype._compareChildOrder = function (a, b) {};
ImageManager.isReady = function () {};

It is simply a mater of disabling each piece until you find the real cause. Note the code being overridden original was:

JavaScript:
Tilemap.prototype._compareChildOrder = function (a, b) {
    if (a.z !== b.z) {
        return a.z - b.z;
    } else if (a.y !== b.y) {
        return a.y - b.y;
    } else {
        return a.spriteId - b.spriteId;
    }
};

And now it is:

JavaScript:
Tilemap.prototype._compareChildOrder = function (a, b) {
    if (a.z === b.z) {
        if (a.y === b.y) {
            return a.spriteId - b.spriteId;
        }
        return a.y - b.y;
    }
    return a.z - b.z;
};

Since the shader tilemap inherits from tilemap and Yanfly is overriding that, you might need to set shader tilemap back to a normal sort.

Of course this is all based on looking at code, not running anything yet.
I happen to have a copy (1.09) from a different game.

So based on that, and assuming this is not a playtest (the playtest enables a lot of extra code that could cause problems) we would need to restrict ourselves to what APIs YEP_GFD is overloading.

It looks like the two functions are:
JavaScript:
Tilemap.prototype._compareChildOrder = function (a, b) {};
ImageManager.isReady = function () {};

It is simply a mater of disabling each piece until you find the real cause. Note the code being overridden original was:

JavaScript:
Tilemap.prototype._compareChildOrder = function (a, b) {
    if (a.z !== b.z) {
        return a.z - b.z;
    } else if (a.y !== b.y) {
        return a.y - b.y;
    } else {
        return a.spriteId - b.spriteId;
    }
};

And now it is:

JavaScript:
Tilemap.prototype._compareChildOrder = function (a, b) {
    if (a.z === b.z) {
        if (a.y === b.y) {
            return a.spriteId - b.spriteId;
        }
        return a.y - b.y;
    }
    return a.z - b.z;
};

Since the shader tilemap inherits from tilemap and Yanfly is overriding that, you might need to set shader tilemap back to a normal sort.

Of course this is all based on looking at code, not running anything yet.
I'm about to go through with this jump. Is your build the most stable and complete compared to unpropros? are they different in any significant way? if I am, in fact, using GFD's will UPP's plugin have the same issue? THANK YOU in advance!
I'm facing the problem of the press position mismatch in android.
how to do?
help i have this error after i migrate 4.5.4 to 5.3.0
Screenshot (139).png
I hate to daisy chain a topic to this one, but I feel it's relevant and I'm unsure how to fix this.

https://forums.rpgmakerweb.com/inde...other-strange-occurances.141244/#post-1221435
C
Put together everything. Removed the files from my previous posts because they had issues and I don't want people to run into those problems.

Fixes everything I could find, and brings in some new features. In the zip you'll find a README.md, Pixi libraries, .jshint file, jsconfig.json file, typescript files (for Visual Studio Code in editor documentation) and a patch file. The patch file specifically targets the rpg_* files in www/js. Just in case you need instructions on applying a patch file, you can find them here.

Note: I haven't tried canvas rendering, this is tested using WebGL2 only.

This is from the included README.md:
RPGMaker MV Game Engine 1.6.2.1
This is a set of updates based on RPGMaker MV 1.6.2 to use PixiJS 5.3.3

Features
  • Faster rendering
  • Case insensitive file loading to better support Linux/Android without having to change your scripts
  • With NW.js v0.45.6 plays webm (VP8/VP9) files properly
  • Filter change for Pixi-Picture to get it to run properly (Issue submitted waiting for a real fix)
  • Added more keys in the keymap for easier use in scripts
  • Fixes to documentation, spelling, and javascript syntax
  • Added jshint information
Known Issues
  • ShaderTilemap is not working properly falling back on Tilemap
    • Doesn't seem to be affecting performance
  • Plugins the load files directly or override the functions which load from disk may fail in case sensitive environments
    • Wrap the file path with CS_URL.MapURL() to ensure it resolves to the correct case sensitive name
  • Overrides or calls to refereshVehicles will fail
    • Use refreshVehicles instead
  • Overrides or calls to updateButtonsVisiblity will fail
    • Use updateButtonsVisibility instead
Further Work
  • Cleanup of Javascript (using let/const)
  • Add updates to plugins
  • Investigate if garbage collection needs to run (possibly do this during scene changes)
  • Check for any memory leaks
  • Submit issue against Pixi-Tilemap for the rendering issue
  • Submit issue against NW.js for performance issues starting with v0.46
  • Bring in proper filter fix for Pixi-Picture when it is released
Can't you just provide the whole pack of files zipped instead of .patch things and whatever?
C

Can't you just provide the whole pack of files zipped instead of .patch things and whatever?

Abitkin's Pixi 5 files: https://git.kins.dev/rpgmaker-mv-pixi5​

Click on the green code button > Download .zip

Original thread: https://forums.rpgmakerweb.com/threads/guide-to-upgrade-mv-to-pixi-v5.123317/