How to configure CranberryGame?

Discussion and feedback on Construct 2

Post » Wed Apr 29, 2015 6:47 am

Hi Guys,
I am trying to use the plugin @cranberrygame plugin to integrate google play with the game that I have created and I want to publish in google play.
this is what I have done.
1- I have created an app in the google play developer console.
2- then clicked on Game services.
3- clicked on add a new game and filled in the app details.
4- Then clicked on Linked apps and added an android app (not a web one) as it is stated in this tutorial (https://www.scirra.com/manual/175/google-play) because I don't have any url for it.
5- selected the package name from the list, which obviously was the new game that I am creating and published that.
7- went and downloaded the plugin from https://dl.dropboxusercontent.com/u/186681453/free/cranberrygame_PhonegapGame_1.0.64_free.zip
8- unzipped the file and copied the folder into C:\Program Files\Construct 2\exporters\html5\plugins
9- restarted the construct2 and imported the plugin.
10- wrote the following block of functions. and entered the app id that I have got from the game services app
Image
11. I have went to file>export project >Cordova
12. created a project XDK and added the following line of code into intelxkd.config.android.xml and intelxdk.config.additionals.
Image
13 - then off course entered the App_ID that I have got from the game services app
14- and finally instead of crosswalk because my app end up being really big (around 75MB with max file should be only 50MB)with crosswalk so I can't upload the apk, I use Android and create an apk and upload it into add developer console.
15- then I download the app from the market.

The problem
As soon as application get to this block of code Image it crash :( I have spent a week on this and I can't figure out why that is the case? Is there anyway to debug it , or is there something obvious that you can see I am doing wrong? Does this plugin only work with corsswalk ? :shock: :? :roll: :shock: :shock:

I highly appreciate if anyone could help me with this.

Thanks
B
5
S
1
Posts: 35
Reputation: 447

Post » Wed Apr 29, 2015 6:51 pm

Not 100% but Im pretty sure the Cranberry plugin is for Cordova/Crosswalk only
ImageImage
B
34
S
7
Posts: 310
Reputation: 2,626

Post » Wed Apr 29, 2015 7:04 pm

You have to edit the: intelxdk.config.crosswalk.xml
B
86
S
25
G
11
Posts: 652
Reputation: 11,047

Post » Wed Apr 29, 2015 8:06 pm

@lova actrullay all plugins go into intelxdk.config.additions and are placed there automatically on export from C2. @zardaloop before adding the code did you change/remove the code already added in intelxdk.config.additions


@Billy Bleeks cranberrygame's plugins actrully work in the xdk with Crosswalk,android,ios they also work in phonegap
B
42
S
17
G
2
Posts: 850
Reputation: 6,209


Return to Construct 2 General

Who is online

Users browsing this forum: mihirolover and 9 guests