farhanx's Forum Posts

  • Yes i am using Canvas+ because webview never shows anything on the screen and always displays black-screen. I made a very simple testing app and i am attaching here but if you run this with Webview it will display black screen without any single error.. that is why i was using canvas+, please can you guide me why its black screen i am using simple depreciated export by scirra on cocoonjs..

    https://dl.dropboxusercontent.com/u/104183650/newproject.zip

  • I am also facing black screen everytime i export this with cordova , and believe me I have given up the cordova for IOS. Cordova is good for android corsswalk but i guess for IOS its worse. If anyone has a solution why black screen appears please let us know..

  • I am using cocoonJS since cordova is not properly working for me through intelXDK. The zip file which cocoonJS is making has both m4a and .ogg files, which is making the zip heavier. So i manually have removed the .ogg files since i heard m4a files works fine on all IOS versions than ogg files.

    After this removal my sounds were stop and no audio was playing. So i checked the log of cocoonjs and found this error

    • Audio Load Error: Could not find audio file named "www/xyyz.ogg"

    So i thought maybe somewhere inside construct2 js is forcefully using ogg file. So after few hours of work i have edited the JS part and made the following changes

    useOgg = !!(new Audio().canPlayType('audio/ogg; codecs="vorbis"'));
    useOgg = false;[/code:3j2hr0hq]
    
    I had to make this false because my iPAD had vorbis codec i believe that is why it was running ogg files from the start. 
    
    After this editing my all m4a files started working correctly.
    
    Now my confusion is does ogg files required in any kind of ios instead of m4a files? I need to make my app less heavier to compile through cocoonjs which takes 30mb only...So i am thinking to remove all the ogg files and just allow m4a to run on all version of ios but i am confuse if i am taking a right choice about audio???
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I am trying to export my game for IOS in cordova using IntelXDK

    Here is the config of the project:

    Minifying JS: True

    Exporting Platform: IOS and Windows (m4A)

    Minimum IOS Target: 7.0+

    IntelXDK:

    Game Engine: Basic Canvas (Almost tried all using phaser and cocoos)

    Use Cordova Plugins:

    Real Device IOS Version: IPAD IOS 7.1.2

    16 GB

    Everytime when i run this on my IPAD using Intel APP Preview it shows me black screen and audio does not run.

    Here is what i have found while debugging on my real ipad using IntelXDK

    What mistake i am doing?

  • I have tested this and it seems like cordova does not work without having these permission access. I just read on https://software.intel.com/en-us/forums/topic/532663 , so it is either a kind of bug or maybe a way to communication by coordova library. So even if i remove "device" , the app is still asking for network permisson

  • That's really informative Windwalker! Thank you for sharing this so other can also know what we are going to have to deal with.

    ......I had no idea that you needed to have an IOS running computer or laptop to create those certificates you mentioned to place your apps on the apply app store! So that means that if I want to publish my game there, I will need to buy an apply computer or laptop just for that?!

    You can get IOS image and then use vmware to run on your windows machine. I did not try making certificate it but i am able to run IOS on vmware without any issue.

    Check https://www.scirra.com/tutorials/907/de ... e-easy-way

  • I am confuse because i need to support IOS 7.1+ ipad/iphones. According to cordova i should publish my app minimum IOS 8.0+ but someone told me i should go with cocoonJS for supporting old and new IOS version. I would like to know what your experience says about this issue? Shall i select cordova and support "ANY" IOS minimum version or i should use CocoonJS?

  • I have used basic canvas and corodva plugin selected , it worked fine but little slow. (Though i am not using any cordova plugin but i have selected this )

  • I am building my apk from XDK build process , i would like to know shall i sign it further with jar keytool to submit my app on google store? Or it is okay to submit in this signed format?

    I see this warning when i verify my apk builded by XDK

    Warning:
    This jar contains entries whose certificate chain is not validated.
    This jar contains signatures that does not include a timestamp. Without a timest
    amp, users may not be able to validate this jar after the signer certificate's e
    xpiration date (2041-09-02) or after any future revocation date.
    [/code:vuymm632]
  • hi

    i have made a crosswalk based android app and when i install this on my mobile it says

    it will get access to :

    full network access

    view network connections

    view Wi-Fi Connections

    My app is a small game it does not require any internet connection. But according to tutorial https://www.scirra.com/tutorials/809/how-to-export-to-android-with-crosswalk

    Device should always bhe enabled.

    Why should i give network access? If i do not allow device access then wouldn't my app work?

  • Hi ,

    When i Import my exported code in XDK , then it asks me to to provide source directory

    "Use Cordova Plugins" and "Game Project"

    If i select yes to the game project , then it gives me the list of different game engine e.g.

    Basic Canvas Game

    EaselJS

    Pixi

    Phaser

    Cocos2dLite

    Cocos2d

    , i am not sure which one should i select. I just want to build my project for android with crosswalk but before reaching to that step this selection part is confusing.

    1) Shall i select "Basic Canvas Game"? Which one is much better choice from performance point of view?

    2) If i do not want to use cordova native plugins then do i still need to select cordova plugins option in order to run this on mobile? (though I have exported my srouce to cordova)

    I was following https://www.scirra.com/tutorials/809/how-to-export-to-android-with-crosswalk tutorial but i think it has to be updated as according to new XDK IDE . ...

    Kindly guide me...

  • >

    > 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 .
  • Even though it has been written in all of construct2 manuals that i should use universal export for windows 8.1 but since i could not find my app running even on 8.1 so i have tried separately 8.0 as well. I am licensed customer and i am seriously very disappointed that I have not receive any serious tip or guidance on this matter before on my previous post. So i am Posting this again with full information and tested benchmarks. I hope Mr.Ashely and others experts would take this post seriously and give me proper suggestions and tips to run an app on windows phone.

    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

    In Details

    ----------------------

    Phone Config:

    Nokia Lumia 720

    RAM 512

    Software: Windows phone 8.1 update

    OS Version: 8.10.14219.341

    Project: Space Blaster (From Construct2)

    https://dl.dropboxusercontent.com/u/104183650/spaceblaster.zip

    Construct2 Exported 8.0 Phone version:

    --------------------------------------------------------------

    SDK: Windows 8.0 Visual Studio 2012 express for Windows Phone , Emulator WVGA 512MB

    Compile Time Output:

    1>Deploying C:\Users\coeia\Desktop\terminal_construct2\test\windows8.0\Bin\Debug\NewProject_Debug_AnyCPU.xap...
    1>Connecting to Emulator WVGA 512MB...
    1>The application is already installed on the device. Checking if an incremental deployment is possible...
    1>Doing incremental deployment...
    1>Updating information related to modified files...
    1>Deployment of C:\Users\coeia\Desktop\terminal_construct2\test\windows8.0\Bin\Debug\NewProject_Debug_AnyCPU.xap succeeded.
    ========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========[/code:97pd63ka]
    [b]Warning: [/b]None
    
    [b]Problems Displays on Emulator: 
    ##############################[/b]
    1) The project compilation works fine on emulator but it stuck in the loading.
    
    [b]Resolution on emulator loading:
    ############################### [/b]
    1) If i move all the audio files  from Sound folder to the Music folder then amulator works perfectly fine. No sound issue nor any display issue SpaceBlaster working fine and well. But music is no longer looping.
    
    [b]Problem Displays on Real Device: 
    ################################[/b]
    1) The project deployed successfully but when we run the application then i do not hear any sound.
    Game play works fine and smoothly but there is no sound at all.
    
    [b]Resolution on Real Device:
    ##########################[/b]
    I Cannot Find yet 
    
    (Created another project used PCM wav files , did everything but sound did not works so it seems like using phone 8.0 sdk does not work with sound at all)
    
    [b]Construct2 Exported 8.1 Universal version:
    ---------------------------------------------------------------[/b]
    [b]SDK: [/b]Windows 8.1+ Visual Studio 2013  , Emulator WVGA 4 inch 512MB
    
    [b]Compile Time Output:[/b]
    [code:97pd63ka]1>Deploying to Phone Internal Storage...
    1>Updating the layout...
    1>Checking whether required frameworks are installed...
    1>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
    1>Registering the application to run from layout...
    1>Deployment complete (5002ms). Full package name: "7A8E6C0D-2726-425B-8B57-F25717BEDDD1_1.0.0.0_neutral__z470sj18dr3cj"
    ========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========[/code:97pd63ka]
    [b]Warning:[/b]
    [b]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. [url=http://go.microsoft.com/fwlink/?LinkId=260891]http://go.microsoft.com/fwlink/?LinkId=260891[/url]
    [/b]
    
    [b]Problems Displays on Emulator: 
    ##############################[/b]
    1) The project compilation works fine on emulator , sound works fine , game play crash in the middle. Without any reason in star of few seconds it started get slow and then close by it self.,Windows phone power tool has been used to track down the ram and here is the result came. in Attached image..
    
    [url]
    [url=https://dl.dropboxusercontent.com/u/104183650/windows%20app%20error.png]https://dl.dropboxusercontent.com/u/104 ... 0error.png[/url]
    [img="https://dl.dropboxusercontent.com/u/104183650/windows%20app%20error.png"][/url]
    
    [b]Resolution:[/b] none
    
    [b]Problem Displays on Real Device: 
    ################################[/b]
    1) The real device sometimes close it self in the middle of loading and sometime in middle of the game by getting slower within few seconds of game start. Its problem is same like the emulator.
    
    [b]Click to see Full:[/b] [url]https://dl.dropboxusercontent.com/u/104183650/realdevice%20error.png[/url]
    [img="https://dl.dropboxusercontent.com/u/104183650/realdevice%20error.png"]
    
    [b]Debug on VS showed following:[/b]
    [code:97pd63ka]HTML1701: Unable to add dynamic content '<select msallowclip=''><option selected=''></option></select>'. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements and attributes with a method such as createElement.  For more information, see http://go.microsoft.com/fwlink/?LinkID=247104.[/code:97pd63ka]
    
    and after it close by itself it gives below message
    
    [code:97pd63ka]'WWAHOST.EXE' (Script): Loaded 'Script Code (MSAppHost/2.0)'. 
    The program '[3016] WWAHOST.EXE' has exited with code -267390961 (0xf00ff00f).[/code:97pd63ka]
    
    On Development Machine Browser: 
    IE 11: Works fine
    Chrome: Works fine
    Firefox: Works fine
    
    Now the problem is i have purchase the license in thought of i might able to produce application for famous three platform but for windows its seems unsupported. Does anyone have the solution why this is not working? What shall i do? Shall i move my whole half year of work on any other game engine just to produce windows app separately ?  I am very disappointed by the response previously over windows  app ... 
    
    spent  2 full days in testing and still i am helpless , any tip , guidance and help ????
  • Hi ,

    This is first time i am working for windows phone 8.1 , When i debug my application the very first initial warning i see is as below

    Warning     1     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     AqlODil.WindowsPhone
    [/code:pkaghes8]
    
    I have installed the latest windows phone SDK and it has all kinds of newest version. But for some reason i am unable to change the reference SDK and i find no way to change this at all ..but since it was just a warning it did not stop like an error.
    
    After that it started loading the screen with progress bar and i see following errors 
    
    [code:pkaghes8]
    HTML1701: Unable to add dynamic content '<select msallowclip=''><option selected=''></option></select>'. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements and attributes with a method such as createElement.  For more information, see http://go.microsoft.com/fwlink/?LinkID=247104.
    
    WEBGL11135: getContext: Context attribute depth:false is not currently supported
    [/code:pkaghes8]
    
    Then it suddenly , quietly close the application by it self and sometime it displays the main screen of my game and then it close that application.
    
    I thought it is happening because my application is using much memory but according cpu debug construct2 i see main screen takes only 12 mb with 15 objects and avg cpu usage 15%. 
    
    I thought its was my application problem so i have compiled and exported the spaceblaster game from construct2. This game ran on the windows phone fine ,   but when more sprites came on the screen the game started getting  slower and again the app closed by it self.  
    
    What could be the reason behind? My phone is nokia lumia 720 windows 8.1 and i have 2.20 gb free and i am not using any sd card. I do not get any error in console when i debug through visual studio except the above i listed...
    
    Kindly help
  • firebelly did you find the solution yet?

    I have been working first time one windows phone 8 application and what happens here it crash for no reason right after it get loads. here are some errors i faced today

    SCRIPT12: Unhandled exception at line 319, column 249 in ms-appx://76911a70-3fa8-4ffd-bf9d-83bc2d57874c/c2runtime.js
    
    0x8899000c - JavaScript runtime error: There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present.
    File: c2runtime.js, Line: 319, Column: 249
    
    HTML1701: Unable to add dynamic content '<select msallowclip=''><option selected=''></option></select>'. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements and attributes with a method such as createElement.  For more information, see http://go.microsoft.com/fwlink/?LinkID=247104.
    
    SCRIPT14: Unhandled exception at line 146, column 156 in ms-appx://76911a70-3fa8-4ffd-bf9d-83bc2d57874c/c2runtime.js
    
    0x8007000e - JavaScript runtime error: Not enough storage is available to complete this operation.
    File: c2runtime.js, Line: 146, Column: 156
    
    HTML1701: Unable to add dynamic content '<select msallowclip=''><option selected=''></option></select>'. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements and attributes with a method such as createElement.  For more information, see http://go.microsoft.com/fwlink/?LinkID=247104.
    
    [/code:8gj2f23z]