HTML5 Export Causes Black Browser Screen on iOS

Discussion in 'Legacy GameMaker Community Tech Support' started by Big50000, Sep 6, 2019.

  1. Big50000

    Big50000 Member

    Joined:
    Dec 28, 2017
    Posts:
    10
    I've trying to export my project to plenty of platforms using HTML5 module. Many of platforms work just fine (Android Chrome, Linux Chrome/Firefox, Windows Chrome), but on iOS is a different story, after a loading the screen suddenly turns black and I don't know why.

    (I've uploaded my game to the website, please leave a reply if you want to help me test it on your own iOS device, mine does not work)

    I've tried following this guide: https://help.yoyogames.com/hc/en-us/articles/216753998-iOS-Resource-Limits-For-HTML5-Games, but it still not work. Any suggestions?
     
    Last edited: Sep 6, 2019
  2. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    4,451
    You should be more specific with the device's model and year. I have an iPhone 6 that can test the load, if that helps.

    It also wouldn't hurt to try the blank-room test to determine if it's the runner or just your specific project. Though if it turns out to be the runner, you probably won't get a fix for that because GMS 1.4 is way past sunset.
     
  3. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,450
    Try using the Safari developer tools to see what errors are being reported.

    If you want to debug it remotely from a Windows 10 machine via Chrome then try following this guide to set it up.
     
  4. Big50000

    Big50000 Member

    Joined:
    Dec 28, 2017
    Posts:
    10
    It says "DevTools failed to parse SourceMap: http://arangame.rf.gd/html5game/deflate.min.js.map" and I don't know what did it mean, but it seems like deflate.min.js.map does not found on my server already. In export, it does not include "defalte.min.js.map" in the package.
     

    Attached Files:

  5. Mike

    Mike nobody important GMC Elder

    Joined:
    Apr 12, 2016
    Posts:
    2,327
    If you have a large project and this is the first time you've exported to HTML, it'll be tricky.
    If the debugger (I use chrome normally) doesn't show where the error is, then the easiest way is to start commenting code out, and narrow down where the issue is.... it'll start working at some point, then start putting code back in.
     
    Posh Indie likes this.
  6. Big50000

    Big50000 Member

    Joined:
    Dec 28, 2017
    Posts:
    10
    On the first room in my project, it does not have any advanced scripts in it (only room_goto scripts and normal variable set fuctions), but I will try building another project for testing already since I did not make anything special for now.

    I will report if there is something new as soon as possible.
     
  7. Mike

    Mike nobody important GMC Elder

    Joined:
    Apr 12, 2016
    Posts:
    2,327
    The way JavaScript works, it doesn't matter what it runs, it loads and compiles the entire project in one go. This means code you never even use, could be breaking it....

    iOS HTML5 certainly works, I've used it recently for my GML MOD player, so it'll be something in the code. If/when you find it, and if it is a bug, then let YoYo know....
     
  8. Big50000

    Big50000 Member

    Joined:
    Dec 28, 2017
    Posts:
    10
    I've tried making an empty project (only 1 40x40 background and a room), but it stills no luck.

    On other platforms work just fine (Android Chrome, Windows Chrome)

    Tested on iPhone 5S (iOS 9.0.2), iPhone 6S,6S Plus (iOS 9.0.2 via BrowserStack) and iPhone 8 (iOS 12)
     

    Attached Files:

  9. Mike

    Mike nobody important GMC Elder

    Joined:
    Apr 12, 2016
    Posts:
    2,327
    Ahhhh.. you're on 1.4. It's WAY behind of 2.x..... waaaay behind. And issues also will never be fixed as it's been retired. Also, there's a lot of deprecated things in 1.4 that will also never be fixed. Apple may well have changed (in fact I know they have for lots of thing), that will simply break the 1.4 export. Apple keep changing the HTML Safari browser, and breaking things. Last thing they broke when I was there was audio. There may now be more.

    sorry... can't help anymore. It will work for some stuff, but 2.x is miles ahead. Just before I left, we spent months on getting it up to spec.
     
  10. funkygallo

    funkygallo Member

    Joined:
    Jun 20, 2016
    Posts:
    75
    ok I use this thread too.
    I have a similar problem

    ide: 2.2.3.436
    rt: 2.2.3.344


    This is my error. Please note that with all exporter (mac/win) and using yyc all works fine

    totre.js?LKNZB=1011149941:5332 Uncaught TypeError: _Zk3.substring is not a function
    at _Tm1 (totre.js?LKNZB=1011149941:5332)
    at _SF (totre.js?LKNZB=1011149941:3410)
    at __A2._Fn [as _L6] (totre.js?LKNZB=1011149941:2346)
    at __A2._d_ (totre.js?LKNZB=1011149941:5469)
    at _MT2._d_ (totre.js?LKNZB=1011149941:5346)
    at _LT2 (totre.js?LKNZB=1011149941:5816)
    at _HK3 (totre.js?LKNZB=1011149941:5818)
    at _nK3 (totre.js?LKNZB=1011149941:5808)


    Any idea?
     
  11. Mike

    Mike nobody important GMC Elder

    Joined:
    Apr 12, 2016
    Posts:
    2,327
    Run it in debug mode, it doesn't obfuscate "your" code, so you should be able to pin it down more easily.....
     
  12. funkygallo

    funkygallo Member

    Joined:
    Jun 20, 2016
    Posts:
    75
    Oh what a fool I am. I had not thought that in debug mode the code was not obfuscate.
    By the way @Mike, now that you are no more into yoyogames staff, please do an C=64 or ZX Spectrum exporter ;)
     
  13. Big50000

    Big50000 Member

    Joined:
    Dec 28, 2017
    Posts:
    10
    Finally, I found the problem! It causes by server service itself, the browser on iOS can't figure out the web structure of InfinityFree services, but python micro web server on my local network works just fine.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice