Chartboost Module

Monkey Forums/User Modules/Chartboost Module

Skn3(Posted 2013) [#1]
Just adding a topic for this module so its easier to debug.

This module was very kindly funded by Tibit! Please direct all your appreciation to him :D

Moved repo to here:
https://github.com/skn3/chartboost

Enjoy, for free :D



Skn3(Posted 2013) [#2]
From previous topic
silentshark:

@skn3, @mag - did you guys get any further with Chartboost? I get the same issue as mag - blank, black screen on actual android devices, althought it seemed ok on an emulator on a pc

This was the same on v69 and v70e

Cheers for all the hard work pulling this module together

SilentShark Games



Skn3(Posted 2013) [#3]
Silentshark,

It was tested and working on htc desire (old one). I will test again at the weekend as my fiance is currently borrowing the android phone.

Perhaps there are some permissions that need to be set for this to work?

What android version are you compiling with?


silentshark(Posted 2013) [#4]
Hi Skn3,

First, a big thank you to you for developing this module (and other great ones). I feel like I owe you a beer. Thanks, too to Tibit for funding. That's another beer.

Re: android version and environment

Monkey: v69
Android: SDK tools revision 19, API level 13, Project Target Android 3.2
Java: jdk1.6.0_31
Android devices: Sony Experia, Android v4.? (will need to check)
Kindle Fire, Android v?

As indicated before, it all builds great, runs fine on the Bluestacks emulator. But on the above hardware it just generates a blank screen.

I also tried on my second machine with latest java, latest android, v70e Monkey with identical results.


Paul - Taiphoz(Posted 2013) [#5]
THANK YOU..

Bluestacks , never heared of it before but that has just made my day :)
I dont suppose there is an apple version ? for pc ? sorry to derail the thread just goto ask.

nice work on the module. :)


SLotman(Posted 2013) [#6]
THANK YOU x2!

Bluestacks is awesome... tons of times better than the native android emulator!

Is there any way to use it with eclipse, or even with monkey directly?


Volker(Posted 2013) [#7]
You can right click on the apk file to install, choose 'open with' and
point to the HD-ApkHandler.exe.
I don't know if you can do it more directly.


SLotman(Posted 2013) [#8]
I know that - the idea would be to integrate into Monkey, so it would install the apk / run it after compilation.


Volker(Posted 2013) [#9]
Auto launching app after compile:
http://www.monkeycoder.co.nz/Community/posts.php?topic=1622

Since the HD-ApkHandler.exe accepts the name of apk to install
via command line (just tested), it should be possible.


Volker(Posted 2013) [#10]
Pha, no need for that.
With Monkey V66 at least it compiles and installs/runs directly on BlueStacks here.
But now I couldn't compile to my tablet. "More than one device and emulator".
Had to kill some services with the taskmanager to get it working again.


Skn3(Posted 2013) [#11]
Ok I got an opportunity to look at this. It appears that monkey changed when it is calling "OnCreate". This had side affects of trying to initialise chartboost in a gl thread, which isn't a nice thing to do.

Download the latest repo and give it a try.

This was tested on latest release of monkey 70e and on htc desire.

Let me know how you get on.


silentshark(Posted 2013) [#12]
Hi Skn3,

I've had a go, but am not seeing an updated version.. I used the following command to pull down what I thought would be the latest stuff..

hg clone https://code.google.com/p/chartboost-monkey/


Have I got it wrong?


Skn3(Posted 2013) [#13]
Whoops,

I have moved this to a github repo. Link has been updated.

Please check the guide here:
https://github.com/skn3/chartboost/wiki/Setup-Instructions

You must move your start session call to the app constructor (new())... see examples.


SLotman(Posted 2014) [#14]
Ooops, nevermind - got it to work! :)
(just had to delete the build folder and compile again)


programmer(Posted 2014) [#15]
@Skn3, could you please update Chartboost libraries to the latest versions?


Skn3(Posted 2014) [#16]
Will take a look at doing this soon when look at spine module.


Alex(Posted 2014) [#17]
+1 to programmer!

It seems like old version of chartboost doesn't work. With android at least.
In debug it says "failed to load interstitial".
In Chartboost dashboard there are Impressions %)
However, I don't see ads on any of my devices. Can anyone confirm?

PS:
Thanks for the great module!