Trouble with C2 and Intel XDK?

Get help using Construct 2

Post » Mon Jun 01, 2015 3:58 am

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!
B
4
Posts: 6
Reputation: 212

Post » Tue Jun 02, 2015 2:56 am

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?
B
4
Posts: 6
Reputation: 212

Post » Tue Jun 02, 2015 4:43 am

I haven't published to mobile yet, since I'm still working on my mobile game but I have been using the CocoonJS Launcher App to test my game with great performance. So I plan to publish with the new Cocoon or CocoonJS.

Perhaps testing with the Launcher App and try CocoonJS?

I realize this doesn't help your current issue but it's another choice....
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

Post » Wed Jun 03, 2015 3:51 am

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!
B
4
Posts: 6
Reputation: 212

Post » Wed Jun 03, 2015 4:11 am

@PENVermillion Did you specify the 'source directory' as blank or "./" in the XDK interface? (the root folder where the index.html file is in after exporting from C2)
B
74
S
14
G
1
Posts: 152
Reputation: 5,051

Post » Thu Jun 04, 2015 3:12 am

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?
B
4
Posts: 6
Reputation: 212


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests