Different behavior between web/exported version

Discussion and feedback on Construct 2

Post » Sat Aug 12, 2017 6:11 pm

I'm attempting to export my game for android using a variety of methods.

The HTML 5 and desktop NW.JS versions work no problem.

Cocoon developer app works too when previewing the game locally or from dropbox.

But when i build an APK either via cocoon.io or adobe phonegap build. The game starts, then gets stuck a short way into the game. When I'm trying to load my level map.

Not sure how to debug this other then starting to delete parts of the game till it works.....

thanks
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Sun Aug 13, 2017 10:16 pm

Tricky without more information.

At a guess, with any other apk I would say it's trying to load a non local resource and failing as the android_manifest.xml doesn't have internet permission set correctly.

Does it finish loading, then stalls a little after that, or does it fail during loading?
B
9
S
4
Posts: 25
Reputation: 727

Post » Sun Aug 13, 2017 10:21 pm

So it appears that the ajax object doesn't like uppercase letters or spaces.... But would still work fine on a PC browser or cocoon Dev app. But breaks everything once it's compiled to an app. Renaming my tmx maps I was loading fixed the apk issue I was having.
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Sun Aug 13, 2017 10:37 pm

Glad to hear you fixed it. Maybe the uppercase. spaces is to do with Android being based on linux, and Windows being less fussy...
B
9
S
4
Posts: 25
Reputation: 727


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests