Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: app_advisory on July 05, 2014, 05:54:46 AM

Title: Chartboost
Post by: app_advisory on July 05, 2014, 05:54:46 AM
Hi,

It should be wonderful to have Playmaker actions for Chartboost.

Thanks !
Title: Re: Chartboost
Post by: Marsh on July 05, 2014, 09:29:34 AM
I will take a look at this :)
Title: Re: Chartboost
Post by: app_advisory on July 21, 2014, 11:59:21 AM
Great  :D

Thank you !
Title: Re: Chartboost
Post by: djoshi on August 19, 2014, 06:59:02 AM
Yes..I am also awaiting.. :)
Title: Re: Chartboost
Post by: app_advisory on September 19, 2014, 05:48:10 PM
I just made myself some actions, I did send it to Unity. I will let you know when it's aproove
Title: Re: Chartboost
Post by: m3ndi3 on September 26, 2014, 11:05:37 PM
Ah I really hope this comes out soon! I wanted to integrate Chartboost with my app :)
Title: Re: Chartboost
Post by: app_advisory on September 27, 2014, 05:54:20 AM
There was an issue in my package (the icons ..)

Waiting for unity now, I just resend it.


But write me an email I will send you the package :)

dev@barouch.fr


Title: Re: Chartboost
Post by: xhidnoda on September 30, 2014, 04:44:52 PM
Great.....i want!
Title: Re: Chartboost
Post by: xhidnoda on November 11, 2014, 09:35:41 AM
If anyone use Android Native Pluguin
must reed this:
https://unionassets.com/manual/android-native-plugin/faq/android-native-with-chartboost

we just need a playmaker actions. :(
Title: Re: Chartboost
Post by: app_advisory on November 11, 2014, 01:20:36 PM
Sorry for the delay. I received your email.

Please find the actions attached.

If you have any suggestion don't hesitate to ask me.

And follow me on Facebook, it's the only thing I want ;)

http://facebook.com/appadvisory (http://facebook.com/appadvisory)
Title: Re: Chartboost
Post by: xhidnoda on November 11, 2014, 01:31:48 PM
 ;D ;D ;D ;D ;D ;D ;D ;D

Hey!!! so many thanks!  this night  will test your actions!
any problems I'll let you know.
Title: Re: Chartboost
Post by: app_advisory on November 12, 2014, 05:02:03 AM
You're welcome my friend
Title: Re: Chartboost
Post by: xhidnoda on November 12, 2014, 07:37:19 AM
i like your facebook page! :)

The prefab come with your package is a example?
Title: Re: Chartboost
Post by: app_advisory on November 12, 2014, 07:39:45 AM
It's just an example of use for an action
But it's explicite. So the prefabs are not useful at all
Just for information you have to check just one "position" (startup , game over ...) in the action.
You can checked more than one but you will not have what You want
Title: Re: Chartboost
Post by: xhidnoda on November 12, 2014, 07:50:23 AM
I do not quite understand this:

Quote
You can checked more than one but you will not have what You want
::)
Title: Re: Chartboost
Post by: app_advisory on November 12, 2014, 09:23:24 AM
In the actions, you have to choice if you want the interstitial at startup, at game over etc...

Just take one by action.

That's it
Title: Re: Chartboost
Post by: xhidnoda on November 12, 2014, 12:15:04 PM
great! i will test this  ;)
Title: Re: Chartboost
Post by: Phuzz on February 18, 2015, 12:11:59 PM
Hello,

I would like to confirm that these actions are working pretty well, I am using Playmaker 1.8 and unity 5.0 . Thank you for these actions :)

However I have noticed after trying to get to Show More apps, an interstitial ad was showing, after looking into the Chartboost Playmaker Actions I have noticed a few misplaced lines,  I have attached screenshots of what I changed to get "MoreApps" working, incase you want to use these actions.

I can also upload the fixed scripts if requested, but shouldnt be hard to fix anyways. Check Screenshot Please.

Thank you again, Chartboost is working well in my app.
Title: Re: Chartboost
Post by: iEpic on February 19, 2015, 10:52:47 PM
Hi,
    I'm a little confused on how to get this working right.
There is a lot of locations to choose from, but how does it know these locations in the game?
Like how does it know when you are in the main menu, or home screen, or when it's paused?

When my character dies, I want to give the option to watch the video ad to continue from that spot instead of restarting the level.
How do I setup the locations in my game. Like how could I setup the UI when you die to one of those locations?
I'm a beginner programmer so hopefully it's a simple task.
Thanks and I appreciate you taking the time to make these actions!
Title: Re: Chartboost
Post by: Phuzz on February 20, 2015, 03:09:24 AM
Hi,
    I'm a little confused on how to get this working right.
There is a lot of locations to choose from, but how does it know these locations in the game?
Like how does it know when you are in the main menu, or home screen, or when it's paused?

When my character dies, I want to give the option to watch the video ad to continue from that spot instead of restarting the level.
How do I setup the locations in my game. Like how could I setup the UI when you die to one of those locations?
I'm a beginner programmer so hopefully it's a simple task.
Thanks and I appreciate you taking the time to make these actions!

Hello,

These actions do not know what is happening in your game, the locations are basically just "Save Slots" for your convenience incase you have more than one ad showing in the game, to have a reference each one what is it for.

For Example, in your case:

At the startup scene of your game, you can ad the action "Has Rewarded Video", check the location "Game Over" then you have to actions to continue from, Success and Fail.

If Success, Send an event to Idle or to load the next scene "Main menu or something", so basically do nothing, because you have a video already cached in your game data.

If Fail, that means there is no video cached in your game data, so then you have to call for an event "Cache Rewarded Video", having a video cached will prevent a call to Chartboost when you want to how a video, and will almost instantly load it. Ofcorse choose the Location "Game Over"

Now when your player dies, you can have one the game over menu, certain navigation buttons
1) Menu
2) Restart
3) Watch Video (To continue from same spot). Now here you send an event, OnClick (Show Rewarded Video). From here you have to do your calls with chartboost, or what you would like to reward the player upon watching the video. Like an event to resume level from same spot.

There is an example scene with the Chartboost actions that will explain what I have here, let me know if you need any help.

Peace!
Title: Re: Chartboost
Post by: iEpic on February 20, 2015, 03:49:43 AM
ok thanks for the info.

So if it fails to cache an add, does it make since to loop it back in the same state to try to load another ad until it succeeds?
Title: Re: Chartboost
Post by: iEpic on February 20, 2015, 04:06:45 AM
An action to know if the video was successfully played would be awesome!
Don't know if it's possible though.
Title: Re: Chartboost
Post by: Phuzz on February 20, 2015, 05:04:37 AM
Usually it will only fail to Cache an add if there's no internet connection or an error in your setup, I don't see any other reasons, if it fails to cache a video just send it to idle and don't loop it because if it fails once its not going to work even if you loop.

In my setup, more apps and Interstitial, it never fails if there's internet connection so i don't see a reason why it would fail, but I have to not show an ad if it isnt cached better than lowering the performance of my game and stuttering the frame rate.

I think on the chartboost dashboard there is an option to let you know if video has been watched, I think there is a game called "Buff Knight" on android, pretty cool game, that has the watch video feature you asked about when you lose, try it and lose, you will get a menu that has an option to watch a video for 5 gems or something.
Title: Re: Chartboost
Post by: iEpic on February 20, 2015, 05:24:28 AM
OK thanks man you are awesome!
Really appreciate the advice
Title: Re: Chartboost
Post by: Phuzz on February 20, 2015, 05:33:31 AM
Welcome :)
Title: Re: Chartboost
Post by: iEpic on February 20, 2015, 09:38:03 AM
One last thing....

Do I need to do the cache thing every new scene, or just one time when the user boots up?
Title: Re: Chartboost
Post by: Phuzz on February 20, 2015, 11:32:33 AM
Only Call the Cache Action After the "Fail" Event of the Has Action, so basically it will only be cached the very first time a player starts the Game, Next time after the Has Action, it will call the "Success" event so it wont be cached again, and will proceed to loading whatever comes next.
Title: Re: Chartboost
Post by: iEpic on February 20, 2015, 03:49:13 PM
Phuzz, you've been a life save so far, but I have one more thing you could maybe help me with.

So I'm trying to give the rewards for completing the video, and I have no idea if I'm doing it right.

So what I thought of doing is sending a global broadcast event from the Chartboost.cs script that came with the chartboost plugin.

I found and edited this part of the script.
Code: [Select]
private void didCompleteRewardedVideoEvent(string dataString) {

Hashtable data = (Hashtable)CBJSON.Deserialize(dataString);
int reward;
try {
reward = Convert.ToInt32(data["reward"]);
PlayMakerFSM.BroadcastEvent("Add Continue");

} catch {
reward = 0;
}

if (didCompleteRewardedVideo != null)
didCompleteRewardedVideo(CBLocation.locationFromName(data["location"] as string), reward);
}


Basically I just added the broadcast event right after try, but I have no idea what try even is, or if I did this right.
Title: Re: Chartboost
Post by: Phuzz on February 21, 2015, 03:23:46 AM
Hello,

I honestly do not know the way you are trying but there is another way I know of, you could use the Playmaker "Invoke Method" from the action list, then Specify Game Object and Drag in the Object that is carrying the "Chartboost.cs" script, or use Owner of its the same object carrying the script as a component.

Behaviour: you should get to choose from Playmaker.FSM and Chartboost.SDK, ofcorse choose the chartboost SDK, then Method Name: Open it and choose "DidCompleteRewardedVideoEvent", after that I guess you could give the desired reward to the player :)

You can find there other methods like fail and dismiss rewarded video to have better control of users.
Title: Re: Chartboost
Post by: rik on February 25, 2015, 04:06:56 AM
can you share new actions with us
Title: Re: Chartboost
Post by: Phuzz on February 25, 2015, 04:21:20 AM
Hello,

These are the fixed actions for Chartboost, I do not own these and did not make, and do not know how to make them :D I just fixed some misplaced Lines where "showmoreapps" was showing interstitial, and other similar problems.

All credit goes to app_advisory

Here you go see Attached, just drag the folder into Unity Assets Folder after extracting.


Title: Re: Chartboost
Post by: rik on February 27, 2015, 02:06:59 PM
Hi can make new action to check if reward video watched that will this complete package
Title: Re: Chartboost
Post by: iEpic on February 28, 2015, 04:34:34 PM
We also need actions to play regular video ads.
Title: Re: Chartboost
Post by: rik on March 01, 2015, 10:14:58 AM
Hi any one successfully tested the ads i was trying to test the ads not able to get the ads
Title: Re: Chartboost
Post by: rik on March 01, 2015, 11:53:07 AM
Hi it was working now you need have chartboost script in the scene
spent 3 hours
Title: Re: Chartboost
Post by: rik on March 02, 2015, 02:54:18 PM
Hi any one know how to setup video ads ?
i was able to fix interstital ads
but not able to see more apps
Title: Re: Chartboost
Post by: Phuzz on March 07, 2015, 02:35:18 AM
Video ads work fine with me, did you setup your video in the Chartboost dashboard?
Title: Re: Chartboost
Post by: Aaddiction on March 07, 2015, 10:45:46 AM
Video ads work fine with me, did you setup your video in the Chartboost dashboard?

Yes, but there's Video Interstitial and Reward Video. There's currently action for Reward Video, but not video interstitial.
Title: Re: Chartboost
Post by: rik on March 07, 2015, 10:48:14 AM
Hi first thanks for the confirmation actually chartboost website was really very bad design it was not easy to understand.

i will give a try again to get this working
Title: Re: Chartboost
Post by: app_advisory on January 05, 2016, 12:46:32 AM
Hi,

I just release my asset for this on the Asset Store :

https://www.assetstore.unity3d.com/en/#!/content/50770

I can offer 5 free voucher. Just write me on my email : contact@app-advisory.com
Title: Re: Chartboost
Post by: rik on January 15, 2016, 09:57:46 AM
why actions are not available ?
Title: Re: Chartboost
Post by: app_advisory on January 15, 2016, 10:07:37 AM
There was a little issue on the package, and now waiting for review

sorry
Title: Re: Chartboost
Post by: rik on January 15, 2016, 10:15:23 AM
ok nice when i use admob and chartboost i get error

can it be solved ?
Title: Re: Chartboost
Post by: app_advisory on January 15, 2016, 10:17:02 AM
if it's about my asset : contact@app-advisory.com

cheers!
Title: Re: Chartboost
Post by: app_advisory on January 20, 2016, 03:41:09 PM
Hi all,

Just to inform you the Chartboost Asset if available now and FREE for a quick time.

Enjoy

 http://u3d.as/mqK