How to fix this problem of CocoonJS ?

Get help using Construct 2

Post » Sat Jun 01, 2013 9:12 am

There is a problem for me about exporting the CocoonJS.


When I ran the zip file which have automatically created by CocoonJS Cloud Compiling, I have got the following error.

It is shown that
"Could not find anything to be executed. If you are using a ZIP file, please, verify that the main HTML or JS file is in the root of the ZIP file (not inside any folder). If you are using a folder path directly, please, check that the main HTML or JS file is stored inside of it."

I don't understand the meaning. Is there any codes need to be added?
(I just run the zip by using the cocoonjs app in iphone4s)

I hope I can get some helps here, thanks a lot !
B
4
Posts: 4
Reputation: 238

Post » Sun Jun 02, 2013 12:51 am

@louisjoe

Normally when you export a game to cocoonjs using construct2 you get a zip or rar file. Inside that rar/zip file you have a jscript, something like c2runtime.js.

Maybe its not finding that?

If not then you have to sign your compiled sdk file. There should be guides on it somewhere on the forums or on the cocoonjs website.retrodude2013-07-03 22:19:04
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Sun Jun 02, 2013 12:55 am

@louisjoe

I just reread your post. After the game is compiled from the cloud compiling system, then what you do is test to see if it works is to upload the compiled file to dropbox, then download the compiled apk file from your dropbox ON YOUR IPHONES web browser.

You cant run the compiled file with cocoonjs since its the apk file, however you can download it on your phone then run it like a regular app.retrodude2013-07-03 22:19:11
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Sun Jun 02, 2013 9:20 am

Yes, I have got the c2runtime.js inside the zip

I will try again later, I hope it will be okay

Thanks @retrodude
B
4
Posts: 4
Reputation: 238

Post » Sun Jun 02, 2013 6:31 pm

Unfortunately, the problem still here when I have tried.

It is also shown the black screen and this error again :

"Could not find anything to be executed. If you are using a ZIP file, please, verify that the main HTML or JS file is in the root of the ZIP file (not inside any folder). If you are using a folder path directly, please, check that the main HTML or JS file is stored inside of it."

Does anyone can share the solution of this issue, thanks
B
4
Posts: 4
Reputation: 238

Post » Sun Jun 02, 2013 7:28 pm

Louisjoe, are you attempting to run the file that you downloaded from the Ludei online cloud compiling service directly in the CocoonJS launcher? That launcher is just for testing ZIP files exported by Construct.

If you've already compiled the project online and got an API file, that is what is submitted to Apple for the App Store.

If you're exporting from Construct, before you ever touch the Ludei cloud compiler, you will get a ZIP file that is loaded up in the CJS launcher.

Or, an easier way to tell what's going on: what files are inside your ZIP file?
B
57
S
15
G
11
Posts: 912
Reputation: 12,581

Post » Mon Jun 03, 2013 2:08 am

@louisjoe

Can you tell us how your testing your compiled app file?retrodude2013-07-03 22:19:20
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Mon Jun 03, 2013 7:58 am

@louisjoe The CocoonJS launcher is only for the zip exported from C2. The zip from the cloud compiler is different and contains the files needed for the final publishing stage.

If you've used the cloud compiler, the process is easy for Android but a bit more difficult for iPhone.

Android is easy because you can just unzip the download from CocoonJS and install the .apk file straight onto your device.

iPhone is much more difficult. You need to compile the x-code stuff in x-code on a mac and you need a developer license. Ludei can't really automate this stuff due to Apple's developer restrictions. I haven't gone through the iPhone process yet, so someone else may be able to expand on it a bit more.

If you want to just run your game on your iPhone, don't use the cloud compiler. Just run the zip that C2 exports in the cocoon launcher.Nathan2013-06-03 08:02:51
B
29
S
8
G
4
Posts: 61
Reputation: 6,205

Post » Tue Jun 04, 2013 5:27 pm

THANKS ALL @GeometriX, @retrodude, @Nathan !!!
It's working well now XDDD

The final solution is just to get the zip file which exported from c2 and put it into the cocoon app in iphone.
Finally it runs prefectly well !

It is not necessary to compile another zip file from cocoon cloud, if I just want to test the app in cocoonjs.

Now I understand the difference between zip from c2 and zip from cocoon cloud compiler.

Thanks for your detailed explanation =D
B
4
Posts: 4
Reputation: 238


Return to How do I....?

Who is online

Users browsing this forum: senna68, WhosWho, ziadhorat and 9 guests