aduros / flambe

Rapidly cook up games for HTML5, Flash, Android, and iOS.
https://github.com/aduros/flambe/wiki
MIT License
745 stars 118 forks source link

Fire OS Silk Browser advanced setting prevents asset packs from loading. #335

Open BBaysinger opened 9 years ago

BBaysinger commented 9 years ago

Probably not something you would run into very often, but just spent hours trying to figure out why one of our Kindles would not load an asset pack, and I wasn't getting any error messages. Turns out "load images" was turned off in Silk advanced settings, which caused HtmlAssetPackLoader.detectImageFormats to trip up on detecting JPEG XR support. Possibly fails silently, without ever calling jxr.onload, or jxr.onerror.

aduros commented 9 years ago

If that JPEG XR (and maybe also the WebP) check is commented out, does the game work even with "load images" disabled?

BBaysinger commented 9 years ago

With the JPEG XR commented out, and formatTests set to 1, the asset pack will complete, but no, the game wont work, because the browser is set to not load images. In a perfect world, it would be nice to have a message that indicates that the browser settings will not allow the game to run. No biggie though. It definitely perplexed me for a while, and I had to do some digging to figure out why my game wasn't working.