Crosswalk Intel XDK experiences

Discussion and feedback on Construct 2

Post » Wed Oct 08, 2014 11:43 pm

@Cipriux Does Admob Ads oficial plugin Works with CrossWalk for Android? or just with Android?

Image
B
92
S
30
G
11
Posts: 654
Reputation: 11,707

Post » Wed Oct 08, 2014 11:47 pm

@Iolva - I have tested it with crosswalk for android, and it works, never tested the android alone option to build.

cheers
B
9
S
2
Posts: 52
Reputation: 1,360

Post » Thu Oct 09, 2014 12:25 am

@6bruno6 Wow, thanks so much Bruno! BTW, how about IAP with Crosswalk?
B
92
S
30
G
11
Posts: 654
Reputation: 11,707

Post » Thu Oct 09, 2014 1:40 am

Iolva wrote:@6bruno6 Wow, thanks so much Bruno! BTW, how about IAP with Crosswalk?


https://www.scirra.com/forum/viewtopic.php?f=146&t=101139&p=842617&hilit=iap+crosswalk#p842617
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Thu Oct 09, 2014 5:46 am

I am having a issue getting up and running using the new offical IAP plugin where does my in-app billing license key go?

also for some reason my hdpi Icons arnt being included in my built game even though ive added them on the projects screen. And before anyone says i might not of added them ive added all my icons back into the project for about 10-20 builds and no matter what its never included

this is what the build page says about the hdpi


Installed hdpi launch icon
Warning: hdpi launch icon not found.
Installed xhdpi launch icon
Warning: hdpi launch icon not found.
Warning: hdpi launch icon not found.
Installed hdpi launch icon
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Thu Oct 09, 2014 6:58 am

I see tutorials explaining how to export to Android, and how to use Admob. But I also see that Crosswalk allows exporting to IOS and Windows 8:

1) Can I export a Construct 2 Project to IOS with Crosswalk? Does the Admob plugin work this way?

2) Can I export a Construct 2 Project to Windows Phone with Crosswalk? Does the Admob plugin work this way?
B
12
S
2
Posts: 70
Reputation: 1,074

Post » Thu Oct 09, 2014 9:19 am

Hi,

I just finished reading the 59 pages of this thread to be able to resolve my problems. The first one seems to be a known XDK bug, but I will still explain it here.

My bug seems to be similar to this one : https_://crosswalk-project.org/jira/browse/XWALK-2655 (delete "_" as I'm not able to post links)
My game runs perfectly while previewing over wifi on Chrome for Android, on my two devices : Samsung Galaxy Young GT-S6310N and Samsung Galaxy Tab3.
In the emulator of XDK, it works fine.
When exporting with Crosswalk for Android, then playing the APK on the devices :

1) On the tablet, I can see the title screen, then it crashes most of the time. I'm back on the menu screen of the tablet, then if I check the running apps, I can still see my app running there. When I click on it, I'm back to the C2's loading screen, which sometimes freezes, or it either crashes the game again, or succeed to launch the game.
2) On the mobile phone it's the same, except that I'm not sure the game started even once. It crashes nearly always.

I tried XDK beta and stable, it behave the same way.
I send the exact same build to a friend which tried it on a Samsung Galaxy S3 mini, and up to now, he has no problem playing the game. Everything runs perfectly.

The project is quite big (around 9000 event for now)
I read some people saying that they have problems with the sounds. I didn't test to delete the sounds yet, but I have a music (placed in the "sound" folder, not "music", because I want it to preload) during the title screen, and the sound plays on both devices, so it's probably not related to sounds.

I also read that there was problems with the blacklist of webGL on some devices, including some devices from Samsung. I did the following test : created a new project that just displays the name of the renderer, and it returns "webgl". Don't know if it helps.

I'm also facing another bug, which seem to be related to webStorage : When I activate the loading of webStorage (loading of about 60 number global variables on my title screen) and runs the game on my tablet, it's behaving correctly on preview over wifi running in Chrome for Android (IIRC, need to retest, but at least in Construct preview it works fine), but here, even in Intel XDK's emulator, I'm experiencing another problem. The title screen works ok, but when the game launches, some object simply doesn't appear. On one level I had all my characters diappearing, on another I had the background disappearing. When I turned off all loading of webstorage, this bug was resolved... But I will need webstorage to publish my game...

One last note : I'm not a programmer at all, and I don't know how to display the error message in XDK, or when trying on the device. Could someone explain, so I can eventually give additional informations?

Thanks !
B
32
S
6
G
1
Posts: 353
Reputation: 2,821

Post » Thu Oct 09, 2014 1:01 pm

Rable wrote:Hi,

I just finished reading the 59 pages of this thread to be able to resolve my problems. The first one seems to be a known XDK bug, but I will still explain it here.

My bug seems to be similar to this one : https_://crosswalk-project.org/jira/browse/XWALK-2655 (delete "_" as I'm not able to post links)
My game runs perfectly while previewing over wifi on Chrome for Android, on my two devices : Samsung Galaxy Young GT-S6310N and Samsung Galaxy Tab3.
In the emulator of XDK, it works fine.
When exporting with Crosswalk for Android, then playing the APK on the devices :

1) On the tablet, I can see the title screen, then it crashes most of the time. I'm back on the menu screen of the tablet, then if I check the running apps, I can still see my app running there. When I click on it, I'm back to the C2's loading screen, which sometimes freezes, or it either crashes the game again, or succeed to launch the game.
2) On the mobile phone it's the same, except that I'm not sure the game started even once. It crashes nearly always.


Hi @Rable, I definetely think you have encountered the X-Walk bug 2655 while testing on your tablet. However I think the crashes on your Galaxy Young are most likely caused by the weekness of your device.
Today Xingnan Wang from X-Walk project has updated the issue with this statement:

The bug is a regression of chromium after M37, that could be reproduced on both Content Shell and Crosswalk.
It only happens when loading large mount of images(300+ images in the case) via file scheme. The allocation of shared memory for caching the url request(file://) will be randomly failed and then result the error of image loading in blink. Continue to root cause.


I'm trying a workaround encoding all the images in Base64 and embedding them directly in c2runtime.js using the great @beufreecasse tool that you can find here: https://www.scirra.com/forum/random-freezes-on-windows-phone-8-device_t80070?start=20
This will avoid the flood of url requests and hopefully solve the problem until chromium team will fix this bug.
I'll keep you informed if this is a viable solution.
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Thu Oct 09, 2014 1:57 pm

Thanks a lot, @Knifegrinder !
At least I know that this is a know bug and that there could be solutions in the future. Indeed, my project has lots of images. And as 99% of the game happens on only one layout (exept title screen and maybe one other), most images are present on that "game" layout. I'll give a look to @beufreecasse tool that you're speaking about, but maybe a simple solution would be to create a "container" layout that contains all the images and is never played? The "game" layout just need a handful of images to play each level, so I'll just create the needed object at the beginning of each level.

Could this work? Or do the bug occur because there are lots of images in the whole project, regardless of the fact that they are all placed on a layout that is never played? I guess I'll try it anyway.

Thanks again !
B
32
S
6
G
1
Posts: 353
Reputation: 2,821

Post » Thu Oct 09, 2014 2:22 pm

Rable wrote:
Could this work? Or do the bug occur because there are lots of images in the whole project, regardless of the fact that they are all placed on a layout that is never played? I guess I'll try it anyway.

Thanks again !


The second one. The problem occurs when the images are "downloaded" by the chromium engine and isn't related with the number of images in a single layout. Basically there's a problem on how chromium (the browser engine behind crosswalk and google chrome) deals with a large number of local file:// requests.
This is not a C2 bug and is not resolvable directly through C2.
I'm testing right now the Base64 encoding solution and seems to work.
@Intelrobert, I think you and the X-Walk team should put some pressure on the chromium team because this is quite a nasty bug.
B
11
S
3
Posts: 224
Reputation: 2,028

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests