Android Crosswalk Music Start Up Issues

Get help using Construct 2

Post » Sun Sep 20, 2015 9:34 am

Hi everyone,

I just have a new problem occured when building my game with Android Crosswalk. I have been buildind the game I am working on maybe for about 3 months and nothing happened but now when I build the game the music doesn't start up!! OI only have sound effects. And another thing i I changed my phone to Asus Zenfone 2 and it uses X86 structure don't know why. So I install X86. I really hope there is a solution.

Thank you
B
19
S
6
Posts: 179
Reputation: 2,202

Post » Sun Sep 20, 2015 3:30 pm

Move some sound effect file from Sound directory to Music directory, and music file from Music to Sound directory. This should tell you if it's a problem with the music file or way engine treats it on your mobile.
ImageImageImage
B
27
S
16
G
74
Posts: 977
Reputation: 41,673

Post » Sun Sep 20, 2015 7:36 pm

@BackendFreak Hi! Do I do that inside Construct2?? Btw When I export the project as Cordova it collects all the music and sound effects in one folder called "media"
B
19
S
6
Posts: 179
Reputation: 2,202

Post » Sun Sep 20, 2015 7:41 pm

Yes you do that in Construct 2, just drag&drop. C2 engine treats music and sound files a bit differently.
ImageImageImage
B
27
S
16
G
74
Posts: 977
Reputation: 41,673

Post » Sun Sep 20, 2015 7:47 pm

@BackendFreak Hmm ok thank you! Wİll give it a shot! What if the music works if they are in the sound folder instead of music folder? Should I leave it like that?? Also Would that create a problem also with IOS build?
B
19
S
6
Posts: 179
Reputation: 2,202

Post » Sun Sep 20, 2015 7:57 pm

Well then it's weird, but at least you know where's the problem and have a workaround. Regarding IOS I am not experienced with this platform so can't say anything. For me it works the normal way, but I haven't tested my game with Asus Zenfone 2.
ImageImageImage
B
27
S
16
G
74
Posts: 977
Reputation: 41,673

Post » Sun Sep 20, 2015 8:06 pm

@BackendFreak WOW! You just made my day u know!!! It worked. I only moved all the music files from music folder to sound folder and it worked. Thank you so much. Now need to test if this way will work with IOS or not. If not I will remove to back music for IOS only. BEcause it was working with IOS that way when I tested earlier today. By the way there seems to be some performance issues with crosswalk (it wasn't like this before) now my game works quite slow with my Android tablet not the phone. Since Zenfone has like 4 gb of ram it works fine but I am suspicious it will work great in all devices. Does building in Crosswalk ver 14 or 11 or 12 makes a difference?? Thank you once again. I was thinking this all day how to work around.
B
19
S
6
Posts: 179
Reputation: 2,202

Post » Sun Sep 20, 2015 8:32 pm

Crosswalk is the "thing" which basically runs your game. It's like a browser for JavaScript. Unfortunately for some reason the newer Crosswalk version you use, the slower your game is. But the newer Crosswalk version you use the more bugs are fixed in it and the more features it handles (at least in theory). In my e-book I encourage to use the newest possible, so it would be weird if I'll say opposite on the forum. However if CW14 is too laggy for you, you may want to consider using older one or if it's laggy only on some older devices you may rise the Android API requirement in Intel XDK which won't let to install your game on older devices at all.
ImageImageImage
B
27
S
16
G
74
Posts: 977
Reputation: 41,673

Post » Sun Sep 20, 2015 8:41 pm

@BackendFreak Hmm ok Thank you. Yes you are right. My game seems working more properly with CW14. Which Android API version should I leave on? I now use 14 which is default. I also saw some apps on the appstore which I couldn'T install for my previous phone which was Samsung Note2 so that's what they did. But that was annoying. I remember that was the "periscope" app. But if my game seems not working properly with older devices cause my game is heavy. A platform game with many levels when it is finished. It has big levels with lots of sprites floor tiles enemies etc. I did a lot of optimizing like turning on collisiong when they are on the screen and also turning on the platform behaviour of the enemies when they are on screen etc. But still seems working slow with older devices. Even it might get slow down a bit in some parts in my iPad Air but works fine. I will see what I will do. Thank you.
B
19
S
6
Posts: 179
Reputation: 2,202

Post » Sun Sep 20, 2015 8:53 pm

Sometimes it's better to forbid installs for older devices, because if you allow users to install laggy game, they won't be happy anyway, and will just leave you with bad ratings. So if someone banned your device - he had a reason.

A short quote from my e-book which should help you understand the Android API setting.
Minimum Android API
You have probably noticed that games in Google Play store have various Android version
requirements. This is the place where you can set up a minimum Android version a device
must have to be allowed to install your application. However, you cannot type an Android
version here, but you must use an Android API version. Each Android version has different
API version. The complete list of Android API versions you will find [here].
ImageImageImage
B
27
S
16
G
74
Posts: 977
Reputation: 41,673

Next

Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948, Matei511 and 49 guests