Ashley's Forum Posts

  • Probably not, unless it can run a browser engine (which looks pretty unlikely).

  • That workaround is necessary for some other audio features to work on iOS. So I'd rather fix it as it is, rather than playing whack-a-mole trading one set of issues for another.

  • Closing, see the bug report requirements.

  • pinellos - so you can confirm you've had this happen in r239? That would appear to suggest that the change was with Java rather than C2 (which actually would make sense given we didn't change anything related to this in r240)

  • Devices usually actually hide their UDID from apps for privacy reasons. Using a random ID saved in storage is pretty much the same though.

  • You do not have permission to view this post

  • Ashley its possible to add action 'refresh existed text' to update typed global variables ?

    It's not really possible, because the text object just gets plain text, it doesn't know where the text came from or how to update it. That's all evaluated in the action parameter before the action runs.

    However you can efficiently just set the text every tick. The text object is optimised so that if you set the same text twice in a row, the second time does nothing. It will only do the text reflow & render when the text actually changes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm, error code 2 is ERROR_FILE_NOT_FOUND (The system cannot find the file specified). Is it actually exporting a JS file?

    Does it work again if you immediately go back to r239 and try again? If not it could be a Java update that broke it.

    If the minifier doesn't run, you should simply be left with an unminified JS file, and everything should still work fine.

  • newt - please don't needlessly start a flamewar in a bug report. The specific words people use isn't really important as long as they convey the bug report clearly.

    - the main issue with changing this is it seems likely this would break existing projects in weird and subtle ways. If someone's game breaks due to the rounding direction changing, it will probably be a nightmare to figure out the chain of consequences. The int expression primarily exists for converting strings to ints, but does also floor a float it's passed to make sure it always returns a whole number. This probably should not actually be done at all, since neither C2 nor Javascript actually have a formal integer type. It's mostly just a thoughtless carry-over from Construct Classic that shouldn't really have been added. On the other hand if you actually intend to round a float I guess you'd either use floor(), ceil() or round().

    Another issue is val | 0 truncates to a signed 32-bit integer, whereas normal JS floats have 53-bit integer precision, as per the precision of a double. So actual integer truncation would probably also break projects using the expression on very large numbers. (Some people like super-mega-high scores )

    So I think there's too much to lose vs. not much to gain here, so I'd probably just file this under "weird quirks of C2". Maybe for C3 I should just deprecate the expression and add a separate StrToInt() expression or something like that?

  • Tested on an iPhone 5S with iOS 10.1.1 and it worked fine. It starts playing audio right away. I built the .capx in the original report with PhoneGap Build using WKWebView. So as far as I can see, it works on iPhone, and it works on iOS 10.

  • This is very weird - we didn't touch any of the code around this for r240. So it ought to be identical code for this in both r239 and r240...

  • Can anyone provide a .capx which reproduces the problem and does not use any third-party plugins? Otherwise there is not much I can do here so I would be inclined to close this report.

  • I still can't reproduce this. This time I tested on an iPhone 5S running iOS 10.1.1. It resumed fine every time. I found that if you press Home then Safari again really quickly, the audio doesn't stop at all, it seems like that doesn't count as actually leaving Safari. If you press home then wait for the audio to stop, then it seems to actually have suspended Safari and then resumes if you tap Safari again. Sometimes it takes a moment and the screen is blank until it resumes. Even if I press Home again while the screen is blank and it's waiting to resume, and keep going back and forth like that switching when it's trying to resume, I hear a tiny clip of audio as it presumably resumes and immediately pauses again. If I leave it showing Safari, it always comes back and resumes playing the audio.

    I'm using the .capx in the original post and preview-over-wifi if that makes a difference.

    I've tested both an iPad and an iPhone now and I honestly can't reproduce any kind of problem at all. As long as this is the case there is nothing I can do. Perhaps you would have more luck if you file a bug directly with Apple about this at https://bugs.webkit.org/. Even if I could reproduce the problem, given it works on other browsers, it seems likely it's an iOS/Safari bug anyway - in which case reporting it directly is just what I'd have done myself.