>
> In short :
> -----------------------
> 8.0 exported version works fine and smoothly but without voice on real device but works fine on emulator
> 8.1+ universal version crash everytime on emulator and on real device both , though the sounds were coming fine but game works very bad non-smoothly
>
>
I find quite funny you found some magic formula to NOT crash also the 8.0 version. <img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked">
On a more serious note, Windows Phone HTML5 support is bugged as hell.
I'd not pay a lot of attention to your emulator issues, I found WP8/8.1 hyper-v based emulators bugged and inconsistent even with simple scratch projects made inside visual studio, so I think there's no point in using them to test a full game made on an external framework.
On your devices you're probably running through the webaudio bug and this explain why your mute version is able to run without crashes while the 8.1 exits after some seconds.
Basically WebAudio in WP8/WP8.1 is broken. Actually A LOT broken. Some people solved this inside C2 being careful to play only one sound at time (and, sorry, one sound means no bg music), some others has gone the hard way coding an alternative audio engine in C# and calling fuctions from the browser object "execute javascript" action.
There's just one way to test if you're running into this issue. Crete a test version of your project without audio and test it. If it doesn't crash, then you've found the culprit.
About the smoothness: despite the official recommendations i found W8.1/IE11 webview terrible in terms of performance when WebGL is turned on. Switching back to Canvas2D (the renderer used in WP8, which you found smoother) should be a solution.
(My personal suggestion: wait for Windows 10 and the spartan webview)
Based on your suggestion i have done several tests on exported version of universal 8.1+ apps from construct2
- including sounds ,
- without sounds by excluding all sound files,
- disabled sounds
- with 1 page layout and no sound ,
- with no webgl
Whatever i will do 8.1+ app crashes on my device. So it seems like not even a sound /audio bug but more than that.
All had failed ,
Also i have followed your comments and tested from scratch .So i thought what if i should download microsoft's JS based apps samples from their website
https://code.msdn.microsoft.com/windowsapps/Universal-Windows-app-cb3248c3
I have tried their own apps in JS, I have tested by creating my own JS based apps in VS , then i tried C# and C++ based apps created by myself here is the result in detail
Universal 8.1+ App:
Tested With Microsoft's Windows Phone Universal Samples:
now what i did i have import a sample project from microsoft made in universal format "Controls_AppBar" ,
Deploying and Executing Through VS 2013 IDE(press ctrl + F5):
-------------------------------------------
After compilations it keeps giving me this error
Unable to Activate Windows Store App whenever i press ctrl + F5 to mobile device
https://dl.dropboxusercontent.com/u/104183650/jssampleerror.png
To solve this I found some tips from : http://stackoverflow.com/questions/1340 ... -store-app
I have tried to delete the output folders but it worked one time rest did not work at all for me. It is keep crashing for some reason, for a second i felt like maybe my mobile is 8.0 not 8.1. But if this is true then why my mobile phone os displays OS version 8.10 etc. So story still goes on below...
Executing directly from windows phone after it was deployed:
-------------------------------------------------------------------------
I have tried again to run that app through the mobile, then it silently crashes right after the demo screen. So i do not see any error on VS screen regarding unable to activate window store app. So hence it seems like this is the same error i have been watching but now its is working silently.
Debug through Visual Studio:
----------------------------
I had debugged the application from IDE to device then i saw this error as below.
JavaScript critical error in (unknown source location)\n\nSCRIPT7: Out of memory
To further narrowing down this issue i have tested using different criteria as below
Construct2 exported into Universal 8.1 app and Found : Failed (Silently)
Construct2 exported without any sound and Found: Failed (Silently)
Construct2 exported without any sound , without webGL , without preload voice and Found: Failed (Silently)
Used Microsoft Sample JS based App "Controls_AppBar" and Found: Failed (with error on IDE)
Used Microsoft Sample JS based App another app and Found: Failed (with error on IDE)
Created self new APP project with JS store app and Found: Fail (Same as above issue)
Created self new APP project with C# store app and Found: Passed( Worked flawless)
Created self new APP project with C++ store app and Found: Passed (Worked flawless)
Hence it is proved that WinJS seems very buggy and its not reliable for some reason and not sure why it is crashing apps which are made by JS. But after all these tested it is also proved that universal 8.1+ apps works fine if they are made with other languages than JS. Also my mobile phone is up to date and it has no issue which i was wondering in start.
I have seriously doubt on this warning which comes on each project of JS whenever i compile them
Warning : DEP0810 : This app references Microsoft.Phone.WinJS.2.1, version 1.0.9651.0, found in your SDK, but you have a higher version of Microsoft.Phone.WinJS.2.1 installed on the target machine, 1.0.9651.40228. If you continue to run this application, it will run against the currently installed version, Microsoft.Phone.WinJS.2.1, version 1.0.9651.40228. Consider updating your SDK to match the version of Microsoft.Phone.WinJS.2.1 that is installed. http://go.microsoft.com/fwlink/?LinkId=260891[/code:3tsrclb9] Does it has anything to do with current crashing? I could not found any correct answer yet. Nor i have any idea how to change the version from 1.0.9651.0 to 1.0.9651.40228.
These whole tested scenarios might help other developers as well if we able to find concrete solution...
I am still looking for a solution , any help guidance would be appreciated. I request all the community members who have experience in windows app please join this thread to help others and help me as well.
Again
[b]In short : [/b]
-----------------------
8.0 exported version works fine and smoothly BUT has NO voice on real device ( but works fine on emulator)
8.1+ universal version crash everytime on emulator and on real device both , though the sounds were coming fine but game works very bad non-smoothly. It gives Unable to Activate Windows Store App error on pc if i execute the app through VS (before it get crash) otherwise it silently crashes .