Recommended NW.js versions for MV, between 29.4 and 49.2?

I upgraded my NW.js to version 49.2, following this tutorial: here. It completely fixed the lag I was experiencing in my game (which was mainly triggered by, or at least lined up with, the dim and light commands in the Irina Visual Novel Busts plugin).

However, that version of NW.js started causing my game to crash (but not close, just get stuck frozen and unclosable without task manager's intervention) every time I hit the shutdown button on my main menu. I traced this issue to the plugin SRD Game Upgrade. I can close the game just fine with it disabled, but I do need the plugin so that's not really an option.

I would like to avoid both the issues of heavy lag that 29.4 has and the incompatability with my SRD plugin that 49.2 has. These issues persisted in both testing and deployed versions of my game.

Now I'm not looking for plugin advice or anything like that, but solely wondering what versions of NW.js people are using (between versions 29.4 and 49.2) that they have found to be stable. In the original tutorial I used, it is mentioned that version 33.3 had issues with text speed. I imagine other versions have undesirable quirks like this, so it would be nice to hear what ones work right out of the box (don't even worry about the plugins, seriously, that's my problem and if it gets too frustrating I'll post about that in the appropriate place) so I can cut down the list of versions I try out.

I figure if I try a bunch between those versions, one may be a sweet spot for the plugins I am using. I'd start brute forcing my way through them now, but this issue has been frustrating me so much that I think I need to take a few days off working on my game to cool off 😅

I will also just mention that I've tried version 48.0, which I had read somewhere (which for the life of me I cannot remember/find where) that it tends to be more compatible with plugins that change window size (which the SRD plugin does do). But I guess they were wrong, because it had the same shutdown problems as 49.2. So I've already scratched it off my list and don't know which version to try next.

Also, steam compatability isn't an issue. Just tell me whatever versions worked fine for you, or alternatively which ones were a huge fail and should be avoided.

Thank you for your time.
As far as my personal testing went, this SRD plugin does that and other issues regardless of which nw.js you use and is overall completely unecessary.

Why do you need it?

Now, you said you don't want plugin advice, but I suppose finding an alternative and less destructive plugin will be the easiest solution, unless you really wanna brute force your way through every nw.js version.
As far as my personal testing went, this SRD plugin does that regardless of which nw.js you use and is overall completely unecessary.

Why do you need it?

From what I understand, the SRD plugin only changes the Package.json, as when you load it into a fresh project and run it for the first time, it displays a window that says "Package.json has been updated! Restart the game to see the changes!"
The package.json is one of the files the NW.js upgrade (or at least, the tutorial I used), keeps intact. It is not modified or deleted.

If I run a playtest with SRD Game Upgrade installed on a version of MV that hasn't had its NW.js updated, and put 'process.versions' into the console, it says that my node webkit is version 29.0 (I guess my NW.js version is a bit behind 29.4? I must have misremembered that particular number. Guess I'll play around with that later. Still looking for other version recommendations though.)

So I don't believe it does the NW.js upgrade. I need to do some sort of NW.js upgrade to improve my game's performance, because once I play my game for a certain period of time, the dim/light commands for the Irina Visual Novel Busts plugin start making my fps dip beneath 30.

Yeah, finding a less destructive plugin would be ideal, but I haven't come across any so far :rsad: So this is kinda what I'm stuck doing for now.
From what I understand, the SRD plugin only changes the Package.json, as when you load it into a fresh project and run it for the first time, it displays a window that says "Package.json has been updated! Restart the game to see the changes!"
The package.json is one of the files the NW.js upgrade (or at least, the tutorial I used), keeps intact. It is not modified or deleted.

If I run a playtest with SRD Game Upgrade installed on a version of MV that hasn't had its NW.js updated, and put 'process.versions' into the console, it says that my node webkit is version 29.0 (I guess my NW.js version is a bit behind 29.4? I must have misremembered that particular number. Guess I'll play around with that later. Still looking for other version recommendations though.)

So I don't believe it does the NW.js upgrade. I need to do some sort of NW.js upgrade to improve my game's performance, because once I play my game for a certain period of time, the dim/light commands for the Irina Visual Novel Busts plugin start making my fps dip beneath 30.
I totally understand the necessity of updating the nw.js, but

I was asking why you need the SRD plugin, since for window changes alone, you could even use the RM basics that literally comes pre-activated with your MV without having to resort to a wonky "upgrade" of the package.json. Game upgrade is known to cause issues, which is why I recommended to replace that anyway.

In any case, if you persist on needing this specific plugin no matter what, I can only wish you luck. I wasn't able to get it working, especially not when considering which versions are required for greenworks and steam achievements.
I totally understand the necessity of updating the nw.js, but

I was asking why you need the SRD plugin, since for window changes alone, you could even use the RM basics that literally comes pre-activated with your MV without having to resort to a wonky "upgrade" of the package.json. Game upgrade is known to cause issues, which is why I recommended to replace that anyway.

In any case, if you persist on needing this specific plugin no matter what, I can only wish you luck. I wasn't able to get it working, especially not when considering which versions are required for greenworks and steam achievements.
Ah, sorry, I had misunderstood what you were asking.

I'm doing some pretty wacky stuff with my game's resolution, and the Community_Basic plugin that comes preloaded wasn't quite doing what I needed it to. That being said, it has been a bit since I tested it and I think I had a few other plugins installed at the time that could have caused some issues, so it might be worth me going back and seeing if it'll play ball this time, especially since I've cut down my plugin list since then.

