Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url is not defined #46

Open
xana43 opened this issue Jul 16, 2021 · 7 comments
Open

url is not defined #46

xana43 opened this issue Jul 16, 2021 · 7 comments

Comments

@xana43
Copy link

xana43 commented Jul 16, 2021

Describe the bug
After compiling the project the game tries to load but the console says that URL isn't defined

To Reproduce
Steps to reproduce the behavior:

  1. compile an rpgmaker MZ project
  2. try to launch the game afterwards
  3. open the console (if using the SDK version of NWJS)

Expected behavior
the game loads perfectly fine, with plugins and everything

Screenshots
image

image

Desktop (please complete the following information):

  • OS: Windows
  • Release/Distro: Windows 10
  • Version: 19043.1110
  • System Architecture: 64-bit
  • .NET Runtime: 5.0
  • Rpgmaker Version: Rpgmaker MZ 1.3.2
@FirehawkV21
Copy link
Owner

Heyo.

I can't reproduce it on my side. Just for testing, change the loadMainScripts() to this:

    loadMainScripts() {
        try {
            scriptUrls.forEach(url => {
                nw.Window.get().evalNWBin(null, url);
            });
            PluginManager.setup($plugins);
        }
        catch {
            this.printError("Failed to load", url);
        }
        window.addEventListener("load", this.onWindowLoad.bind(this));
        window.addEventListener("error", this.onWindowError.bind(this));
    }

@xana43
Copy link
Author

xana43 commented Jul 17, 2021

it appears to do the same thing, but only if I edit the rmmz_managers.js
image
this works

image
this doesn't

@FirehawkV21
Copy link
Owner

Hmm... That is really odd.

Just as a test, change the PluginManager.loadScript to this:

PluginManager.loadScript = function(filename) {
    nw.Window.get().evalNWBin(null, "js/plugins/" + filename + ".bin");
};

@xana43
Copy link
Author

xana43 commented Jul 20, 2021

still the same issue

@xana43
Copy link
Author

xana43 commented Jul 20, 2021

Would sending a list of all the plug-ins I use help with figuring out the problem?

@FirehawkV21
Copy link
Owner

Sure.

@xana43
Copy link
Author

xana43 commented Jul 21, 2021

(I had to do a few screen shots, because I have way too many plugins to type out)
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants