Consider Cocoon if XDK is not working (updated)

0 favourites
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • interesting about the unsupported stuff.. Definitely something to think about when troubleshooting.

  • As far as I can tell Cocoon doesn't work with Construct 2's Browser object. I tried building with Webview+ but the buttons that launch URLs, and work on the PC and with Intel XDX, don't work with Webview+.

    The code works on PC and with Intel XDX but the same exact code doesn't work with Webview+.

    I would love to use Canvas+ and I have nothing against using Cocoon's Canvas+ plugin for a Browser in game and for using Canvas+ to build, but Canvas+ doesn't support buttons and text boxes.

    I'm not going to make more work for the artist in my friends' and I group, so I'm sticking with buttons, and we need text boxes because we have player lives and a player's score. So Canvas+ won't work.

    Is there anyway to let Construct 2's Browser object work with Webview+ ?

  • It does work fine. Just install the "inappbrowser" plugin to your cocoon project.

    Regards

    Andy

  • Phoenixbowman

    The browser object does work with Webview+, you just have to add a couple of plugins and lines of code to config.xml to get it to work.

    As AndreasR said, you need to add the 'inappbrowser' plugin and you need to add the 'whitelist' plugin as well. Also, you need to add the following code to your config.xml, just copy and paste the lines below.

    [quote:an2ewhn9]<access origin="*"/>

    <allow-intent href="http://*/*"/>

    <allow-intent href="https://*/*"/>

    <allow-intent href="tel:*"/>

    <allow-intent href="sms:*"/>

    <allow-intent href="mailto:*"/>

    <allow-intent href="geo:*"/>

    <platform name="android">

    <allow-intent href="market:*"/>

    <preference name="enabled" value="true"/>

    </platform>

    I had the same issue but this worked for me and haven't had any issues with since.

  • Okay guys, quick and simple: I am trying to wrap my game via Cocoon but all the tuts are outdated or/and contradictory and whatever I do or try I keep getting a "Andoird devapp compilation failed" error and this is as far as it goes. Do anybody has a valid UP TO DATE tuts on the matter?

  • Hi Niespor

    my guide is up to date.

    https://shatter-box.com/knowledgebase/cocoonio/

    About your problem. Have you any illegal chars in your file name or object names in construct 2?

    Regards

    Andy

  • Hi Niespor

    my guide is up to date.

    https://shatter-box.com/knowledgebase/cocoonio/

    About your problem. Have you any illegal chars in your file name or object names in construct 2?

    Regards

    Andy

    of course not. I'll check that tut right away. Thank you =)

  • > Hi Niespor

    >

    > my guide is up to date.

    > https://shatter-box.com/knowledgebase/cocoonio/

    >

    > About your problem. Have you any illegal chars in your file name or object names in construct 2?

    >

    > Regards

    > Andy

    >

    of course not. I'll check that tut right away. Thank you =)

    You're welcome.

    Does the live built work? Or do both result in an error, developer app and live built?

    Regards

    Andy

  • I am not sure why, but I don't find Cocoon too user-friendly. I use Cordova CLI for my apps still. I tried cocoon again recently to find out they nerfed the free accounts to the point my account was unusable (I had several projects, going over the limit). This was not a nice experience for me. It is also not too clear what some of the UI components mean when compiling your app.

    Hopefully it gets improved on, but for now, I will stick with Cordova. It only takes 3-4 minutes to compile your own app and sign it.

  • You're welcome.

    Does the live built work? Or do both result in an error, developer app and live built?

    I haven't tried the live build, got stuck at the dev one. Sadly - still stuck. I followed your guide word-by-word and still end up with the same error. But its worth to note that I have no such problems when building with PhoneGap (quite frankly, I had like 5 builds done just today with PhoneGap).

    I am not sure why, but I don't find Cocoon too user-friendly. I use Cordova CLI for my apps still. I tried cocoon again recently to find out they nerfed the free accounts to the point my account was unusable (I had several projects, going over the limit). This was not a nice experience for me. It is also not too clear what some of the UI components mean when compiling your app.

    Hopefully it gets improved on, but for now, I will stick with Cordova. It only takes 3-4 minutes to compile your own app and sign it.

    Cordova CLI? What's that? Sorry, it's been years since I've made a mobile game with C2.

    PhoneGap is the easiest I've found so far and the one I am using currently. The problem with PhoneGap is its huge default size and rather shitty performence on older devices. Hence I'm looking for something better.

    EDIT:

    Goggled 'Construct 2 Cordova CLI" and holy shit 30+ minutes long tutorial <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    https://www.google.pl/search?num=100&ei ... GgNh_rlaUc

    Suddenly PhoneGap sounds awesome lol.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Cordova CLI? What's that? Sorry, it's been years since I've made a mobile game with C2.

    PhoneGap is the easiest I've found so far and the one I am using currently. The problem with PhoneGap is its huge default size and rather shitty performence on older devices. Hence I'm looking for something better.

    EDIT:

    Goggled 'Construct 2 Cordova CLI" and holy shit 30+ minutes long tutorial <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    https://www.google.pl/search?num=100&ei ... GgNh_rlaUc

    Suddenly PhoneGap sounds awesome lol.

    30 min tutorial, 3-4 minutes to do once you learn it. It is actually faster than using IntelXDK, because you build locally and don't need to wait for the cloud transfer.

    It is a really good tutorial because it goes through several errors and solutions you might hit. It would be great if someone converted this into a blog style post.

  • XDK is dead. Intel sun set it earlier this year. So that is no longer an option. It might still "work" but is not supported anymore.. which is a shame, but honestly i liked cocoon io better but i've moved on to Construct 3.. they build android apps for you. so no xdk/cordova/phonegap/cocoon needed. it's not perfect yet, but it's nice.

  • >

    >

    > Cordova CLI? What's that? Sorry, it's been years since I've made a mobile game with C2.

    >

    > PhoneGap is the easiest I've found so far and the one I am using currently. The problem with PhoneGap is its huge default size and rather shitty performence on older devices. Hence I'm looking for something better.

    >

    > EDIT:

    > Goggled 'Construct 2 Cordova CLI" and holy shit 30+ minutes long tutorial <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    > https://www.google.pl/search?num=100&ei ... GgNh_rlaUc

    >

    > Suddenly PhoneGap sounds awesome lol.

    >

    30 min tutorial, 3-4 minutes to do once you learn it. It is actually faster than using IntelXDK, because you build locally and don't need to wait for the cloud transfer.

    It is a really good tutorial because it goes through several errors and solutions you might hit. It would be great if someone converted this into a blog style post.

    God yes please. I really have neither the patience nor the time to sit and watch a video for that long. Specially as I am a very fast reader and its easier to jump back and forth.

    XDK is dead. Intel sun set it earlier this year. So that is no longer an option. It might still "work" but is not supported anymore.. which is a shame, but honestly i liked cocoon io better but i've moved on to Construct 3.. they build android apps for you. so no xdk/cordova/phonegap/cocoon needed. it's not perfect yet, but it's nice.

    Sorry but I'm not gonna pay Scirra twice for something that should be here long time ago <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">

  • Dude are you seriously complaining about watching a video to learn a solution?

    sounds like you should learn unity.. lots of text there for you to read.. i'm sure that will take no more than 30 minutes to figure out..

    seriously listen to yourself. watch the video and move on.

  • Dude are you seriously complaining about watching a video to learn a solution?

    sounds like you should learn unity.. lots of text there for you to read.. i'm sure that will take no more than 30 minutes to figure out..

    seriously listen to yourself. watch the video and move on.

    I wake up at 6:00 AM. I have a full time job in a video game publishing company. I work from 8:00 AM to 5:00 PM. I have a wife and two small kids. Around 9:00 PM all kids are in bed. I have to go to bed at around 10:00 PM.

    On daily basis - I have approximately 60 minutes of free time.

    I won't waste half of that to watch a video on youtube. Specially as it doesn't contain solution. Only a promise of it.

    But you might try and be a little bit more understanding and not jump to conclusion so fast.

    Believe or not - not all of Construct users are students and kids, living with their parents.

    Your sudden, aggressive tone is needless.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)