farhanx's Recent Forum Activity

  • 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]
  • thorntonp72 have you found the solution ??? Kindly update here i am on the same track having same errors

  • I am making a small digital ebook type game for this i need to stretch the background image correctly on all kinds of layout. But i am bit confuse how to do that , i have seen Scale inner is good choice but it also cuts the screen from different sides. I need the game should be compatible with all kinds of screens from windows phone , iphone , ipad and android based phones.

    If anyone has done this before kindly guide me the best way to do that. Actually i have made everything by now and game is ready the only issue i am facing is the multi resolution issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a family of different tiles each tile represent group of alphabets for e.g.

    Image1 A,B,C,D is one image with 4 different sprite frames

    Image2 E,F,G,H is another image with 4 different sprite frames

    i have put them in one Family and its name is AlphabetFamily

    Now i want to create the object based of this AlphabetFamily but i also want to choose what image to be create and set its instance variable. When i create object it randomly selects sometime image1 or image2 when i use Create Object AlphabetFamily. But i just want to control this myself so i can create object with FAMILY name but point to the image i want to be refer. Right now i could not find any solution and due to it i have to create Object Image1 explicitly which is difficult since it has so many variables to be set...but this can be solved if there is any action like

    Create AlphabetFamily object

    AlphabetFamily must be image of Image1

    AlphabetFamily.variable1 =2

    AlphabetFamily.variable2 =3

    etc

    is there is something that can help me like above ??

  • But one thing that we cannot add instance variable based on each frame but per instance so it means i cannot hard code their ids value so at the time of creation i can pick them via their id instead of remembering their frame key. For e.g.

    User has input X

    Create object XYZ

    Get the frame of object XYZ which contain id X

    since i need to create an object dynamically based on user input...what you think???

  • not a bad idea , but these each sprites has different sizes and their categories are different from each other they cannot be merge together as frame. Plus suppose if i follow that then again saving each sprite's frame data is not supported by construct2 like say frame1 contain instance variable id 101 and frame2 instance varibale id contain 3....for this i need to create separate dictionary or array.... any more ideas??

  • I could have around 100 different sprites , and these 100 sprites has different scoring points. My game works like if the user give a integer input as an id then that particular sprite whose id is same will be made and display on the screen... The problem is using "Create Object" provides a list to select the object...which means based on user input id i have to put 100 different type of "if cases" ... e.g.

    if user input 11 then create sprite whose id is 11 .... if 12 then create 12 ...

    Is there any other way to create dynamic object based on user input rather than hardcoding the object list 100 times???If its not available then any other tip or way to achieve the same ??

farhanx's avatar

farhanx

Member since 1 Oct, 2013

None one is following farhanx yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies