Problems with the interaction of SRD_GameUpgrade and SRD_Super_Tools_Engine

Htlaets

Veteran
Veteran
Joined
Feb 1, 2017
Messages
85
Reaction score
56
First Language
English
Primarily Uses
First, to quote myself from a similarly titled thread:

While this thread is open I figure I may as well piggy back on it. I'm not having a game stopping error, persay but... Well I posted this in the srd character creator thread:

So... Got a unique problem with the character creator plug-in. Well, more specifically super engine tools and game upgrade. Everything more or less works fine, but when I playtest I'm unable to close the playtest window with anything but the task manager. This only happens when both the game upgrade and super tools engine are online. If only one or the other is on, things are fine. But if both are on, I can't even alt-f4 out of the game window. No errors, just can't close the playtest window. This is independent of the character creation plug-in itself, but since it needs super tools and dynamic actors needs game upgrade I figured I'd post this here.

I've tried doing this in a blank project with no other plug-ins and it still comes up as an issue. Not sure what to do it about it.

And since then I had the sense to open the console to see if anything is written to it when I try to close the game and low and behold the following error pops up:

Error in event handler for nw.Window.onClose: TypeError: GameWindowManager.onWindowClose is not a function
at NWWindow.MakerManager.onWindowClose (chrome extension://odlameecjipmbmbejkplpemijjgpljce/js/plugins/SRD_SuperToolsEngine.js:587:20)

And it pops up every time I try to exit. Have to use task manager to stop the process.

Edit: also another not-so-stopping thing that pops up: Game says it can't find icon.png when it's still in the proper folder. This error doesn't pop up without gameupgrade or superengine tools on. Didn't notice that before because it didn't actually cause the game to break.
Since I made the above post I've found a few more details.

First:
There's an additional issue: When I deploy a game with both(having just one works fine) these plug-ins on and try to launch I immediate get the following game-breaking error:
TypeError Cannot read property 'bind' of undefined

I did the deployment as a test, there are no other plug-ins active. Oddly enough the deployment can be closed unlike the playtest.

Second:
I got a bit more details on the root of the problem. The console points to the following code within the SRD_Super_Tools_Engine plug-in when I get the error when I try to exit the game:
Code:
if(Imported["SumRndmDde Game Upgrade"]) {

MakerManager.onWindowClose = function() {
    GameWindowManager.onWindowClose();
};

_.GameWindowManager_closeGame = GameWindowManager.closeGame;
GameWindowManager.closeGame = function() {
    if(_.isPlaytest && MakerManager.window) {
        MakerManager.closeTheWindows.call(GameWindowManager.window);
    } else {
        _.GameWindowManager_closeGame.apply(this, arguments);
    }
};

} else {

MakerManager.onWindowClose = function() {
    MakerManager.closeTheWindows.call(this);
};

}

MakerManager.closeTheWindows = function() {
    DebugManager.deleteQuickSave();
    if(MakerManager.window) {
        if(window.confirm('Are you sure you wish to close the game while Editor Window is active? Your changes will not be saved.')) {
            MakerManager.window.close(true);
            this.close(true);
        }
    } else {
        this.close(true);
    }
};
I'm fairly bad at coding, but I did try seeing what deleting that code would do. All that did was make the program not recognize the Super tools plug-in any longer and operate as if just game upgrade was on(Which technically gets rid of the problem but also makes me unable to use the plug-ins that I want to). And, again, this is from the link in the error code in the quote.

Logically the error points to a part of the plug-in that is only active when both gameupgrade and super tools are present.

Third:
The "cannot find icon" error only occurs when both GameUpgrade and Super tools are online, like the closing error, if one or the other is not on then this error does not occur.



To be clear, I have the plug-in order right(SRD game upgrade and then super tools). The playtest functionality of the editor works fine minus the inability to quit. The actual functions of the plug-ins work as well. The deployments not working at all, though, is a bigger issue...

I'd appreciate any help on this issue that anyone can offer.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

rux
Just 80% of my motivation on game making lmao, anyone got tips on how to not be unmotivated?
I've signed up for a job training program for people with Asperger's Syndrome. I went to a "test run" today so they could see how well I did with simple jobs, and I amazed them. Most new people do it in 30+ minutes, while I finished in a mere 15 minutes. Gives me time to work on a screenplay for Studio MDHR...
People,I have seen that Someone from China/Chile and London is doing a Vaccine Against COVID-19.
Doing anything that yield good result in the long run is like sowing seeds. With proper care, they will grow and bear fruits. I'm excited for tomorrow. :D

Forum statistics

Threads
105,455
Messages
1,013,841
Members
137,105
Latest member
twilightprincess
Top