Cocos Helper - Add Chartboost, AdMob, Google Play etc easily With Video Tutorials With Free Skype Assistance

Not ATM but something we have put on our list to consider for the future.

What is the biggest desired feature you want for Cocos2d-x/Cocos2d-JS?

Profit? :slight_smile:

  • Google Play features on iOS(Leaderboards etc.) as an alternative to Game Center
  • Cloud Saves
  • Challenges and quests
  • Multiplayer
3 Likes

No I was just wondering whether u posted right image of the banner as I am still seeing this cropped one
I mean why I am not able to see the left side!

Thats weird, it doesnt crop for us, try another browser.

All sounds really good, we will take a look into it.

AdColony and Vungle are now available in Cocos Helper thanks to the immense efforts the community is providing, can be downloaded at the regular place aka GitHub https://github.com/SonarSystems/Cocos-Helper

Videos for C++ coming tomorrow and JavaScript coming soon.

More plugins on the way such as Flurry and in-app purchases :smiley:

1 Like

Here are the C++ videos for Vungle and AdColony for iOS

Vungle: http://bit.ly/1F5swAV
AdColony: http://bit.ly/1JFelJm

Android videos coming very soon along with the JavaScript counterparts

Thank you. Now everything I use, I can find in Cocos Helper.

Can I use Admob + AdColony + Vungle in the same app ? Is there any kind of conflict ?

Thank you for all your help.

1 Like

No conflict use till your hearts content.

FYI if there is any conflict we aim to resolve it :smiley:

Also are you using Cocos2d-x or Cocos2d-JS?

AdMob video tutorial now available for Cocos2d-JS iOS, Android coming very soon

http://www.sonarlearning.co.uk/coursepage.php?topic=game&course=sonar-cocos-helper-js&videoindex=6485#6485

Hi,

I’ve added Cocos Helper - Google Analytics to my game. (What a time saver!!!)

Now I want to count the time that user spent in my game.

I can start the count when the first scene appears on the screen but I have a problem where to stop the count (in the code) when a user leaves the game.

Will the AppDelegate destructor be the good place to stop the counter and send event to GoogleAnalytics?

1 Like

Yh that should be all good

RevMob video for Cocos2d-JS iOS is now available http://bit.ly/1dvWicl

More videos for Cocos2d-JS Helper

More videos for Cocos2d-x Helper

The “submitScore” is working ok, on Galaxy S3 mini,

But the game is aborting when calling “submitScore” in this device:

Samsung Galaxy Tab S - Android version 5.0.2

The “showLeaderboard” is working ok.

LogCat:

JNI DETECTED ERROR IN APPLICATION: the return type of CallStaticIntMethodV does not match void sonar.systems.framework.SonarFrameworkFunctions.submitScore(java.lang.String, long) in call to CallStaticIntMethodV from void org.cocos2dx.lib.Cocos2dxRenderer.nativeRender() “GLThread 24884” prio=5 tid=13 Runnable
| group=“main” sCount=0 dsCount=0 obj=0x12c05a60 self=0xaece8c00
| sysTid=19504 nice=-11 cgrp=apps sched=0/0 handle=0xaec77000
| state=R schedstat=( 7193103141 680228498 6599 ) utm=559 stm=160 core=1 HZ=100
| stack=0xaeefe000-0xaef00000 stackSize=1036KB
| held mutexes= “mutator lock”(shared held)

native: #00 pc 00004c58 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)

native: #01 pc 000034c1 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)

native: #02 pc 0025c965 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits >&, int, char const*, art::mirror::ArtMethod*)+84)

native: #03 pc 0023fc83 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&) const+162)

native: #04 pc 000b316d /system/lib/libart.so (art::JniAbort(char const*, char const*)+620)

native: #05 pc 000b389d /system/lib/libart.so (art::JniAbortF(char const*, char const*, …)+68)

native: #06 pc 000b46d9 /system/lib/libart.so (art::ScopedCheck::CheckSig(_jmethodID*, char const*, bool) (.constprop.131)+284)

native: #07 pc 000bdaa5 /system/lib/libart.so (art::CheckJNI::CallStaticIntMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+72)

native: #08 pc 000cde8d /data/app/com.Developer.Game-1/lib/arm/libcocos2dcpp.so (_JNIEnv::CallStaticIntMethod(_jclass*, _jmethodID*, …)+18)

native: #09 pc 000ce0f9 /data/app/com.Developer.Game-1/lib/arm/libcocos2dcpp.so (JniHelpers::jniCommonVoidCall(char const*, char const*, char const*, long)+52)

native: #10 pc 000ce373 /data/app/com.Developer.Game-1/lib/arm/libcocos2dcpp.so (SonarCocosHelper::GooglePlayServices::submitScore(char const*, long)+14)

native: #11 pc 000cb507 /data/app/com.Developer.Game-1/lib/arm/libcocos2dcpp.so (presOver()+130)
.
.
.
Runtime aborting…

I will pass this over to our Android dev

I found the error. The problem is in “JNIHelpers.cpp”

some functions: “jniCommonVoidCall” are using “CallStaticIntMethod” instead of “CallStaticVoidMethod”

I changed here and now is Ok, in both Android versions.

I think this problem was masked in older versions of Android, and now generates this error. And the developers aren’t seeing the problem because they are not testing on new version.

Thanks.

2 Likes

Cheers for this, I have let our Android guy know so he can look into solving this for future developers.

iAds video tutorial for Cocos2d-JS http://bit.ly/1BaOCXQ