Tutorial : Building Android Package Without Eclipse

Discussion in 'Buildbox General Discussion' started by EZKad, Jul 18, 2016.

  1. EZKad

    EZKad Avid Boxer

    Joined:
    Apr 26, 2016
    Messages:
    157
    Likes Received:
    155
    Hello fellow buildboxers

    I'm starting a tutorial serie called "Buildbox like a boss" :)
    The goal is to share stuff I learned in this forum or I made myself for a more efficient Buildbox work.

    The first tutorial is about building android APK package without Eclipse, I personnaly don't like to open eclipse each time I need to test a buildbox project, so I made some useful scripts and wrapped them into a user friendly explorer right click command.

    [​IMG]

    the tutorial explains how to do all that.

    Part 1 : creating debug APK package : http://ezelia.com/2016/buildbox-like-boss-creating-android-apk-without-eclipse

    Part 2 creating release APK package : http://ezelia.com/2016/creating-buildbox-android-apk-without-eclipse-part-2-buildbox-like-boss-serie


    I'll continue the serie if you judge it useful :)

    Some other subjects I'd like to cover :
    - Integrating analytics
    - Integrating achievements
    I'm still digging to find a way to achieve those two features on both android and iOS I think I found a viable solution but it requires tests and experimentation.
     
    Last edited: Jul 22, 2016
  2. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Very nice! This is similar to the Makefile option in the Android project root, works on Mac, but I've never tried on Windows. ;-)
     
    EZKad likes this.
  3. EZKad

    EZKad Avid Boxer

    Joined:
    Apr 26, 2016
    Messages:
    157
    Likes Received:
    155
    yeah that was the idea, I'm used to use command line to build project for fast testing, and this was not available on windows.

    also since some users may not like to type commands, I added an option to create shell extension :)

    hope it'll be useful
     
  4. energizerlithium

    energizerlithium Avid Boxer

    Joined:
    Oct 5, 2015
    Messages:
    110
    Likes Received:
    47
    This is great @EZKad, I hope you keep it up:)
     
    EZKad likes this.
  5. yenomeerf

    yenomeerf Boxer

    Joined:
    Oct 8, 2015
    Messages:
    90
    Likes Received:
    32
    Command Line is Sexy
     
  6. CREAZCYK

    CREAZCYK Avid Boxer

    Joined:
    Jul 15, 2016
    Messages:
    117
    Likes Received:
    28
    clever Idea
     
  7. carlosabreu1981

    carlosabreu1981 Boxer

    Joined:
    Jan 13, 2016
    Messages:
    92
    Likes Received:
    38
    5 stars for this post
     
  8. EZKad

    EZKad Avid Boxer

    Joined:
    Apr 26, 2016
    Messages:
    157
    Likes Received:
    155
    Thank you guys :)
    I'm preparing the second part of this tutorial : creating a release build.
     
  9. andreas_kviby

    andreas_kviby Avid Boxer

    Joined:
    Feb 5, 2016
    Messages:
    170
    Likes Received:
    44
    Anyone have a similar script for mac users? I hate to try Eclipse and I don't seem to get it to work at all with any of my games.
     
  10. Qdeveloper

    Qdeveloper Avid Boxer

    Joined:
    Apr 25, 2016
    Messages:
    210
    Likes Received:
    76
    You my hero !!
     
  11. EZKad

    EZKad Avid Boxer

    Joined:
    Apr 26, 2016
    Messages:
    157
    Likes Received:
    155
    it's still not fully functional since there is no clean and official way to do it, it's a sort of hacks but I'm trying to get something as clean as possible and as easy as possible to implement for non developers.
    but hopefully, I'll find a solution and document it.
     
    Qdeveloper likes this.
  12. nayamamarshe

    nayamamarshe Avid Boxer

    Joined:
    Feb 21, 2016
    Messages:
    237
    Likes Received:
    64
    You're awesome, buddy!

    Please do make a tutorial on adding achievements, You'll make history! Boxers will praise you for the centuries to come. :D
     
  13. EZKad

    EZKad Avid Boxer

    Joined:
    Apr 26, 2016
    Messages:
    157
    Likes Received:
    155
    haha I know this is a big demand here, I'm too working on it for my own game.
    I really think it'll be possible, but limitted.
    the only event we can detect in the current export is the custom ad network, but this one is disabled if the player purchase "No Ads item".

    on Android it's possible to hook score submit event, so I think that we can add code here for achievement, problem, this is not available on iOS export. but I think I found a sort of hack to do it, but it'll only work if apple game center is available and connected.

    so my first goal in achievements implementation will be to attach achievement to the score event.
    then I'll dig into a way to detect play start and gameover events, those are also interesting for both achievements and analytics.

    of course all this stuff will require minimum code skills (edit/modify/compile)
     
    Christoph likes this.
  14. carlosabreu1981

    carlosabreu1981 Boxer

    Joined:
    Jan 13, 2016
    Messages:
    92
    Likes Received:
    38
    i have integrated achievements, is very easy if you have some android development background,
    i have integrated another leaderboard too, i did it on android.
     
  15. EZKad

    EZKad Avid Boxer

    Joined:
    Apr 26, 2016
    Messages:
    157
    Likes Received:
    155
    was you able to do it on iOS ?

    what's interests me is a hook in play start, gameover, and score value on iOS

    on android it's quite possible with PTServicesBridge, but there is no such code on iOS export :/
     
  16. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    If you guys can find out how multiple leaderboards can be achieved it would be really awesome. Or more like awesomeness x one quadrillion times. Go go go you can do it. :confused:
     
    playsgames6666 likes this.
  17. EZKad

    EZKad Avid Boxer

    Joined:
    Apr 26, 2016
    Messages:
    157
    Likes Received:
    155
    what do you mean by multiple leaderboards ? sending same score to all of them ?
     
  18. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    One leaderboard for the endless mode, another one for the challenges, another one for the adventure mode, and so on. Multiple leaderboards. Right now everything gets added to just one leaderboard. Aren't you guys talking about that (and achievements)?
     
  19. EZKad

    EZKad Avid Boxer

    Joined:
    Apr 26, 2016
    Messages:
    157
    Likes Received:
    155
    the achievements are a different thing.
    the problem with multiple leaderboards the way you describe them is that buildbox allways send automatically the score to the default leaderboard.
    and also, buildbox don't provide any solution (in the exported code) to "know" what world/mode your are playing.

    I think there can be a solution, but it'll not prevent buildbox to send the score to the default leaderboard.

    this lead me to think that it's necessary to prepare some override that "hack" into buildbox export to allow some events detection.
    if this is done, we can put many things inside it.

    I already have some ideas but it'll take time to test them all.

    also, Android and iOS exports are very different, I need to find a way to provide the same hooks on both platforms.
     
    Christoph likes this.
  20. EZKad

    EZKad Avid Boxer

    Joined:
    Apr 26, 2016
    Messages:
    157
    Likes Received:
    155
    Last edited: Jul 22, 2016
    yenomeerf and Qdeveloper like this.

Share This Page