hotcakes's Forum Posts

  • Problem Description

    Over time, a project exported as a Universal 8.1 (Windows 8.1 and Windows Phone 8.1) app from Construct 2 r168 will leak memory only in Windows Phone 8.1. Despite sharing the same code, the Windows 8.1 build does not leak memory. Only the Windows Phone build does.

    Attach a Capx

    This issue was observed with my own capx as well as your own template files. No need to appach a capx file... simply use the Flapping Bird template with no modifications. I tested and confirmed the same issue occurs.

    Description of Capx

    Test with Flapping Bird template.

    Steps to Reproduce Bug

    • Export app from Construct 2 as Universal 8.1.
    • Open the project in Visual Studio 2013.
    • Run app on Windows Phone
    • Do nothing. The app immediately starts leaking memory, even just sitting on the main play screen.
    • Try with Windows 8 and notice there is no memory leak.

    Observed Result

    The app slowly increases total memory used, about 1-2 MBs per minute. Eventually, app crashes as it runs out of memory.

    Expected Result

    I expect the memory use to remain the same over time.

    Affected Browsers

    • Windows Phone 8.1 Only.

    Operating System and Service Pack

    Windows Phone 8.1 (issue occurs on device with Lumia 920, and in emulator)

    Construct 2 Version ID

    Construct 2 release 168 64bit

  • After some testing, I could no longer get the Windows Phone plugin to work at all. So for now, since I'm using the IntelXDK for Android, I have a really ugly way of doing it: If NOT IntelXDK -> If Windows 8 (do something for Windows), Else (do something else for WP).

    My crossfading audio trick seems to work fine for Windows 8.1, but WP8.1 can't handle it. It stutters and lags. I'm still trying to find a workaround.

    More importantly right now though, in my longer-term testing, I'm finding that WP8.1 is crashing just before the 2 hr mark. I'm not sure if it's related to audio (I'm still testing) but so far, when running the white noise on loop, the app just silently dies around the 1h40m mark. Android has run rock solid for a week (which is important for a full time dedicated alarm clock app!).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • After extensive testing with the new Construct2 update (that allows Universal Windows apps), it appears this plugin is somewhat broken. If I try to use the audio trick as per the tutorial (which was working before), it no longer plays audio. In fact, the plugin is no longer even needed for audio. Windows 8.1 and WP8.1 both work fine now with Construct2's regular audio object. It also works with the standard browser back functionality. So this actually solved most of my problems.

    Ignore

    However, I have a need to detect if a user is on WP8.1 or not (to target a specific event). Unfortunately, the "Is Windows Phone app" condition is no longer working with WP8.1 either. Any plans to update this to work with WP8.1 Universal apps?

    Update: The "is WP app" does actually work, but my condition is just ignored on my first loop for some reason. So I have one gap, followed by a seamless loop. It's an acceptable bug until WP or Construct find a better way to loop audio.

  • I am working on an alarm clock app, and I have a need for seamless looping of audio files. This works fine on Android, but as we know, IE introduces a gap in the loop. This makes my app completely unusable (the loop is for white noise while you're trying to sleep). I made a hacky workaround by forcing it to overlap (every 20 seconds, it starts a 2nd sound and turns off the 1st 0.04 seconds later). This fixes the problem on Windows, but introduces an overlap blip on Android. So, I added the Windows 8 object and said "if win8 do the loop fix". This works. I now have sound on Android looping well, and sound on Windows 8 looping ok (close enough). However, I want my app to be a universal app for Windows Phone too. How can I target Windows Phone? If my app is universal, I would think the Windows 8 object would work, but it doesn't recognize the WP8 device.

    Any idea how I can work around this? Are there any plans to better support Universal Windows apps, allowing us to target Win8, WP8, or both?

    *note: I have now been able to get this to work with the Windows Phone plugin, but most of those conditions are now obsolete, so I would rather see native support.

    Thanks!

  • PMed you. Thanks!

    Just to clarify for others, the back button issue was a user error. Back button functionality works fine on WP8.1.

    The audio issue remains though.

  • I'm having two issues at the moment with the Plugin (which is fantastic btw!).

    For one, like a few others, I cannot seem to use the back button at all (my phone is a Lumia 920 with Windows Phone 8.1, and hitting back in the app does nothing).

    And two, I can't find a way to control the volume of my sounds. For this project, I need sounds to fade in and fade out. To do so, I have be doing simple Construct loops (For example: if audio volume < 0, set volume = volume +0.5). This works fine on Android. However, with the plugin, I'm assuming none of the default audio controls work, so my audio "set volume" action doesn't work. And the Windows Phone plugin object doesn't have any volume controls in it. Any idea how I can get this to work, or am I SOL on Windows Phone?

    Andy