Halfgeek's Recent Forum Activity

  • So you have no "playMusicAsSoundWorkaround" variable in your runtime at all?

    Strange!

  • It wasn't removed, iOS10 changed the way Safari responds to certain feature calls.

    You have to use this instead on the first layout:

    Browser -> Execute Javascript = "StatusBar.hide();"

    Then you can request Fullscreen.

  • This is why I pray to the Code Gods that Construct 3 has Native support. I'm really tired of these third party options. You will never know when they will "quit" on you... No matter how many 3rd party build system your software may support.

    I would pay a lot more for Construct 3 if it had a native export option for:

    PC, iOS & Android. The rest can be optional or 3rd party... so it's less work for Scirra. They would only need to maintain 3x native export compatibility.

    This is the biggest demand feature from Construct 2's user-base for so long..

    It could also be a paid subscription service or whatever but C3 needs it to be complete.

  • i will test this on my game and see if its works, i export with phonegapp

    update: couldnt find that line of code in mine file.

    Do you set to use WKWebView when you do the Cordova export?

  • It should be fine IF you have your keystore file and iOS certificates etc. You can re-sign it with the respective Android/iOS tools.. since the export is Cordova based, you can move it to another platform that supports Cordova.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I went to the c2runtime.js file and found this line:

    if (this.runtime.isWKWebView)

    playMusicAsSoundWorkaround = true;

    I changed that to false;

    Re-compiled with XDK and tested it. No more crashes after playing an hour.

    However, audio volume via tags no longer function, it plays at full.

    This isn't a huge deal, since at least there's no more crashing and there's music!

  • I've already emailed you but it should be filed here too so that others who may experience this issue knows about it. Also, perhaps you could give an update to the situation. I suspect it is the previous work-around for audio/music in iOS 8/9 (play music as sound etc) no longer compatible with iOS10.

    Problem Description

    My game (https://itunes.apple.com/app/id1088622798) compiled on r238 and exported to XDK WKWebView, on the latest version for the required Cordova plugins works for the most part, but there's random crashes and it is related to music being played or looping in a new track. The error message is always the same "servers already up", white screens and game hangs requiring force close.

    Attach a Capx

    You have the CAPX already.

    Description of Capx

    Full game, iOS build.

    Steps to Reproduce Bug

    • Export Cordova, using XDK & WKWebView
    • Compile with XDK
    • Test on iDevice, fly around, going to and from planets to system. It's a random crash.

    Observed Result

    After playing for 5 to 30 minutes, sometimes sooner, a random crash occurs. This does NOT happen if Music is turned off (set to 0) in the options menu. It only happens with Music on.

    Expected Result

    Expect music to work without crashing the game.

    Affected Browsers

    • WKWebView export

    Operating System and Service Pack

    iOS 10 (10.0.2 and 10.1)

    Construct 2 Version ID

    r238

  • I just installed C2 r239 and NWjs 0.18.1, added the "--single-process" to the argument list in the package.json file, and I still can't see my game in OBS, neither in game-mode or window-mode, am I missing something else?

    Do it for the package-win.json... and it'll crash. Because --single-process is currently broken for 0.18.1 to 0.18.3...

  • It's related to the multiple nw.exe process. Like the other bugs mentioned lately.

    This stems from the --single-process CMD/Arg no longer functional.

  • People have been talking about "--single-process" but using "--in-process-gpu" has always worked for me, even with the Steam overlay problem. I've heard it doesn't work properly with Nvidia gpus but I've always tested on them and it always works..

    I've been using --in-process-gpu since forever. It does not solve the Steam overlay problem. It helps it, on some systems. On mine, AMD GPUs, it works fine. On others with NV GPUs, it does not work. I've had many reports of this from players already so i know it's not fixed.

    And it's actually related to NWjs spawning multiple nw.exe processes. For my system it's normally 3x nw.exe, for others, up to 5x.. and the Valve people that I and others have talked to about this, have said the Overlay injection (like on-screen-displays of MSI Afterburner etc) code doesn't do it correctly because it does not KNOW which nw.exe is the correct/game to inject.

    This is also the same for some capture software, they do not know which is the game exe to monitor. However, OBS works 100% because you can select window capture and find the specific one, it's much more flexible.

    This in the past can be fixed by using --single-process to force only one nw.exe on launch. But lately this is no longer functional, leading to crashes.

    The NWjs team IS AWARE of this, as it was reported on their Github a week ago. Let's hope they fix it soon.

    ps. There is no point getting aggro at Scirra. We all know C2 depends on 3rd party export options and that's an added complexity that can lead to issues. The issue gets fixed ASAP when we report it to these 3rd party options ASAP.

  • Definitely iOS10+ has changed the way it handles audio with WKWebView.

    I suspect older work-arounds to get music working on iOS9 (again because iOS9 changed the way it handles audio!! lol) are no longer compatible.

Halfgeek's avatar

Halfgeek

Member since 24 May, 2013

Twitter
Halfgeek has 4 followers

Connect with Halfgeek

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies