User Tag List

Results 1 to 9 of 9

Thread: Mobclix

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mobclix

    Yesterday, I had the adventure of a lifetime trying to get MobClix interated .... the hard way!

    I downloaded the SDK, and got about half way through the integration instructions. Finding the relevant source files in the iphone runtime codebase was relatively easy. Where I got hung up however is in integrating the routines for the MobClix view controller into the view controller tree for the runtime.

    I *think* if I stare at it a bit longer, I can find a way to get it running, but I post this brief report here in case anyone else here has tried this. I've never written ObjC before, but I have a knack for hacking s**t together. Anyone think this is feasible?

    In a much older post, someone mentioned the issues with getting AdMob integrated revolve around control of sounds. This really is the only doubt I have so far.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Some updates

    After doing some more staring at the code, I now realize that I might be able to accomplish integration by writing replacement versions of CIadViewController.{m,h}

    What I would need to do is re-implement all of the methods for that class, and point them at suitable methods in the mobclix API. Im not sure if I can find reasonable substitutes for all of them, but a first glance look suggests that there aren't that many. This surprises me.... that the interaction with the iAd libraries looks so minimalistic. There may be some function calls somewhere in the codebase that I am missing.

    ObjC syntax is weird!

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bah!

    I think I got the view controllers set up properly, but I just don't see anything come up when the game runs. It might be on moblix's end since I haven't bothered signing up for any services. Nonetheless, I have to put this down for a while.

    The integration itself didn't take more than an hour, and there really isn't too many lines of code needed - now its just a matter of figuring out what I did wrong. Had I worked with ObjC before this Im sure the outcome would have been better. Im likely overlooking something simple. I can't get the interface builder in Xcode working, so my view is probably still not linked to a view controller.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Keep us informed, you're doing great man!

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hah!

    Your encouragement inspired me to try again. 10 minutes later, I have it working!

    I logged into the mobclix dev panel and noticed that their analytics engine is seeing hits from my iPad over the last several days. This confirms successful startup, but still no ads are showing. Next I realized I needed to click a button to activate ads - specifically the size of ad needed that I was initializing in the code. I also turned on "test mode" since Im not signed up for any ad networks.

    It still didn't work, so I went into my code, and commented out the initialization under the 'ViewDidLoad' handler and reactivated some earlier code attempts where I integrated the mobclix calls into clickteams' viewController initialization routines. Now I see a test banner at the top of my app!

    Im crazy busy with work obligations now, and my boss expects something substantial tomorrow, but midweek I'll clean up my ObjC and post it here. Right now, my Xcode project has a bunch of commented out lines with various attempts to get the banners to load. Im going to start from a clean slate now that I know which pattern works.

    Soon, we can all manually modify our Xcode to integrate mobclix. What remains is implementing the proper positioning calls, but it looks relatively straightforward! Eventually, getting it into the exporter will probably be easy, given that the change to the codebase required has only been about 15 lines of code ....

    If I get it done the "right way" - the same interface to iAds will apply - particularly the ability to activate iAds in either frame properties or the event editor.

    Happy day!

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bah, one new potential setback

    It seems that mobclix will handle iAds for iphone platforms, but not for iPads. This is primarily because there is a size difference involved. The solution requires a little more implementation pain :

    http://support.mobclix.com/entries/2...ix-on-the-ipad


    Nonetheless, I think this can get implemented as well. I'll just use the iAd fail callback function to resume the mobclix ads. The only complication is that it likely requires another view controller - but again, my ObjC experience is lacking.

    Anyways, this will be fun.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fanotherpg's Avatar
    Join Date
    Jul 2006
    Location
    High Wycombe, Buckinghamshire, UK
    Posts
    3,663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks promising.

  8. #8
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kinase View Post
    objc syntax is weird!
    truth!!

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    K guys, Ive posted some prototype code in the owners lounge.

    Its mostly done, but Im unsure a few things work correctly. If you're skilled with ObjC, try it and contribute.

    http://community.clickteam.com/showthread.php?t=71744

Similar Threads

  1. Mobclix integration
    By kinase in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 6th September 2012, 03:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •