SamRock's Recent Forum Activity

  • Thanks again ASHLEY.

    If the .WAV file doesnt fix my issue, I will disable Background music for now. Hopefully MS will come up with some kind of update soon. They have extensively marketed about being able to create HTML5 +JS based apps for Windows 8+. So they should put all their efforts on supporting this area.

    Before finishing the thread, could you please point me to some article that talks about adding Ads and IAP to a Win 8.1 universal app? I cant seem to find anything here. Everything is for Windows 8/WP8.

  • Wow thanks Ashley!

    I think I found a fix to my issue... the solution is to play less sound files

    I mostly use condition isPlaying("tag"), to check if a set of audio file is playing or not. If not, play the sound file. This has brought down the Crash to ZERO!! yes ZERO

    Now the only problem I have is with the Music going silent after few seconds of playing. Mostly after another sound file is played. Do you thik there is a work around? I just read that converting to .WAV format helps. I need to test this after I go back home.

  • part12studios

    Did you issue with WP81.1 get resolved? I am facing similar audio problem on my game.

    The sound files play just fine, but when I start playing the background music or a lengthier sound file, it just stops are few seconds! The other sound effects however continue playing without any problem.

    Here is the post, I have included a CAPX for C2 team's reference.

    win-phone-8-1-app-crashes-randomly-after-adding-audio-capx_t115447

    EDIT: cannot post URLs yet

    My thread is created in the Construct 2->Bugs section

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thehen

    Does this plugin work for Windows 8.1 Universal Apps?? I am currently facing issues with Audio.

    Here is the complete description, I have included a CAPX too.

    win-phone-8-1-app-crashes-randomly-after-adding-audio-capx_t115447

    EDIT: cannot post URLs yet

    My thread is created in the Construct 2->Bugs section

  • I noticed that same set of sound files were getting triggered at once when player overlaps with a group enemies. Now I used Trigger Once and the crash rate has reduced drastically.

    However after I included BG music and exported to Windows Phone/Emulator, the music stops as soon one or two other sound files is played. My CAPX file will show you this happening.

    I think this is happening with lengthier sound/music files only. (Eg: bgmusic and cricket sounds files are more than 20 seconds in length, and these two files stop playing after few seconds.)

  • Dear Ashley

    Could your or team please help me with this issue? I have attached a CAPX for your reference too.

  • CAPX Included!

    Problem Description

    *EDIT:* Same set of sound files were getting triggered at once when player overlaps with a group enemies. Now I used Trigger Once and the crash rate has reduced.

    However after I included BG music and exported to Windows Phone/Emulator, the music stops as soon one or two sound files is played. My CAPX file will show you this happening. I think this is happening with lengthier sound/music files only. (Eg: bgmusic and cricket sounds files are more than 20 seconds in length, and these two files stop playing after few seconds.)

    Continuing my App from my previous post(viewtopic.php?f=152&t=114976) where I resolved the Image Distortion issue by Cropping the large PNG files. The App worked wonderfully without any issue until I added the Audio Object.

    I am playing a single Music file background and various other sound files (like Footsteps, Enemy sounds, Player Hurt, etc). When I exported the game as an Universal App to my Windows Phone Lumia 720, I noticed that the game crashes after about 2 to 3 mins of gameplay. I decided to debug on the Emulator (512MB). I found that it regularly throws up error at this point:

    'WWAHOST.EXE' (Script): Loaded 'Script Code (MSAppHost/2.0)'.

    Exception was thrown at line 14761, column 6 in ms-appx://94047361-e2dc-4b28-9958-c9485e8983ae/c2runtime.js

    0x80004005 - JavaScript runtime error: Unspecified error.

    The program '[1120] WWAHOST.EXE' has exited with code 1 (0x1).

    I went to the c2runtime.js file line #14761. Exactly the code that's supposed to play the Sound file!! If you see there is a Win 8.1 comment from the Developers too.

    if (this.is_music && isMusicWorkaround && !audRuntime.isInUserInputEvent)
    				musicPlayNextTouch.push(this);
    			else
    			{
    				try {
    --------line #14761-------------------->this.instanceObject.play();
    				}
    				catch (e) {}	// sometimes throws on WP8.1... try not to kill the app
    			}[/code:1y7vhwbo][/i]
    
    I started Disabling Audio Play commands until I had only the Foot steps sounds.. Now the rate at which the APP crashed reduced! Infact it seems to run without any issues!
    
    Now my question is., could format of a file by any means cause this issue? All sounds files are in M4A format since I am only developing for Windows Platform. Any help would be greatly appreciated!
    
    [b]Attach a Capx[/b]
    h*t*t*p*s://drive.google.com/file/d/0B3-U8v4LYOJNQXZmaVM2dms0T1U/edit?usp=sharing
        
    [b]Description of Capx[/b]
    A Platformer prototype, where platform is scrolling to the left with random enemies. Press Left/Right key to dodge them. Space to jump.
    I am using multiple BG music files which plays randomly. Enemies have bite and cry sounds played randomly. As time goes, I play a Night sounds with dogs howling. Day time you hear Crows.
    
    [b]Steps to Reproduce Bug[/b]
    [ul]
        [li] Export the Project to VS2013 - Universal app
        [/li][li] Set Windows Phone Project as Start Up
        [/li][li]  Run on 512 MB, Emulator or Windows Phone (mine is Lumia 720) 
        [/li][li]  Press Start Button when loaded
        [/li][li]  Game starts BG music, you can see the Player Sprite and platform moving
        [/li][li]  As soon as player collides with enemy and it makes sounds, the [b]BG music stops.[/b]
        [/li][li]  Continuing to play, the game crashes or report the above mentioned JS error.[/li][/ul]
        
    [b]Observed Result[/b]
    
        
    [b]Expected Result[/b]
    
        
    [b]Affected Browsers[/b]
    [ul]
        [li] Chrome: (NO)
        [/li][li] FireFox: (NO)
        [/li][li] Internet Explorer: (NO)[/li][/ul]
        
    [b]Operating System and Service Pack[/b]
    Windows Phone 8.1 latest updates
    512MB RAM (both Emulator and Phone)
        
    [b]Construct 2 Version ID[/b]
    r178 64Bit
  • Ashley, I visited the website and yes, mine phone is supposed to support 4096x4096 too!

    I will try reporting to MS soon... right now, I am drowned in Construct 2 ... its awesome.. Thank you so much for giving us this great tool!

  • My Untitled Isometric Action/Horror Game!

    Game will have:

    1. Day night cycle.

    2. Weather effect (if I ever afford to buy the licensed version!)

    3. Dynamic Map creation

    4. Of course awesome graphics created by dear brother!

    [attachment=0:hlegxfw5][/attachment:hlegxfw5]

  • Hi Ashley! Thank you so much for responding. Yes I have the latest Windows Phone 8.1 updates install on my Lumia 720.

    The issue is indeed with the large 2048 x 2048 sprite sheet generated after exporting to VS2013. Once I cropped the Blank borders and recompiled o my Phone.. I didnt see the Distortion again!

    Here is the image illustration of the size (May be you can try out while I create a sample .CAPX) :

    [attachment=1:2plmczlc][/attachment:2plmczlc]

    BTW... when I said company I meant my brother

    He is working hard on creating some awesome Graphics for my game. I believe will be one of the beautiful games made on Construct 2! I am so much in love with C2. Sadly I only have the Free Edition and don't know if I should buy the Personal Edition. If you promise me my game will do well I will consider buying it. .

    But its a huge investment for me!! Here is a screenshot of my game. Yes I am sharing it finally.. not the Capx yet!

    What do you think of the screenshot? It's a night setup, that's why its all dark.

    [attachment=0:2plmczlc][/attachment:2plmczlc]

  • I found a fix .. I reduced the height of the tall sprites to about 330.. ie 512x330. Now the images seem to be appearing clearly.

    Anyone has any idea if Windows Phone app has an image size limitation that could affect the performance?

    Also earlier I had about three 512x512 background images under a sprite sheet and few smaller sized images in the same animation frame. When exported from Construct 2 to VS2013... the animation strip was grouped into a huge 2048 x 2048 sprite image!!!

    Could this be the reason for the distorted images?

    After reducing the height of the tall sprites, I see there is a 1024 x 1024 dimension file. And distorted image is gone!

  • Isometric functionalities:

    TileMap

    Pathfinding

    Zorder

    Slope/elevation

SamRock's avatar

SamRock

Member since 7 Apr, 2014

None one is following SamRock yet!

Connect with SamRock

Trophy Case

  • 10-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers

Progress

11/44
How to earn trophies