CocoonJS plugin updates

Discussion and feedback on Construct 2

Post » Wed May 20, 2015 3:08 pm

Will do.

I just noticed there are two of them listed in the plugin search, I'm trying the latest one now and will report.
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Wed May 20, 2015 3:33 pm

I have to hand it to you Ludei, this whole process is about a hundred times better than the old cloud compiler. Kudos for that.

Using your Atomic Plugin for C2 https://github.com/ludei/atomic-plugins-c2, so far so good. I'm about to test my first APK with direct admob support using Canvans+


What is the proper Full Screen option to use when exporting from C2? Scale Outer just put my game in a tiny window in the bottom left corner.

Is it currently possible to add and remove permissions?

Where to add in our own icons? Seems to default to a generic Cocoon.io icon right now.
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Wed May 20, 2015 3:48 pm

ArcadEd wrote:I have to hand it to you Ludei, this whole process is about a hundred times better than the old cloud compiler. Kudos for that.


We are really happy to read this :).

ArcadEd wrote:What is the proper Full Screen option to use when exporting from C2? Scale Outer just put my game in a tiny window in the bottom left corner.


Could you please tell us if the game is wrong in the developer app too?

ArcadEd wrote:Is it currently possible to add and remove permissions?

Yep. Permissions are completely up to you. You will decide what your game needs and set it in the config.xml file.

ArcadEd wrote:Where to add in our own icons? Seems to default to a generic Cocoon.io icon right now.

We are currently creating a wizard for that. Meanwhile, they must be set in the config.xml file.
You can use this as example (it is one of the templates that appear on the wizard): https://github.com/CocoonIO/cocoon-template-phaser

Cheers :)
Last edited by ludei on Wed May 20, 2015 3:52 pm, edited 1 time in total.
B
9
S
4
G
4
Posts: 383
Reputation: 3,616

Post » Wed May 20, 2015 3:51 pm

I have not tried the developer app yet. I'll do that now.

I just send a feedback report on the scaling issue. I've tried letterbox scale and scale outer, both with the same results.

How about custom Icons?
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Wed May 20, 2015 4:09 pm

When I try with devapp I just get an exception error.

Cannot open the javascript file 'cordova.js': IllegalArgumentException: Cannot Open the given '/data/data/com.elfgames.reeledin/files/www/cordova.js' file path. at static ludei::SPData ludei::io::AbstractFileSystem::loadFile(const string&):43

Now, I don't see a cordova.js in my exported directory.
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Wed May 20, 2015 8:52 pm

I just want to make sure I have the steps right.

1. Create projects
2. Export with Cordova option
3. Delete Config.xml file
4. zip up projects
5. Upload to cocoon.io cloud compiler

Is that all right so far?
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Thu May 21, 2015 3:15 am

@ArcadEd

1. Remove old CocoonJS plugin from your C2 project.
2. Export with Cordova option.
3. Delete Config.xml file
4. Copy everything to /www folder and zip it.
5. Upload to Cocoon.io

And it should work

Other issues I've found:

WebGL on = app in 1/4 screen
WebGL off = app in full screen

Minification + native AdMob = Cannot call method 'cz' of undefined (...) at XMLHttpRequest.xg.e.onload (c2runtime.js
Last edited by szymek on Thu May 21, 2015 3:27 am, edited 2 times in total.
B
18
S
7
G
1
Posts: 783
Reputation: 4,237

Post » Thu May 21, 2015 3:18 am

Explains my screen size issue. I assume they are looking into that already.

I'll try the www folder thing.
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Thu May 21, 2015 3:36 am

Good luck :)
B
18
S
7
G
1
Posts: 783
Reputation: 4,237

Post » Thu May 21, 2015 3:49 am

I'm getting black screens no matter what I do. Games work fine with the old compiler though. Installing android studio now so I can do some debug logging to report what is going on.

The only thing I am changing is using the CocoonJS-Atomic plugin for C2 and installing the admob cordova plugin in Cocoon.io
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests