Stencyl 3.4.0 is now out. Get it now!

Chartboost Mobile Ads (Updated Apr 27)

rob1221

  • *
  • Posts: 8974
The Chartboost site is down right now, but I'm guessing they'll have an updated SDK.


rob1221

  • *
  • Posts: 8974
Did you have to update the SDK?

riki82

  • *
  • Posts: 303
Did you have to update the SDK?
No, I contacted customer support.

Chartboost Support response:

Hi Riccardo,
Thanks for your email, and for using Chartboost — sorry for the inconvenience, first off.
We're going to run some tests to see how we can resolve this; I'll get back to you as soon as I have more information. In the meantime, let me know if there's anything else I can help with!


In the evening the problem was gone ;)

« Last Edit: November 28, 2013, 03:29:55 am by riki82 »

sandsoftimer

  • Posts: 316
today i just decided to use Chartboost ad system in my app. After implementing chartboost i found that my game remain unpaused while chartboost ad loaded in game. at the same time i was playing game. please help. how could i pause game while ad is loaded.
 
i already used Add Event->Mobile->ads but same result.
testing in iOS.

« Last Edit: December 02, 2013, 03:53:03 am by sandsoftimer »
iOS ->          

Android ->
iOS -> Bubble Tapping
 Android -> Bubble Tapping

rob1221

  • *
  • Posts: 8974
I don't know how to check for that, but it might have something to do with the delegates JasonIrby added.

sandsoftimer

  • Posts: 316
Ok i got some useful information from below link. please tell me how can i use this override function using code block.
https://help.chartboost.com/documentation/android/delegation
iOS ->          

Android ->
iOS -> Bubble Tapping
 Android -> Bubble Tapping

liteking

  • Posts: 103
Hello, I download and install Chartboost extension and also enable it (Setting > Extensions). But it does not show in Palette > Extension Blocks. Anyone can help me how to use it in my app?
Thank you in advanced.

rob1221

  • *
  • Posts: 8974
No, you didn't enable it.  That's why that button still says "enable".  Click it and then restart your game.

h1rnz1lla

  • *
  • Posts: 649
Hey,

first - thanks for the extension!
I've been fiddling around with it and it seems that under Android i get a strange behavior.
The Ad opens and when i close it, the app window itself disappears but the overlay that the app window has does not. Then when i tap a second time it triggers the ad, so the google store or browser opens. When i come back to the app the overlay is gone.

using a Samung Galaxy S2 with 4.1.2.

rob1221

  • *
  • Posts: 8974
I attached an updated chartboost.jar.  Replace the one inside template/android/libs and see if that solves your problem.

h1rnz1lla

  • *
  • Posts: 649
oh quick response, will try in a minute ;)

*does not work, i'm using the stable nme build btw.

