CocoonJS plugin updates

Discussion and feedback on Construct 2

Post » Wed Jun 24, 2015 11:24 pm

veeru5656 wrote:@mamujuano for me after adding res folder the black screen bug got sort out
https://github.com/CocoonIO/cocoon-template-phaser


@veeru5656 tried adding res folder and editing config.xml to add icons but no luck. The problem is physics behaviour.

The developer app says this:

Image

(the image posted few posts back)
B
22
S
5
G
1
Posts: 28
Reputation: 1,706

Post » Thu Jun 25, 2015 9:50 am

TiAm wrote:@ludei

Would you consider adding support for Google Saved Games to ATPGooglePlayGames? It's an incredibly awesome service that you can read about here:

https://developers.google.com/games/ser ... savedgames


We wanted to have a basic plugin before adding new features. Now we are planning to add new features, so we will investigate if it is possible to add this one too. At least, to the ATP. I can't guarantee that, even if we include it in the ATP for Google Play Games, it can be adapted to C2. I need to investigate it first. But we will have a look at it.

Mamajuano wrote:Im still getting black screen. Without physics behaviour runs ok.

Here are the files

Source zip: https://www.dropbox.com/s/bls08z9hrh6t3ia/source.zip?dl=0

Apk: https://www.dropbox.com/s/el4goc6uzyc5dkz/android-armv7-debug.apk?dl=0


Have you sent your feedback through the feedback button? I really recommend you to do it because here I am just one and there they are many and all the developers will receive the issue.

xanxion wrote:I think the new compiler is to complicated. I don't get it. Do i need to edit xml files, and remove files from the exported cordova application? i liked the old method better. This is much worse...


Yes, you have to delete one single file: the config.xml file, and we will generate a new one at the cloud. The C2 exporter for Cordova is for Phonegap and the config.xml file includes plugins by default that are not supported by Cordova 5.0.0. Why do you think that is complicated?
In addition, you don't have to edit by hand anything at the cloud if you don't want to. There are wizards and sugar code almost everywhere and we are still adding more. It is a beta, so we are still working on it, but I don't think it is complicated at all. If you have any suggestion for improving it, you can always send us a email using the Feedback button. If you like the old compiler, you still can use it if you want.
B
9
S
4
G
4
Posts: 383
Reputation: 3,616

Post » Thu Jun 25, 2015 1:28 pm

One thing I've been asking for since February is a direct download link to the CocoonJS player. Forcing developers to go through Google Play, or use the cloud compiler to run their projects narrows your maintenance down a bit, but c'mon guys, how difficult is it to simply post a link?
B
17
S
4
G
3
Posts: 44
Reputation: 2,827

Post » Thu Jun 25, 2015 1:51 pm

@Noga

Hi

Did you do server settingin google play console?

Check the following server setting again.

https://github.com/cranberrygame/cordov ... er-setting

Thanks
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Thu Jun 25, 2015 3:01 pm

I finally build an apk.. But there's an scaling issue, its not filling the whole screen. It sits in the down-left corner.
And text to speech doesn't work. (Cranberrygame text to speech plugin)

But the apk filesize was awesome.. but yea. No luck this time :P
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Thu Jun 25, 2015 3:03 pm

@cranberrygame do you know if your Text To Speech plugin works with Cocoon.io?
- i installed:
Speechsynthesis
org.apache.cordova.speech.speechsynthesis


but no luck
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Thu Jun 25, 2015 3:22 pm

@xanxion

Hi,

Cocoon.io requires manual cordova plugin install.

Do the following additionally.

Code: Select all
https://cocoon.io - Create project - [specific project] - Setting - Plugins - Custom - Git Url: https://github.com/nmckeel/org.apache.cordova.plugin.tts.git - INSTALL - Save


Thanks
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Thu Jun 25, 2015 3:30 pm

Thanks a lot cranberrygame.. That's a pretty cool feature!
I hope it works. Now the only problem, is the scaling issue. But that is @ludei i need help from! :)


The scaling issue is a bit weird. When i click the middle of the screen where my button should actually be, then it activates. But the button is way down in the corner. o.O
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Thu Jun 25, 2015 3:57 pm

xanxion wrote:Thanks a lot cranberrygame.. That's a pretty cool feature!
I hope it works. Now the only problem, is the scaling issue. But that is @ludei i need help from!


Well, the provisional fix for the scaling issue was written on this topic:

https://www.scirra.com/forum/cocoonjs-plugin-updates_p939689?#p939689

redrocket wrote:One thing I've been asking for since February is a direct download link to the CocoonJS player. Forcing developers to go through Google Play, or use the cloud compiler to run their projects narrows your maintenance down a bit, but c'mon guys, how difficult is it to simply post a link?


The link in Google Play is the only external link we provide, but it is just for testing the before starting to use the cloud, which is the real tool. It is thought as a showcase and fast testing. The real workflow is to use the cloud compiler to create a custom launcher as soon as you know how your project should work (and which environments and services you need).

Our recommendation is to use the custom launcher rather than the one in the stores. The launcher at the store will be always worse than the one you can compile at the cloud, because this second one includes all the fixes as soon as we upload them. It shouldn't be required to compile a custom launcher more than once or twice per project if the settings are correct.

In the new cloud there will be only one way of getting a launcher: compiling it from the project settings. We call it dev-app, but it is a custom launcher after all (with all the plugins, configuration and resources the original project has).
B
9
S
4
G
4
Posts: 383
Reputation: 3,616

Post » Thu Jun 25, 2015 4:14 pm

xanxion wrote:Thanks a lot cranberrygame.. That's a pretty cool feature!
I hope it works. Now the only problem, is the scaling issue. But that is @ludei i need help from! :)


The scaling issue is a bit weird. When i click the middle of the screen where my button should actually be, then it activates. But the button is way down in the corner. o.O



To fix the scaling issue it is also possible to just edit the preview.js(Line 434). You can find it under Construct 2\exporters\html5. It just needs to look like this:
this.isRetina = ((!this.isDomFree || this.isEjecta || this.isCocoonJs) && this.useHighDpi && !this.isAndroidStockBrowser);

It works for me without a problem.(Even minified)
B
30
S
7
G
5
Posts: 7
Reputation: 3,874

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: vegapomme27, Yahoo [Bot] and 7 guests