MV Newer NW.js versions break SRD_SuperToolsEngine.js' editor window

1778165987572.png

Another one of my problems related to my not-so-recent update to a new version of NW.js was that some plugins, especially SumRndmDde's Super Tools Engine, crash the game when you try to open their editor window. I don't know what causes this, but the plugin itself doesn't crash the game unless I decide to use the window by either pressing F12 or letting it open on startup.

I wanted to fix this because Triacontane's Graphical Design Mode can't change maximum columns like SRD's GUI editor can (heck, I can't even change some of the windows' sizes because I edited them with SRD's plugin...), and disabling the plugin altogether reverts a good chunk of my UI layout.
What version of NJWS did you upgrade to, and do you need it to be at that version?
Open the SRD_SuperToolsEngine plugin, look for the MakerManager.createWindow function around lines 514 to 539, and replace the entire block with this:

JavaScript:
MakerManager.createWindow = function() {
    if(_.isNewNWjs) {
        nw.Window.open('supertoolsengine.html', {
            title: "Super Tools Engine  -  Core Editor  |  SumRndmDde",
            width: 600,
            height: 680,
            resizable: false,
            icon: "www/icon/icon.png"
        }, function(newWindow) {
            this._window = newWindow;
            this._window.setShowInTaskbar(false);
            this.moveWindow();
            this.setupWindow();
            this._window.on('loaded', this.onWindowLoad.bind(this));
        }.bind(this));
    } else {
        this._window = nw.Window.open('', {
            title: "Super Tools Engine  -  Core Editor  |  SumRndmDde",
            width: 600,
            height: 680,
            resizable: false,
            icon: "www/icon/icon.png"
        });
        this._window.setShowInTaskbar(false);
    }
};

What I did was simply fix the issue shown in your error stack trace. I didn't run any tests because I don't know the exact version of NW you're using.
What version of NJWS did you upgrade to, and do you need it to be at that version?
v0.110.1. The old version I had (v0.90) got a little unstable overtime, like the game not closing at all (freezing) when I try to exit it via the title screen.
Open the SRD_SuperToolsEngine plugin, look for the MakerManager.createWindow function around lines 514 to 539, and replace the entire block with this:

JavaScript:
MakerManager.createWindow = function() {
    if(_.isNewNWjs) {
        nw.Window.open('supertoolsengine.html', {
            title: "Super Tools Engine  -  Core Editor  |  SumRndmDde",
            width: 600,
            height: 680,
            resizable: false,
            icon: "www/icon/icon.png"
        }, function(newWindow) {
            this._window = newWindow;
            this._window.setShowInTaskbar(false);
            this.moveWindow();
            this.setupWindow();
            this._window.on('loaded', this.onWindowLoad.bind(this));
        }.bind(this));
    } else {
        this._window = nw.Window.open('', {
            title: "Super Tools Engine  -  Core Editor  |  SumRndmDde",
            width: 600,
            height: 680,
            resizable: false,
            icon: "www/icon/icon.png"
        });
        this._window.setShowInTaskbar(false);
    }
};

What I did was simply fix the issue shown in your error stack trace. I didn't run any tests because I don't know the
exact version of NW you're using.
tested it myself and... didn't work. :c
1778173024739.png

trying to close the game doesn't close it and instead makes the unsaved changes dialogue to appear, making it impossible to leave unless i pull out system monitor to kill the process itself

1778173127686.png
update: nvm i just realized i could just edit the Windows.jsonfile and it'd work the same way, just with more control. guess i can easily say that the editor window is redundant now

Original thread: https://forums.rpgmakerweb.com/threads/newer-nw-js-versions-break-srd_supertoolsengine-js-editor-window.183524/