It worked like a charm!
I had some maps with lots of people moving and an occasional drop in FPS. After updating everything got much smoother. Thank you!
It worked like a charm!
That is an issue with MV itself (technically the nwjs version it uses), they fixed it in MZ.
const aliasSceneBootStart = Scene_Boot.prototype.start;
Scene_Boot.prototype.start = function () {
if (typeof nw === "object") {
const window = nw.Window.get();
window.on("close", () => window.close(true));
// Alternative way if default does not work
// nw.App.quit()
}
aliasSceneBootStart.call(this);
};
No, it doesn't seem to work, sadly. If I use the alternative way, the game just immediately closes upon starting. Unless I'm using it in a wrong way?
The alternative way would be to do it like this, I should've made the example better, sorry. Hopefully this works
const aliasSceneBootStart = Scene_Boot.prototype.start;
Scene_Boot.prototype.start = function () {
if (typeof nw === "object") {
const window = nw.Window.get();
window.on("close", () => nw.App.quit());
}
aliasSceneBootStart.call(this);
};
Now that works, thank you!! 😀
I don't have this problem and I use 0.48.0 or 0.48.4 the same MZ uses to start.
User error. Sounds like you put the non-sdk nw.js into your playtest folder.
I thought this will work as well:
Thank you, it's good to see that i messed up just a bit and it's fixable)
You can try my guide. It's less confusing and only has the necessary infos.
forums.rpgmakerweb.com
Original thread: https://forums.rpgmakerweb.com/threads/how-to-update-nw-js-to-dramatically-improve-game-performance.131620/