PENVermillion's Forum Posts

  • 6 posts
  • Holy moley, it worked! Noga, you are a champion. I don't know for sure what all I had wrong before, but I suspect it was the extra build settings you gave me.

    Thank you very, very much for your help!

  • Hi all,

    I must just be missing something. I am unable to get the Intel XDK to properly emulate any project I make, or to create a working APK. I see posts about other people having no trouble, so I'm hoping one of you more enlightened people can tell me what I have wrong. I am using Construct 2 Release 206 (64-bit).

    It doesn't seem to matter what my project has in it, so my example is a ridiculously simple project - a white background with a single text object that says "Hello World". Here is the capx I used: HelloWorld.capx

    With my project complete, I exported it for Cordova. Just in case there's any chance for me to mess this up, here are the screens I stepped through:

    The export completed, and my exported file structure looks like this:

    Next I go into the Intel XDK, build 1995, and do these steps:

    1. Go to Projects tab, and click on "Start a New Project".

    2. Choose the "Import your HTML5 code base" option, and browse to my Construct 2 export directory in the "Import From" field. Click Continue.

    3. In the "Project Name" popup field, enter "HelloWorld". Click Create.

    4. In the "Project Importer Results" window, I leave everything alone - the "Source Directory" is blank (I've also tried ./), and both "Use Cordova Plugins" and "Game Project" are set to no. Click Continue.

    5. I get a message that says "Congratulations! Your project has been created successfully".

    6. I click on the "Emulate" tab, and I get a mockup of a phone, with a black screen that has a little bit of a white border at the top. If I produce an APK and load it on my phone, I get the same black screen - the emulator is faithfully showing the same thing the phone does.

    I'll link my screenshot of the emulator, since it is big: Intel XDK Emulator results

    The whole process is so simple that I can't believe I can't get it right, but here I am, with my black screen. Does anyone see anything off with my process, or have any ideas for something else I can try? Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You know, I hadn't really understood the source directory setting. I think was ending up with www in there somehow, which is why my imported projects wouldn't build.

    In any event, I have since tried both blank and ./ as the source directory, and while the project builds properly, it still just gives me a black screen when I run it in the emulator. Thank you for the suggestion, though! Can you think of anything else I can try?

  • Thanks for the reply! Even though you aren't using Crosswalk, it's nice to know that you're not using it with no trouble. At least I can still console myself with the idea that I might not be alone with this problem.

    I'd like to use Crosswalk based on this article, straight from Scirra's blog:

    Evolving Construct 2's export options

    I've built with CocoonJS in the past, and I've been able to get that working. However, if I'm reading this correctly, Cocoon will produce an APK that will only work for Android version 5+ (assuming I use the WebView platform, as that article recommends). That will put a pretty big dent in my available audience, since there are still a ton of Android 4 devices out there. If I use Crosswalk, my game will be compatible with Android version 4+, which is a huge advantage, and is what that article recommends. Now if I could just get it to work!

  • So I'm at a bit of a loss here. Do you guys not publish to mobile, or do you use a different tool? Or is the Intel XDK working fine for everyone but me?

  • I've been careful to follow the instructions on very page I can find, including this one, and I seem to be unable to get a working apk out of the Intel XDK (Crosswalk for Android).

    If I try to create the project in the XDK the way the linked tutorial above describes, then I am unable to emulate/build it - I just get an error saying that I don't have an index.html page. I suspect that is because the Intel XDK always looks for index.html in a www folder, and that isn't where the C2 export function is putting it.

    In an attempt to correct that, I've also tried making a blank new project in the XDK, and then copying my C2 files into the www folder it creates. When I do that, I can run the emulator, but all I ever get is a solid black screen. I've tried making the apk anyway, and sure enough, when I put it on my phone I just get a solid black screen.

    I thought perhaps it was something strange in my project, so I tried making a brand-new C2 project using one of the built-in templates (I used Template: Driving Game). I didn't make any changes at all to the project once I opened it - just immediately exported it. I get the same results in the XDK.

    I'm using the newest version (I think) of both IDEs - release 206 (64-bit) of C2, and build 1995 of the Intel XDK. Does anyone have any ideas of how to make this work?

    Thanks in advance!

  • 6 posts