SDKBOX Integration without the Installer

hi.
can u inform me how to get sdkbox installer?

paste this to your command line and run it.

python -c "import urllib; s = urllib.urlopen('https://raw.githubusercontent.com/sdkbox-doc/en/master/install/install.py').read(); exec s"

Where to download sdkbox installer ???

OMGā€¦How can anyone know this command line ?

curl: (22) The requested URL returned error: 404 Not Found

hi @Kotaiba

You can create one file by yourself.
create a new file with name ā€œ.cocos-project.jsonā€

After creating the file, write these into it -

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

Now save the file and paste it into your project root folder.

NOTE:

if you are on mac then this file will be invisible by default, if you havenā€™t turned on the visibility of all files.
Change this to your current cocos verison

 "engine_version": "cocos2d-x-3.x",

Hello @jinjin and @zllivedoor

You can download the SDKBOX installer here

Steps :

  1. Open the link, scroll down to the bottom of the page.
  2. Find this -

Download the first link saying Auto Installer.

A .zip file will be downloaded.

Mac User -

Unzip the file and copy itā€™s content to your usr/local/bin
so that sdkbox would be available to your terminal.

Windows Users -

If you want to keep it updated all time with latest release, unzip at any location and set the directory path as environment variable, so that sdkbox would be available to your cmd.

Project Specific

If you just want it for the project only.
you can unzip the contents of the auto-installer into your project root folder.

Let me know in case of any difficulty.

Hello @AbhyudaiRagh

Thatā€™s because the directory in which you are trying to import sdkbox plugins is not a game root directory.

You need to do this inside your root directory of the game you created.

For instance -

Say - C:\agd\games\DemoGame
is your root directory. Go to this directory in command prompt.
Now try to use sdkbox import -b <YOUR_DESIRED_PLUGIN>

and yes, if sdkbox is not found as internal or external command then please follow these steps mentioned inside the windows section.

Hello ,
I am using Ubantu 14 , eclipse adt .and want to integrate sdkbox inapp in my android game.
i put sdkbox-installer in to my project root ā€œYourGameTitleā€

~/MyWorkspace/Android/cocos2d-x-3.3/projects/iap/YourGameTitlefILE$ ./sdkbox import iap


|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright Ā© 2015 Chukong Technologies Inc. v0.5.8.1
[Errno 2] No such file or directory: ā€˜/home/vikas/MyWorkspace/Android/cocos2d-x-3.3/projects/iap/YourGameTitlefILE/proj.android/src/org/cocos2dx/lib/Cocos2dxActivity.javaā€™
Installation failed : (

can you please help meā€¦

Hello @Arjun_Singh

First go inside this directory then run the command to import whatever plugins you want to integrate.

You need to be in your game project ROOT directory to be able to import plugins from sdkbox.

Best,
Pabitra

@pabitrapadhy thanks for your reply ā€¦i have done successfully

I read the rest of the post, no sign of that ā€œManual Installationā€ :slight_smile: could you please explain how its done in android studio? Ive downloaded the sdk from here down the page:
http://www.sdkbox.com/plugins/googleplayservices

sorry to invoke the topic after 2 years

http://docs.sdkbox.com/en/plugins/googleplay/v3-cpp/#manual-integration-for-android

Thanks, I did everything and doubled checked and I get the following error:

Information:Gradle tasks [:mProject:assembleDebug]
Error:error: ld returned 1 exit status
Information:BUILD FAILED
Information:Total time: 2 mins 9.195 secs
Information:1 error
Information:0 warnings
Information:See complete output in console

Do you have any idea what could have caused this? Ill look for a quick answer here I also post an issue with more detail

need more info.

general steps: