How to use SDKBOX in Cocos Creator?

Hi,
Is it possible to use SDKBOX in Cocos Creator project? I want to use IAP in my game.

I installed sdkbox and run this commant in my cocos creator project folder:

sdkbox import admob

and it gives error:

Ozer-MacBook-Pro:newproject ozergul$ sdkbox import admob


|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright © 2015 SDKBOX Inc. v1.0.0.13
downloading package sdkbox-googleplayservices_v2.2.2.10.tar.gz
[###################################] 100%
no supported projects to import into
Installation failed :frowning:

also @ShunLin said:

also I have compiled my project and again tried:

sdkbox import admob

but again same error…

1 Like

anyone knows how to implement sdkbox to cocos creator project?..

cocos package import admob?

it returns error…

 no supported projects to import into
 Installation failed :(
 Error running command, return code: 255.

is there a .cocos-project.json in the directory of your project?

there is no .cocos-project.json

make one

{
    "engine_type": "prebuilt",
    "engine_version": "cocos2d-x-3.10",
    "project_type": "cpp"
}

make sure your project_type is correct

When I create .cocos-project.json, there is an error

You can’t use a name that begins with a dot “.”, because these names are reserved for the system. Please choose another name.

do it from a command-line

I tried but nothing changed… again same errors.

my .cocos-project.json

{
	"name": "TEMPLATES.helloworld.name",
	"desc": "TEMPLATES.helloworld.desc",
	"banner": "template-banner.png",

	"engine_type": "prebuilt",
	"engine_version": "cocos2d-x-3.10",
	"project_type": "js"
}

Let us ask @nite for help with this.

1 Like

what if we are doing the it in javascript??

i tried to import but it was like this…

C:\Users\CocosChunkz\Downloads\tutorial-dark-slash-master\tutorial-dark-slash-master>python C:\Users\CocosChunkz\Downloads\cocos2d-x-3.9\tools\cocos2d-console\plugins\plugin_package\sdkbox.pyc --runincocos import admob
A newer version of SDKBOX is available, would you like to update v0.5.7.19 to v1.0.0.13?
Type [Y]es, [n]o or [q]uit y
[###################################] 100%
updated SDKBOX v0.5.7.19 to v1.0.0.13 at C:/Users/CocosChunkz/Downloads/cocos2d-x-3.9/tools/cocos2d-console/plugins/plugin_package/sdkbox_installer.zip
Restarting SDKBOX.
no supported projects to import intoal-dark-slash-master\tutorial-dark-slash-master> [|]
Installation failed :frowning:

hi,

cocos creator does not support sdkbox. :frowning:

Thankss anyway

Because cocos creator generate an different version of cocos2d-x, currently you have to do a little hack to make it work

Here is a tutorial of how to do it, we’re working on supporting this special version of cocos2d-x

@nite
Is the little hack still necessary or does Creator now support SDKBOX?
What if we used the SDKBOX installer?

We’re updating the installer to fully support Cocos Creator, will be release it in two weeks.

3 Likes

@nite Nice! That sounds awesome :slight_smile:

So does that mean that adding SDKBOX plugins to a Cocos Creator project will be done within Creator or done through the SDKBOX installer? Basically what will the work flow be?

Will there be any manuals/tutorials or step-by-step instructions to follow for people doing this for the first time?

Thanks. Sorry for the nit-picky questions.

Hi @nite

Any idea when the installer will be able to support Cocos Creator?
@mbgtcx