Code: [Select]
[LOG]      [echo] Gathering info for Zukis Quest...
[LOG]     [setup] Android SDK Tools Revision 16
[LOG]     [setup] Project Target: Android 2.2
[LOG]     [setup] API level: 8
[LOG]     [setup]
[LOG]     [setup] ------------------
[LOG]     [setup] Resolving library dependencies:
[LOG]     [setup] No library dependencies.
[LOG]     [setup]
[LOG]     [setup] ------------------
[LOG]     [setup]
[LOG]
[LOG] -build-setup:
[LOG]      [echo] Creating output directories if needed...
[LOG]
[LOG] -pre-build:
[LOG]
[LOG] -code-gen:
[LOG]      [echo] ----------
[LOG]      [echo] Handling aidl files...
[LOG]      [aidl] No AIDL files to compile.
[LOG]      [echo] ----------
[LOG]      [echo] Handling RenderScript files...
[LOG] [renderscript] No RenderScript files to compile.
[LOG]      [echo] ----------
[LOG]      [echo] Handling Resources...
[LOG]      [aapt] Generating resource IDs...
[LOG]
[LOG] -pre-compile:
[LOG]
[LOG] -compile:
[LOG]     [javac] Compiling 22 source files to /Users/H1RN/stencylworks/games-generated/Zukis Quest/Export/android/bin/bin/classes
[LOG]     [javac] /Users/H1RN/stencylworks/games-generated/Zukis Quest/Export/android/bin/src/MyChartboost.java:63: <anonymous MyChartboost$1$1> is not abstract and does not override abstract method didFailToLoadUrl(java.lang.String) in com.chartboost.sdk.ChartboostDelegate
[LOG]     [javac]                     {
[LOG]     [javac]                     ^
[ERR] java.lang.NullPointerException
[ERR] java.lang.NullPointerException
[LOG] Unexpected problem on thread AWT-EventQueue-0: null
[LOG]     [javac] 1 error
[LOG]
[LOG] BUILD FAILED
[LOG] /Users/H1RN/stencylworks/android-sdk/android-sdk-macosx/tools/ant/build.xml:602: The following error occurred while executing this line:
[LOG] /Users/H1RN/stencylworks/android-sdk/android-sdk-macosx/tools/ant/build.xml:622: Compile failed; see the compiler error output for details.
[LOG]
[LOG] Total time: 1 second

« Last Edit: December 10, 2013, 01:15:18 pm by h1rnz1lla »

rob1221

  • *
  • Posts: 8974
Fixed.  Download the updated extension to test.

h1rnz1lla

  • *
  • Posts: 649
thanks rob going to test it right now!

*sorry no luck this time attached you the error output

Code: [Select]
[LOG] -setup:
[LOG]      [echo] Gathering info for Zukis Quest...
[LOG]     [setup] Android SDK Tools Revision 16
[LOG]     [setup] Project Target: Android 2.2
[LOG]     [setup] API level: 8
[LOG]     [setup]
[LOG]     [setup] ------------------
[LOG]     [setup] Resolving library dependencies:
[LOG]     [setup] No library dependencies.
[LOG]     [setup]
[LOG]     [setup] ------------------
[LOG]     [setup]
[LOG]
[LOG] -build-setup:
[LOG]      [echo] Creating output directories if needed...
[LOG]
[LOG] -pre-build:
[LOG]
[LOG] -code-gen:
[LOG]      [echo] ----------
[LOG]      [echo] Handling aidl files...
[LOG]      [aidl] No AIDL files to compile.
[LOG]      [echo] ----------
[LOG]      [echo] Handling RenderScript files...
[LOG] [renderscript] No RenderScript files to compile.
[LOG]      [echo] ----------
[LOG]      [echo] Handling Resources...
[LOG]      [aapt] Generating resource IDs...
[LOG]
[LOG] -pre-compile:
[LOG]
[LOG] -compile:
[LOG]     [javac] Compiling 22 source files to /Users/H1RN/stencylworks/games-generated/Zukis Quest/Export/android/bin/bin/classes
[LOG]
[LOG] -post-compile:
[LOG]
[LOG] -obfuscate:
[LOG]
[LOG] -dex:
[LOG]       [dex] Converting compiled files and external libraries into /Users/H1RN/stencylworks/games-generated/Zukis Quest/Export/android/bin/bin/classes.dex...
[LOG]        [dx]
[LOG]        [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
[LOG]        [dx] java.lang.IllegalArgumentException: already added: Lcom/chartboost/sdk/Analytics/CBAnalytics;
[LOG]        [dx] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
[LOG]        [dx] at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
[LOG]        [dx] at com.android.dx.command.dexer.Main.processClass(Main.java:486)
[LOG]        [dx] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
[LOG]        [dx] at com.android.dx.command.dexer.Main.access$400(Main.java:67)
[LOG]        [dx] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
[LOG]        [dx] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
[LOG]        [dx] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
[LOG]        [dx] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
[LOG]        [dx] at com.android.dx.command.dexer.Main.processOne(Main.java:418)
[LOG]        [dx] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
[LOG]        [dx] at com.android.dx.command.dexer.Main.run(Main.java:206)
[LOG]        [dx] at com.android.dx.command.dexer.Main.main(Main.java:174)
[LOG]        [dx] at com.android.dx.command.Main.main(Main.java:91)
[LOG]        [dx] 1 error; aborting
[LOG]
[LOG] BUILD FAILED
[LOG] /Users/H1RN/stencylworks/android-sdk/android-sdk-macosx/tools/ant/build.xml:752: The following error occurred while executing this line:
[LOG] /Users/H1RN/stencylworks/android-sdk/android-sdk-macosx/tools/ant/build.xml:754: The following error occurred while executing this line:
[LOG] /Users/H1RN/stencylworks/android-sdk/android-sdk-macosx/tools/ant/build.xml:766: The following error occurred while executing this line:
[LOG] /Users/H1RN/stencylworks/android-sdk/android-sdk-macosx/tools/ant/build.xml:256: null returned: 1
[LOG]
[LOG] Total time: 6 seconds

« Last Edit: December 12, 2013, 07:11:09 am by h1rnz1lla »

rob1221

  • *
  • Posts: 8974
Go to Run > Clean Project and try again.