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">