Newgrounds Authentication Port (Construct 3 Plugins)

You're viewing a single comment in a conversation. View all the comments
  • 5 Comments

  • Order by
  • Hey there, !

    I am sorry I have to bother you with this, but may I report you a few issues, since I think this may be the right place for them? One is related to the Newgrounds.io API stuff themselves and another being the game not minifying in the Advanced mode on with the added plug-in.

    I may have to send in each error under this comment's replies because of the character limit in these things...Ugh, how these suuu-UUUCK.

    And a question in advance: I feel like you may know what to do how to fix the Advanced minify issue (while I stick to the "Simple" mode), do you know what I could do to get around that API related issue if there is no way that could be fixed?

    Thank you very much in advance!

    • Hi there... the ng API has a lot of problems with the C3 engine as a result of the constant C3 upgrades, the NG API is not fully compatible with minification and the latest features of C3. Although you can still use the plugin and it will work, I'm no longer providing updates for this since the root cause of the problem is the NG API itself. Sorry for the inconvenience. As an alternative, you can implement your own version using C3 scripting, or fork the plugin source and try to fix it by yourself. This plugin is a port from REX old plugins.

    • 2) Advanced Minifying Error

      Here's another funny little thing - it does minify in a "Simple" mode (r256 beta, by the way), while upon using the "Advanced" mode, I received this error log:

      /str/c3runtime.js:3179:6: ERROR - [JSC_UNDEFINED_VARIABLE] variable i is undeclared

      3179| for(i=0; i<this._event_listeners[type].length; i++) {

      ^

      /str/c3runtime.js:3530:2: ERROR - [JSC_UNDEFINED_VARIABLE] variable event is undeclared

      3530| event = new Newgrounds.io.events.OutputEvent("cancelLoginRequest",null,null);

      ^^^^^

      2 error(s), 0 warning(s)

    • 1) Newgrounds.io Thing (HTML5)

      In short, it works as it should...while the game that uses this plugin is not hosted on Newgrounds itself, as weird as it sounds.

      The thing is, the Authentication tries to open up the Newgrounds Passport popup window when the "Login" action is triggered, and while it does so successfully anywhere else but Newgrounds, the thing doesn't work on Newgrounds (given that the user already should be logged in prior to game booting up anyway...), meanwhile it sends an error log in the browser console, and it doesn't recognize the current user.

      Uncaught ReferenceError: window is not defined

      at Newgrounds.io.SessionLoader.loadPassport (c3runtime.js:1628)

      at Newgrounds.io.core.requestLogin (c3runtime.js:1544)

      at c3runtime.js:1971

      at c3runtime.js:1624

      at c3runtime.js:1627

      at Newgrounds.io.core._doCallback (c3runtime.js:1548)

      at XMLHttpRequest.h.onreadystatechange (c3runtime.js:1552)