Once again, steam compatability isn't an issue for me, I'm not too hung up on getting that to function. If I'm able to get achievements, that'd be nice but it's not something really I care about. I was only thinking of putting this game on itch.io and anything else would be a bonus.

Thank you for your help!
I use SRD_GameUpgrade because I need it for my sidegame and HUDmaker.
while I use 0.48.4 with PIXI 4.8.9 I don't experience the issue you have though.

it might also be how its configured inside the plugin and the plugins you use.
if you use a bunch of plugins, it can be conflicting with others as I don't know
how well it runs with 49.2 (which is only recommended with steamworks
achievements.

but some use steamworks achievement with NWJS higher than 0.88.

the main problem more is that some NWJS can break plugins or its PIXI versions,
and mostly recommend to update both, not just NWJS.

I do know MOG_PictureGallery breaks on version 1.5, but not with 1.4.
so you have to test what works best, but I got more problems with the
SRD_GameUpgrade of its garbage settings that causes problems (except 1 setting).
I use SRD_GameUpgrade because I need it for my sidegame and HUDmaker.
while I use 0.48.4 with PIXI 4.8.9 I don't experience the issue you have though.

it might also be how its configured inside the plugin and the plugins you use.
if you use a bunch of plugins, it can be conflicting with others as I don't know
how well it runs with 49.2 (which is only recommended with steamworks
achievements.

but some use steamworks achievement with NWJS higher than 0.88.

the main problem more is that some NWJS can break plugins or its PIXI versions,
and mostly recommend to update both, not just NWJS.

I do know MOG_PictureGallery breaks on version 1.5, but not with 1.4.
so you have to test what works best, but I got more problems with the
SRD_GameUpgrade of its garbage settings that causes problems (except 1 setting).
I did make sure to test a fresh project with just SRD Game Upgrade (+ a couple shutdown button plugins, only tested with one active at a time of course), and the shutdown crashes occured every time. I also simply switched off SRD Game Upgrade on my project with lots of other plugins active and it stopped crashing on quit. So I feel fairly certain the issue is just to do with the SRD plugin, and not a conflict with another.

I'm running PIXI 4.5.4, is that particularly out of date? Perhaps I'll see if updating PIXI reduces the lag from the Irina Visual Novel Busts plugin. Or just update both NW.js and PIXI at the same time, although I doubt PIXI has anything to do with shutdown crashes.

I appreciate you bringing up PIXI, I'll consider updating it alongside my NW.js when I start doing more tests for the right version.
higher NWJS and lower PIXI could cause issues (not always) as some depends
on a specific version of PIXI.

higher version are more stable if you update NWJS as well. so PIXI 4.8.4 or 4.8.9
with NWJS 0.49.2 should work find.

I went to 0.48 NWJS and PIXI 4.8.9 because MZ starts with it.
but your free to experiment with version that works, but I don't have problems
with SRD plugins though, it's mostly the garbage setting, if you kept it default,
try a different setting and see if the same happen as mine doesn't crash.

but if you use more shut down plugins, which one do you use?
higher NWJS and lower PIXI could cause issues (not always) as some depends
on a specific version of PIXI.

higher version are more stable if you update NWJS as well. so PIXI 4.8.4 or 4.8.9
with NWJS 0.49.2 should work find.

I went to 0.48 NWJS and PIXI 4.8.9 because MZ starts with it.
but your free to experiment with version that works, but I don't have problems
with SRD plugins though, it's mostly the garbage setting, if you kept it default,
try a different setting and see if the same happen as mine doesn't crash.

but if you use more shut down plugins, which one do you use?
Thank you for the info!!

My garbage collection setting was on automatic. I'll give changing that a go.

In terms of shutdown plugins - The first one was GALV title commands (more specifically I added "|Quit,quit,always" to the end of the default commands parameter). Then TitleShutdownCommand by Schlangan. Then the one posted here.
Didn't use them all at once of course, just had multiple on hand to make sure I wasn't using a faulty shutdown plugin.
Automatic works best in my case, if you use YEP_EngineCore,
place SRD_GameUpgrade above that one.

I cannot tell about the quit plugins, but I use TSR_Title that has 1 and
many features.

but simple game to desktop should work if it's below, but hard to tell
what cause the crash with SRD_GameUpgrade.

hope you can figure it out as it should be 1 of the settings to play
with so it doesn't crash.
Well you can force the app to quit using this:

SceneManager.terminate = function() {
window.close();
if(Utils.isNwjs()) nw.App.quit();
};

Maybe srd plugin put some code in window's close event so if you try to close with the normal window.close it just never closes. Don't want to mess with the code, so just force it close or just click the X button.
I don't know why people need another close button on windows, you can just close the window anyway...
Well you can force the app to quit using this:

SceneManager.terminate = function() {
window.close();
if(Utils.isNwjs()) nw.App.quit();
};

Maybe srd plugin put some code in window's close event so if you try to close with the normal window.close it just never closes. Don't want to mess with the code, so just force it close or just click the X button.
I don't know why people need another close button on windows, you can just close the window anyway...
Thank you, I will give this a go as well and see if it remedies the crashing.

My game is fullscreen and window border isn't visible. Therefore closing the window with the cross button isn't really possible. It feels a little weird to just ask people to alt+f4 every time they want to close the game, so I want the shutdown command to be available.
Yeah it makes sense. Forget you can start the game in fullscreen. lol

Original thread: https://forums.rpgmakerweb.com/threads/recommended-nw-js-versions-for-mv-between-29-4-and-49-2.174893/