issues working with CocoonjS and C2 r187(with solutions)

0 favourites
  • 8 posts
From the Asset Store
A cool way for kids to write and practice English Alphabets
  • Hey all

    I've tried using the new cocoonJS plugin, and have found several issues preventing me from testing it, browser and launcher due to multiple JS errors.

    Here are the solutions that made it possible (finally!)

    Problem

    Getting C2 error:

    Condition: FileExists(min_js)

    File: html5.cpp

    Line: 1693

    Function: void __cdecl Exporter::DoExport(class era::IProject *,class era::ILayout *,bool,struct HWND__ *,bool,bool)

    Build: release 186 (64-bit) checked

    Component: HTML5 exporter

    (Last Win32 error: 2)

    Solution

    The new cocoonjs plugin edittime.js has a typo when using dependency "achievement_locked.png". Make sure the name of the image and the dependency are the same.

    Problem

    Getting JS error (Launcher only):

    jQuery is undefined (got it from "jquery.equalheights.js")

    Solution

    In the new cocoonjs plugin edittime.js, the "jquery.equalheights.js" dependency appears before "jquery-1.8.3.min.js". Just switch them so that it loads jquery first.

    Problem

    Getting JS error:

    ILLEGAL TOKEN (got from "Webstorage_common.js")

    Solution

    common.js in the webstorage plugin of C2 is totally empty, as opposed to other common.js files which has 2 comment lines in them, a thing that causes JS error trying to load an empty file. It's enough to put "//" inside the file to make the error go away.

    Problem

    Getting JS error in the custom launcher:

    "FB is undefined"

    Solution

    I've noticed the latest custom launcher from cocoonjs (2.1 compiler) pops up this error, while the signed apk of 2.0.2 works just fine.

    I've filed a bug with ludei found here: http://support.ludei.com/hc/communities ... onstruct-2

    Feel free to join there as well, if you encounter it also.

    After those fixes, I managed to run the new cocoonJS plugin correctly on my mobiles.

    Hope it helps anyone <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Thanks!

  • ludei, could you look at these issues?

  • Well, i have a bigger problem. In 2.1 the tiled background disappears, replaced by a blu background

  • pcprice76, with CocoonJS? weird, I've tested tiled background and all was ok...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I would also post this info on the github https://github.com/ludei/Construct-2-plugin Click on issues and post it there. They seem to check there most often.

  • ArcadEd Thanks, I added their issues in there as well

  • Hello,

    Thanks a lot for this bug report with all the solutions. It is really helpful . We need to test if, after doing these changes, there are problems with the previous versions of C2, as we need to get focused on the stable version (r184 right now).

    Regarding Facebook issue, we will investigate it. However, could you please confirm me that it only happens with the combination of r187 + 2.1 launcher? Have you tested if the compiled project works?

    Well, i have a bigger problem. In 2.1 the tiled background disappears, replaced by a blu background

    If you send us a capx that reproduces the issue, we will have a look at it .

    Regards.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)